CVEfocus › CVE database › CVE-2022-24769

CVE-2022-24769Default inheritable capabilities for linux container should be empty

CVSS 5.9 MediumEPSS 0.5% (higher than 34% of CVEs)Published 2022-03-24Updated 2024-08-03Assigner: GitHub_M

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.

CWE-732

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

28Fixed
2Fix pending
1Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10containerdNot affected
vulnerable_code_not_present
Ubuntu 22.04containerdFixed1.5.9-0ubuntu3.1UBUNTU-CVE-2022-24769
Ubuntu 20.04containerdFixed1.5.9-0ubuntu1~20.04.6UBUNTU-CVE-2022-24769
Ubuntu 18.04containerdFixed1.5.9-0ubuntu1~18.04.2UBUNTU-CVE-2022-24769
Ubuntu 16.04containerdFix pendingUBUNTU-CVE-2022-24769
Debian 14containerdFixed1.6.2~ds1-1DEBIAN-CVE-2022-24769
Debian 13containerdFixed1.6.2~ds1-1DEBIAN-CVE-2022-24769
Debian 12containerdFixed1.6.2~ds1-1DEBIAN-CVE-2022-24769
Red Hat Enterprise Linux 7dockerFix pending
Affected
Alpine Linux 3.24containerdFixed1.6.2-r0ALPINE-CVE-2022-24769
Alpine Linux 3.24dockerFixed20.10.14-r0ALPINE-CVE-2022-24769
Alpine Linux 3.23containerdFixed1.6.2-r0ALPINE-CVE-2022-24769
Alpine Linux 3.23dockerFixed20.10.14-r0ALPINE-CVE-2022-24769
Alpine Linux 3.22containerdFixed1.6.2-r0ALPINE-CVE-2022-24769
Alpine Linux 3.22dockerFixed20.10.14-r0ALPINE-CVE-2022-24769
Alpine Linux 3.21containerdFixed1.6.2-r0ALPINE-CVE-2022-24769
Alpine Linux 3.21dockerFixed20.10.14-r0ALPINE-CVE-2022-24769
Alpine Linux 3.20containerdFixed1.6.2-r0ALPINE-CVE-2022-24769
Alpine Linux 3.20dockerFixed20.10.14-r0ALPINE-CVE-2022-24769
Alpine Linux 3.19containerdFixed1.6.2-r0ALPINE-CVE-2022-24769
Alpine Linux 3.19dockerFixed20.10.14-r0ALPINE-CVE-2022-24769
Alpine Linux 3.18containerdFixed1.6.2-r0ALPINE-CVE-2022-24769
Alpine Linux 3.18dockerFixed20.10.14-r0ALPINE-CVE-2022-24769
Alpine Linux 3.17containerdFixed1.6.2-r0ALPINE-CVE-2022-24769
Alpine Linux 3.17dockerFixed20.10.14-r0ALPINE-CVE-2022-24769
Alpine Linux 3.16containerdFixed1.6.2-r0ALPINE-CVE-2022-24769
Alpine Linux 3.16dockerFixed20.10.14-r0ALPINE-CVE-2022-24769
Alpine Linux 3.15containerdFixed1.5.11-r0ALPINE-CVE-2022-24769
Alpine Linux 3.15dockerFixed20.10.14-r0ALPINE-CVE-2022-24769
Go librarygithub.com/docker/dockerFixed20.10.14+incompatibleGHSA-2mm7-x5h6-5pvq
Go librarygithub.com/moby/mobyFixed20.10.14GO-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.

Vendor advisories:

References

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.