Bug 2127290 (CVE-2022-36109)

Summary: CVE-2022-36109 moby: supplementary groups mishandling
Product: [Other] Security Response Reporter: Sage McTaggart <amctagga>
Component: vulnerabilityAssignee: Sayan Biswas <sabiswas>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: abenaiss, alazar, derekh, eclipseo, fdeutsch, go-sig, gparvin, jburrell, jsafrane, jwendell, lgamliel, mengel, njean, nobody, oramraz, pahickey, rcernich, rfreiman, smullick, stcannon, twalsh, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---Flags: amctagga: needinfo+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in Moby. This flaw allows an attacker to bypass primary group restrictions due to a flaw in the supplementary group access setup.
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2127291, 2127292, 2127293, 2127294, 2127295, 2127296, 2127297    
Bug Blocks: 2126068    

Description Sage McTaggart 2022-09-15 20:44:27 UTC
CVE-2022-36109:

Moby is an open-source project created by Docker to enable software containerization. A bug was found in Moby (Docker Engine) where supplementary groups are not set up properly. If an attacker has direct access to a container and manipulates their supplementary group access, they may be able to use supplementary group access to bypass primary group restrictions in some cases, potentially gaining access to sensitive information or gaining the ability to execute code in that container. This bug is fixed in Moby (Docker Engine) 20.10.18. Running containers should be stopped and restarted for the permissions to be fixed. For users unable to upgrade, this problem can be worked around by not using the `"USER $USERNAME"` Dockerfile instruction. Instead by calling `ENTRYPOINT ["su", "-", "user"]` the supplementary groups will be set up properly.

https://github.com/moby/moby/security/advisories/GHSA-rc4r-wh2q-q6c4
https://github.com/moby/moby/commit/de7af816e76a7fd3fbf06bffa6832959289fba32
https://github.com/moby/moby/releases/tag/v20.10.18

Comment 1 Sage McTaggart 2022-09-15 20:50:47 UTC
Created golang-github-docker tracking bugs for this issue:

Affects: fedora-35 [bug 2127291]
Affects: fedora-36 [bug 2127292]