Bug 1982681 (CVE-2021-32760)

Summary: CVE-2021-32760 containerd: pulling and extracting crafted container image may result in Unix file permission changes
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aarif, aazores, amasferr, amctagga, aos-bugs, aveerama, bdettelb, caswilli, chazlett, dbecker, dcadzow, dkenigsb, dsimansk, dymurray, eaguilar, ebaron, eglynn, ellin, fdeutsch, fjansen, gghezzo, go-sig, gparvin, ibolton, jcantril, jjoyce, jkang, jkoehler, jmatthew, jmontleo, joelsmith, jpallich, jramanat, jschluet, jwendell, kaycoth, lball, lgamliel, lhh, lpeer, matzew, mburns, mfilanov, mgarciac, mkudlej, mrajanna, muagarwa, mwringe, nbecker, nboldt, njean, ocs-bugs, o.lemasle, oramraz, owatkins, pahickey, periklis, phoracek, pjindal, rcernich, rfreiman, rgarg, rhos-maint, rhuss, rjohnson, rrajasek, sclewis, scorneli, security-response-team, sfroberg, shbose, skontopo, slinaber, slucidi, smullick, spower, sseago, stcannon, teagle, tjochec, tnielsen, tomckay, twalsh, ubhargav, whayutin
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: containerd 1.5.4, containerd 1.4.8 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in containerd where pulling and extracting a specially-crafted container image can result in Unix file permission changes for existing files in the host’s filesystem. Changes to file permissions can deny access to the expected owner of the file, widen access to others, or set extended bits like setuid, setgid, and sticky. This bug does not directly allow files to be read, modified, or executed without an additional cooperating process.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-12 10:16:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2189979, 1983932, 1983934, 1984372, 2032712, 2032713, 2032714, 2189980    
Bug Blocks: 1982684    

Description Marian Rehak 2021-07-15 12:17:12 UTC
A bug was found in containerd where pulling and extracting a specially-crafted container image can result in Unix file permission changes for existing files in the host’s filesystem. Changes to file permissions can deny access to the expected owner of the file, widen access to others, or set extended bits like setuid, setgid, and sticky. This bug does not directly allow files to be read, modified, or executed without an additional cooperating process.

Upstream advisory:

https://github.com/containerd/containerd/security/advisories/GHSA-c72p-9xmj-rx3w

Comment 3 Marian Rehak 2021-07-20 08:29:17 UTC
Created containerd tracking bugs for this issue:

Affects: epel-7 [bug 1983934]
Affects: fedora-all [bug 1983932]

Comment 9 errata-xmlrpc 2022-05-11 11:34:30 UTC
This issue has been addressed in the following products:

  Red Hat OpenStack Platform 16.2

Via RHSA-2022:2183 https://access.redhat.com/errata/RHSA-2022:2183

Comment 10 Product Security DevOps Team 2022-05-12 10:16:04 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-32760

Comment 11 Avinash Hanwate 2023-04-26 16:32:53 UTC
Created golang-github-moby-buildkit tracking bugs for this issue:

Affects: fedora-all [bug 2189979]


Created stargz-snapshotter tracking bugs for this issue:

Affects: fedora-all [bug 2189980]

Comment 14 errata-xmlrpc 2023-10-19 22:23:29 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Service Mesh 2.4 for RHEL 8

Via RHSA-2023:5952 https://access.redhat.com/errata/RHSA-2023:5952