Bug 1205375 (CVE-2022-36109) - VUL-0: CVE-2022-36109: docker: supplementary group permissions bypass
Summary: VUL-0: CVE-2022-36109: docker: supplementary group permissions bypass
Status: RESOLVED FIXED
Alias: CVE-2022-36109
Product: openSUSE Distribution
Classification: openSUSE
Component: Security (show other bugs)
Version: Leap 15.4
Hardware: Other Other
: P3 - Medium : Normal (vote)
Target Milestone: ---
Assignee: Containers Team
QA Contact: E-mail List
URL: https://smash.suse.de/issue/347878/#r...
Whiteboard: CVSSv3.1:SUSE:CVE-2022-36109:6.3:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-13 09:09 UTC by Andreas Stieger
Modified: 2024-05-23 07:01 UTC (History)
6 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 Cathy 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
Comment 8 Aleksa Sarai 2023-03-09 06:21:38 UTC
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.
Comment 11 Maintenance Automation 2023-03-17 12:30:01 UTC
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.
Comment 12 Maintenance Automation 2023-03-28 12:30:23 UTC
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.
Comment 13 Maintenance Automation 2023-04-27 16:30:27 UTC
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.
Comment 14 Aleksa Sarai 2024-05-23 07:01:24 UTC
Fixed in 2022.