Bugzilla – Bug 1197517
VUL-0: CVE-2022-24769: docker, containerd: moby: Default inheritable capabilities for linux container should be empty
Last modified: 2022-05-16 16:18:51 UTC
rh#2066837 A bug was found in Moby (Docker Engine) where containers were incorrectly started with non-empty inheritable Linux process capabilities, creating an atypical Linux environment and enabling programs with inheritable file capabilities to elevate those capabilities to the permitted set during execve(2). Normally, when executable programs have specified permitted file capabilities, otherwise unprivileged users and processes can execute those programs and gain the specified file capabilities up to the bounding set. Due to this bug, containers which included executable programs with inheritable file capabilities allowed otherwise unprivileged users and processes to additionally gain these inheritable file capabilities up to the container's bounding set. Containers which use Linux users and groups to perform privilege separation inside the container are most directly impacted. This bug did not affect the container security sandbox as the inheritable set never contained more capabilities than were included in the container's bounding set. Patches This bug has been fixed in Moby (Docker Engine) 20.10.14. Users should update to this version as soon as possible. Running containers should be stopped, deleted, and recreated for the inheritable capabilities to be reset. This fix changes Moby (Docker Engine) behavior such that containers are started with a more typical Linux environment. Refer to capabilities(7) for a description of how capabilities work. Note that permitted file capabilities continue to allow for privileges to be raised up to the container's bounding set and that processes may add capabilities to their own inheritable set up to the container's bounding set per the rules described in the manual page. In all cases the container's bounding set provides an upper bound on the capabilities that can be assumed and provides for the container security sandbox. Workarounds The entrypoint of a container can be modified to use a utility like capsh(1) to drop inheritable capabilities prior to the primary process starting. References: https://github.com/moby/moby/security/advisories/GHSA-2mm7-x5h6-5pvq https://bugzilla.redhat.com/show_bug.cgi?id=2066837 http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-24769 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-24769 https://github.com/moby/moby/commit/2bbc786e4c59761d722d2d1518cd0a32829bc07f https://github.com/moby/moby/security/advisories/GHSA-2mm7-x5h6-5pvq https://github.com/moby/moby/releases/tag/v20.10.14
We have every containerd and docker codestreams affected: containerd - SUSE:SLE-12:Update - SUSE:SLE-15:Update - openSUSE:Factory docker - SUSE:SLE-12:Update - SUSE:SLE-15:Update - openSUSE:Factory Let me know if there are other packages that could be affected
Hi Aleksa, this is moby/docker and containerd so can you work on this one please? Thanks
Any updates? Some customers are asking about the progress of this CVE vulnerability.
I've submitted updates to Factory and SLES.
SUSE-SU-2022:1507-1: An update that solves 5 vulnerabilities and has one errata is now available. Category: security (important) Bug References: 1192814,1193273,1193930,1196441,1197284,1197517 CVE References: CVE-2021-41190,CVE-2021-43565,CVE-2022-23648,CVE-2022-24769,CVE-2022-27191 JIRA References: Sources used: SUSE Linux Enterprise Module for Containers 12 (src): containerd-1.5.11-16.57.1, docker-20.10.14_ce-98.80.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-2022:1689-1: An update that fixes four vulnerabilities is now available. Category: security (important) Bug References: 1193930,1196441,1197284,1197517 CVE References: CVE-2021-43565,CVE-2022-23648,CVE-2022-24769,CVE-2022-27191 JIRA References: Sources used: openSUSE Leap 15.4 (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1, docker-kubic-20.10.14_ce-150000.163.1 openSUSE Leap 15.3 (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1, docker-kubic-20.10.14_ce-150000.163.1 SUSE Manager Server 4.1 (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1 SUSE Manager Retail Branch Server 4.1 (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1 SUSE Manager Proxy 4.1 (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1 SUSE Linux Enterprise Server for SAP 15-SP2 (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1 SUSE Linux Enterprise Server for SAP 15-SP1 (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1 SUSE Linux Enterprise Server for SAP 15 (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1 SUSE Linux Enterprise Server 15-SP2-LTSS (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1 SUSE Linux Enterprise Server 15-SP2-BCL (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1 SUSE Linux Enterprise Server 15-SP1-LTSS (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1 SUSE Linux Enterprise Server 15-SP1-BCL (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1 SUSE Linux Enterprise Server 15-LTSS (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1 SUSE Linux Enterprise Module for Packagehub Subpackages 15-SP3 (src): containerd-1.5.11-150000.68.1 SUSE Linux Enterprise Module for Containers 15-SP4 (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1 SUSE Linux Enterprise Module for Containers 15-SP3 (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1 SUSE Linux Enterprise Micro 5.2 (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1 SUSE Linux Enterprise Micro 5.1 (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1 SUSE Linux Enterprise Micro 5.0 (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1 SUSE Linux Enterprise High Performance Computing 15-SP2-LTSS (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1 SUSE Linux Enterprise High Performance Computing 15-SP2-ESPOS (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1 SUSE Linux Enterprise High Performance Computing 15-SP1-LTSS (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1 SUSE Linux Enterprise High Performance Computing 15-SP1-ESPOS (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1 SUSE Linux Enterprise High Performance Computing 15-LTSS (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1 SUSE Linux Enterprise High Performance Computing 15-ESPOS (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1 SUSE Enterprise Storage 7 (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1 SUSE Enterprise Storage 6 (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.1 SUSE CaaS Platform 4.0 (src): containerd-1.5.11-150000.68.1, docker-20.10.14_ce-150000.163.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.