CVE-2022-24769
Default inheritable capabilities for linux container should be empty
Check your servers for CVE-2022-24769
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-24769 affects moby, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality low, integrity low, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.49%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 43.8% of all scored CVEs. Scores of 1 Dec 2026.
Weakness
- CWE-732 Incorrect Permission Assignment for Critical Resource
Affected products
As the CNA lists them.
Is my server affected?
Find the installed version of moby and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i moby
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2022-24769 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2022-24769RHEL, Rocky, Alma, Fedora
rpm -q moby
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2022-24769Alpine
apk list --installed | grep -i mobyWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-24769
trivy image --scanners vuln IMAGE | grep CVE-2022-24769
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- FEDORA-2022-e9a09c1a7d lists.fedoraproject.org · vendor advisory
- FEDORA-2022-ed53f2439a lists.fedoraproject.org · vendor advisory
- FEDORA-2022-c07546070d lists.fedoraproject.org · vendor advisory
- FEDORA-2022-cac2323802 lists.fedoraproject.org · vendor advisory
- FEDORA-2022-eda0049dd7 lists.fedoraproject.org · vendor advisory
- FEDORA-2022-3826c8f549 lists.fedoraproject.org · vendor advisory
- DSA-5162 debian.org · vendor advisory
- GLSA-202401-31 security.gentoo.org · vendor advisory
Other references
- https://github.com/moby/moby/security/advisories/GHSA-2mm7-x5h6-5pvq github.com
- https://github.com/moby/moby/commit/2bbc786e4c59761d722d2d1518cd0a32829bc07f github.com
- https://github.com/moby/moby/releases/tag/v20.10.14 github.com
- [oss-security] 20220512 CVE-2022-29162: runc < 1.1.2 incorrect handling of inheritable capabilities in default… openwall.com · mailing list
Source: the record CVE-2022-24769 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse