Bugzilla – Bug 1205375
VUL-0: CVE-2022-36109: docker: supplementary group permissions bypass
Last modified: 2024-05-23 07:01:24 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
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.
Affected: - SUSE:SLE-12:Update/docker 20.10.17 - SUSE:SLE-15:Update/docker 20.10.17 - openSUSE:Factory/docker 20.10.17
Sorry, I was away on vacation and when I got back I had a bunch of issues with the VPN and accessing IBS. I had already prepared the Docker 20.10.21-ce update last December but it seems that only the containerd update ended up in SLES. I've submitted the 20.10.23-ce update now and am currently working on the Docker 23.0.1-ce update.
SUSE-SU-2023:0795-1: An update that solves one vulnerability and has one fix can now be installed. Category: security (moderate) Bug References: 1205375, 1206065 CVE References: CVE-2022-36109 Sources used: openSUSE Leap Micro 5.3 (src): docker-20.10.23_ce-150000.175.1 openSUSE Leap 15.4 (src): docker-20.10.23_ce-150000.175.1 SUSE Linux Enterprise Micro for Rancher 5.3 (src): docker-20.10.23_ce-150000.175.1 SUSE Linux Enterprise Micro 5.3 (src): docker-20.10.23_ce-150000.175.1 Containers Module 15-SP4 (src): docker-20.10.23_ce-150000.175.1 SUSE Linux Enterprise High Performance Computing 15 SP1 LTSS 15-SP1 (src): docker-20.10.23_ce-150000.175.1 SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS 15-SP2 (src): docker-20.10.23_ce-150000.175.1 SUSE Linux Enterprise High Performance Computing ESPOS 15 SP3 (src): docker-20.10.23_ce-150000.175.1 SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (src): docker-20.10.23_ce-150000.175.1 SUSE Linux Enterprise Server 15 SP1 LTSS 15-SP1 (src): docker-20.10.23_ce-150000.175.1 SUSE Linux Enterprise Server 15 SP2 LTSS 15-SP2 (src): docker-20.10.23_ce-150000.175.1 SUSE Linux Enterprise Server 15 SP3 LTSS 15-SP3 (src): docker-20.10.23_ce-150000.175.1 SUSE Linux Enterprise Server for SAP Applications 15 SP1 (src): docker-20.10.23_ce-150000.175.1 SUSE Linux Enterprise Server for SAP Applications 15 SP2 (src): docker-20.10.23_ce-150000.175.1 SUSE Linux Enterprise Server for SAP Applications 15 SP3 (src): docker-20.10.23_ce-150000.175.1 SUSE Enterprise Storage 7.1 (src): docker-20.10.23_ce-150000.175.1 SUSE Enterprise Storage 7 (src): docker-20.10.23_ce-150000.175.1 SUSE CaaS Platform 4.0 (src): docker-20.10.23_ce-150000.175.1 SUSE Linux Enterprise Micro 5.1 (src): docker-20.10.23_ce-150000.175.1 SUSE Linux Enterprise Micro 5.2 (src): docker-20.10.23_ce-150000.175.1 SUSE Linux Enterprise Micro for Rancher 5.2 (src): docker-20.10.23_ce-150000.175.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
SUSE-SU-2023:1625-1: An update that solves one vulnerability and has two fixes can now be installed. Category: security (important) Bug References: 1188447, 1205375, 1206065 CVE References: CVE-2022-36109 Sources used: Containers Module 12 (src): docker-20.10.23_ce-98.89.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
SUSE-SU-2023:0795-2: An update that solves one vulnerability and has one fix can now be installed. Category: security (moderate) Bug References: 1205375, 1206065 CVE References: CVE-2022-36109 Sources used: SUSE Linux Enterprise Micro for Rancher 5.4 (src): docker-20.10.23_ce-150000.175.1 SUSE Linux Enterprise Micro 5.4 (src): docker-20.10.23_ce-150000.175.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Fixed in 2022.