Bug 1205375 - (CVE-2022-36109) VUL-0: CVE-2022-36109: docker: supplementary group permissions bypass
(CVE-2022-36109)
VUL-0: CVE-2022-36109: docker: supplementary group permissions bypass
Status: NEW
Classification: openSUSE
Product: openSUSE Distribution
Classification: openSUSE
Component: Security
Leap 15.4
Other Other
: P3 - Medium : Normal (vote)
: ---
Assigned To: Containers Team
E-mail List
https://smash.suse.de/issue/347878/#r...
CVSSv3.1:SUSE:CVE-2022-36109:6.3:(AV:...
:
Depends on:
Blocks: 1205372
  Show dependency treegraph
 
Reported: 2022-11-13 09:09 UTC by Andreas Stieger
Modified: 2022-11-21 13:44 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Stieger 2022-11-13 09:09:16 UTC
https://docs.docker.com/engine/release-notes/#201018

> Fix a security vulnerability relating to supplementary group permissions,
> which could allow a container process to bypass primary group restrictions
> within the container CVE-2022-36109

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. Users should update to this version when it is available. 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.

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.
Patches


Affected versions < 20.10.18, fixed in 20.10.18

Workarounds

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.

References:
https://github.com/moby/moby/security/advisories/GHSA-rc4r-wh2q-q6c4
https://www.benthamsgaze.org/2022/08/22/vulnerability-in-linux-containers-investigation-and-mitigation/
https://docs.docker.com/engine/release-notes/#201018
https://github.com/moby/moby/commit/bb0197c829c58929d79f3a9b67f2c111bb751455
Comment 1 Andreas Stieger 2022-11-13 09:11:58 UTC
openSUSE:Factory/docker> tar -tf docker-20.10.17_ce_a89b84221c85.tar.xz | grep oci_linux.go
docker-20.10.17_ce_a89b84221c85/daemon/oci_linux.go

Security team, maybe check the package matching between docker, moby.
Comment 2 Hu 2022-11-21 09:04:26 UTC
Affected:
- SUSE:SLE-12:Update/docker  20.10.17
- SUSE:SLE-15:Update/docker  20.10.17
- openSUSE:Factory/docker    20.10.17