CVE-2022-24769 Default inheritable capabilities for linux container should be empty
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- DockerUbuntuDebian
Description
Moby is an open-source project created by Docker to enable and accelerate software containerization. A bug was found in Moby (Docker Engine) prior to version 20.10.14 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. This bug has been fixed in Moby (Docker Engine) 20.10.14. 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. As a workaround, the entry point of a container can be modified to use a utility like capsh(1) to drop inheritable capabilities prior to the primary process starting.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| moby(Go) | < 20.10.14 | 20.10.14 |
| docker github.com/docker/docker(Go) | < 20.10.14 | 20.10.14 |
| docker github.com/docker/docker(Go) | < 20.10.14+incompatible | 20.10.14+incompatible |
| moby(Go) | < 20.10.14+incompatible | 20.10.14+incompatible |
| moby | = < 20.10.14 | No fix listed |
| ubuntu/containerd(Ubuntu:22.04) | < 1.5.9-0ubuntu3.1 | 1.5.9-0ubuntu3.1 |
| mobyproject moby | < 20.10.14 | 20.10.14 |
| fedoraproject fedora | = 34 | No fix listed |
| fedoraproject fedora | = 35 | No fix listed |
| fedoraproject fedora | = 36 | No fix listed |
| linuxfoundation runc | < 1.1.2 | 1.1.2 |
| debian linux | = 11.0 | No fix listed |
| debian/containerd(Debian:12) | < 1.6.2~ds1-1 | 1.6.2~ds1-1 |
| debian/containerd(Debian:14) | < 1.6.2~ds1-1 | 1.6.2~ds1-1 |
| debian/containerd(Debian:13) | < 1.6.2~ds1-1 | 1.6.2~ds1-1 |
| ubuntu/containerd(Ubuntu:Pro:16.04) | All versions | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 0.2.1-0ubuntu4~16.04 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 0.2.3-0ubuntu1~16.04 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 0.2.5-0ubuntu1~16.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.3 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.4 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.5 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.6 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.6+esm1 | No fix listed |
Show 61 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.6+esm2 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.6+esm4 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.6+esm5 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.6+esm6 | No fix listed |
| ubuntu/containerd(Ubuntu:Pro:16.04) | = 1.2.6-0ubuntu1~16.04.6+esm7 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | < 1.5.9-0ubuntu1~18.04.2 | 1.5.9-0ubuntu1~18.04.2 |
| ubuntu/containerd(Ubuntu:18.04) | = 0.2.5-0ubuntu2 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | = 1.2.6-0ubuntu1~18.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | = 1.2.6-0ubuntu1~18.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | = 1.3.3-0ubuntu1~18.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | = 1.3.3-0ubuntu1~18.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | = 1.3.3-0ubuntu1~18.04.3 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | = 1.3.3-0ubuntu1~18.04.4 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | = 1.4.4-0ubuntu1~18.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | = 1.5.2-0ubuntu1~18.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | = 1.5.2-0ubuntu1~18.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | = 1.5.2-0ubuntu1~18.04.3 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | = 1.5.5-0ubuntu3~18.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | = 1.5.5-0ubuntu3~18.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:18.04) | = 1.5.9-0ubuntu1~18.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | < 1.5.9-0ubuntu1~20.04.6 | 1.5.9-0ubuntu1~20.04.6 |
| ubuntu/containerd(Ubuntu:20.04) | = 1.2.10-0ubuntu1 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.3.2-0ubuntu1 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.3.3-0ubuntu1 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.3.3-0ubuntu2 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.3.3-0ubuntu2.1 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.3.3-0ubuntu2.2 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.3.3-0ubuntu2.3 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.4.4-0ubuntu1~20.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.5.2-0ubuntu1~20.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.5.2-0ubuntu1~20.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.5.2-0ubuntu1~20.04.3 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.5.5-0ubuntu3~20.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.5.5-0ubuntu3~20.04.2 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.5.9-0ubuntu1~20.04.1 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.5.9-0ubuntu1~20.04.4 | No fix listed |
| ubuntu/containerd(Ubuntu:20.04) | = 1.5.9-0ubuntu1~20.04.5 | No fix listed |
| ubuntu/containerd(Ubuntu:22.04) | = 1.5.5-0ubuntu3 | No fix listed |
| ubuntu/containerd(Ubuntu:22.04) | = 1.5.9-0ubuntu1 | No fix listed |
| ubuntu/containerd(Ubuntu:22.04) | = 1.5.9-0ubuntu2 | No fix listed |
| ubuntu/containerd(Ubuntu:22.04) | = 1.5.9-0ubuntu3 | No fix listed |
| alpine/containerd(Alpine:v3.15) | < 1.5.11-r0 | 1.5.11-r0 |
| alpine/containerd(Alpine:v3.16) | < 1.6.2-r0 | 1.6.2-r0 |
| alpine/containerd(Alpine:v3.17) | < 1.6.2-r0 | 1.6.2-r0 |
| alpine/containerd(Alpine:v3.18) | < 1.6.2-r0 | 1.6.2-r0 |
| alpine/containerd(Alpine:v3.19) | < 1.6.2-r0 | 1.6.2-r0 |
| alpine/containerd(Alpine:v3.20) | < 1.6.2-r0 | 1.6.2-r0 |
| alpine/containerd(Alpine:v3.21) | < 1.6.2-r0 | 1.6.2-r0 |
| alpine/containerd(Alpine:v3.22) | < 1.6.2-r0 | 1.6.2-r0 |
| alpine/containerd(Alpine:v3.23) | < 1.6.2-r0 | 1.6.2-r0 |
| alpine/containerd(Alpine:v3.24) | < 1.6.2-r0 | 1.6.2-r0 |
| alpine/docker(Alpine:v3.15) | < 20.10.14-r0 | 20.10.14-r0 |
| alpine/docker(Alpine:v3.16) | < 20.10.14-r0 | 20.10.14-r0 |
| alpine/docker(Alpine:v3.17) | < 20.10.14-r0 | 20.10.14-r0 |
| alpine/docker(Alpine:v3.18) | < 20.10.14-r0 | 20.10.14-r0 |
| alpine/docker(Alpine:v3.19) | < 20.10.14-r0 | 20.10.14-r0 |
| alpine/docker(Alpine:v3.20) | < 20.10.14-r0 | 20.10.14-r0 |
| alpine/docker(Alpine:v3.21) | < 20.10.14-r0 | 20.10.14-r0 |
| alpine/docker(Alpine:v3.22) | < 20.10.14-r0 | 20.10.14-r0 |
| alpine/docker(Alpine:v3.23) | < 20.10.14-r0 | 20.10.14-r0 |
| alpine/docker(Alpine:v3.24) | < 20.10.14-r0 | 20.10.14-r0 |
References
- github.com issue-tracking mitigation third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- github.com patch
- DSA-5162 third-party-advisory vendor-advisory
- GLSA-202401-31 vendor-advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- FEDORA-2022-3826c8f549 vendor-advisory
- FEDORA-2022-eda0049dd7 vendor-advisory
- FEDORA-2022-e9a09c1a7d vendor-advisory
- FEDORA-2022-c07546070d vendor-advisory
- FEDORA-2022-cac2323802 vendor-advisory
- FEDORA-2022-ed53f2439a vendor-advisory
- github.com issue-tracking release-notes third-party-advisory
- github.com product
- [oss-security] 20220512 CVE-2022-29162: runc < 1.1.2 incorrect handling of inheritable capabilities in default configuration mailing-list third-party-advisory
- github.com
- Debian Security Tracker CVE-2022-24769 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-5776-1 vendor-advisory
- www.cve.org issue-tracking
- security.alpinelinux.org vendor-advisory
- github.com issue-tracking