CVE-2022-24769Default inheritable capabilities for linux container should be empty
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.
What to do
Fixed builds are available from Alpine, Debian, Go, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | containerd | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | containerd | Fixed | 1.5.9-0ubuntu3.1 | UBUNTU-CVE-2022-24769 |
| Ubuntu 20.04 | containerd | Fixed | 1.5.9-0ubuntu1~20.04.6 | UBUNTU-CVE-2022-24769 |
| Ubuntu 18.04 | containerd | Fixed | 1.5.9-0ubuntu1~18.04.2 | UBUNTU-CVE-2022-24769 |
| Ubuntu 16.04 | containerd | Fix pending | UBUNTU-CVE-2022-24769 | |
| Debian 14 | containerd | Fixed | 1.6.2~ds1-1 | DEBIAN-CVE-2022-24769 |
| Debian 13 | containerd | Fixed | 1.6.2~ds1-1 | DEBIAN-CVE-2022-24769 |
| Debian 12 | containerd | Fixed | 1.6.2~ds1-1 | DEBIAN-CVE-2022-24769 |
| Red Hat Enterprise Linux 7 | docker | Fix pending Affected | ||
| Alpine Linux 3.24 | containerd | Fixed | 1.6.2-r0 | ALPINE-CVE-2022-24769 |
| Alpine Linux 3.24 | docker | Fixed | 20.10.14-r0 | ALPINE-CVE-2022-24769 |
| Alpine Linux 3.23 | containerd | Fixed | 1.6.2-r0 | ALPINE-CVE-2022-24769 |
| Alpine Linux 3.23 | docker | Fixed | 20.10.14-r0 | ALPINE-CVE-2022-24769 |
| Alpine Linux 3.22 | containerd | Fixed | 1.6.2-r0 | ALPINE-CVE-2022-24769 |
| Alpine Linux 3.22 | docker | Fixed | 20.10.14-r0 | ALPINE-CVE-2022-24769 |
| Alpine Linux 3.21 | containerd | Fixed | 1.6.2-r0 | ALPINE-CVE-2022-24769 |
| Alpine Linux 3.21 | docker | Fixed | 20.10.14-r0 | ALPINE-CVE-2022-24769 |
| Alpine Linux 3.20 | containerd | Fixed | 1.6.2-r0 | ALPINE-CVE-2022-24769 |
| Alpine Linux 3.20 | docker | Fixed | 20.10.14-r0 | ALPINE-CVE-2022-24769 |
| Alpine Linux 3.19 | containerd | Fixed | 1.6.2-r0 | ALPINE-CVE-2022-24769 |
| Alpine Linux 3.19 | docker | Fixed | 20.10.14-r0 | ALPINE-CVE-2022-24769 |
| Alpine Linux 3.18 | containerd | Fixed | 1.6.2-r0 | ALPINE-CVE-2022-24769 |
| Alpine Linux 3.18 | docker | Fixed | 20.10.14-r0 | ALPINE-CVE-2022-24769 |
| Alpine Linux 3.17 | containerd | Fixed | 1.6.2-r0 | ALPINE-CVE-2022-24769 |
| Alpine Linux 3.17 | docker | Fixed | 20.10.14-r0 | ALPINE-CVE-2022-24769 |
| Alpine Linux 3.16 | containerd | Fixed | 1.6.2-r0 | ALPINE-CVE-2022-24769 |
| Alpine Linux 3.16 | docker | Fixed | 20.10.14-r0 | ALPINE-CVE-2022-24769 |
| Alpine Linux 3.15 | containerd | Fixed | 1.5.11-r0 | ALPINE-CVE-2022-24769 |
| Alpine Linux 3.15 | docker | Fixed | 20.10.14-r0 | ALPINE-CVE-2022-24769 |
| Go library | github.com/docker/docker | Fixed | 20.10.14+incompatible | GHSA-2mm7-x5h6-5pvq |
| Go library | github.com/moby/moby | Fixed | 20.10.14 | GO-2022-0390 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- moby: affected: < 20.10.14
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://github.com/moby/moby/security/advisories/GHSA-2mm7-x5h6-5pvq
- https://github.com/moby/moby/commit/2bbc786e4c59761d722d2d1518cd0a32829bc07f
- https://github.com/moby/moby/releases/tag/v20.10.14
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FPOJUJZXGMIVKRS4QR75F6OIXNQ6LDBL/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6PMQKCAPK2AR3DCYITJYMMNBEGQBGLCC/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A5FQJ3MLFSEKQYCFPFZIKYGBXPZUJFVY/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A5AFKOQ5CE3CEIULWW4FLQKHFFU6FSYG/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HIMAHZ6AUIKN7AX26KHZYBXVECIOVWBH/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HQCVS7WBFSTKJFNX5PGDRARMTOFWV2O7/
- http://www.openwall.com/lists/oss-security/2022/05/12/1
- https://www.debian.org/security/2022/dsa-5162
- https://security.gentoo.org/glsa/202401-31
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.