Skip to content
OpenAdvisories
Medium · 5.9 CVE-2022-24769 EUVD-2024-1065GHSA-2mm7-x5h6-5pvqGO-2022-0390

Default inheritable capabilities for linux container should be empty

Published Mar 24, 2022 · Updated Aug 3, 2024 · Assigned by GitHub_M

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

VendorProductAffectedFixed
moby moby < 20.10.14 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 containerd 1.6.2~ds1-1 —
Debian 13 containerd 1.6.2~ds1-1 —
Debian 12 containerd 1.6.2~ds1-1 —
Debian 11 containerd 1.4.13~ds1-1~deb11u2 DSA-5162-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS containerd 1.5.9-0ubuntu3.1 USN-5776-1
Ubuntu 20.04 LTS containerd 1.5.9-0ubuntu1~20.04.6 USN-5776-1
Ubuntu 18.04 LTS containerd 1.5.9-0ubuntu1~18.04.2 USN-5776-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS containerd No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SLES 15 SP6 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SLES 15 SP5 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SLES 15 SP4 containerd 1.5.11-150000.68.1 SUSE-SU-2022:1689-1
SLES 15 SP4 docker 20.10.14_ce-150000.163.1 SUSE-SU-2022:1689-1
SLES 15 SP4 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SLES 15 SP3 containerd 1.5.11-150000.68.1 SUSE-SU-2022:1689-1
SLES 15 SP3 docker 20.10.14_ce-150000.163.1 SUSE-SU-2022:1689-1
SLES 15 SP3 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
Show 26 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 15 SP2 containerd 1.5.11-150000.68.1 SUSE-SU-2022:1689-1
SLES 15 SP2 docker 20.10.14_ce-150000.163.1 SUSE-SU-2022:1689-1
SLES 15 SP1 containerd 1.5.11-150000.68.1 SUSE-SU-2022:1689-1
SLES 15 SP1 docker 20.10.14_ce-150000.163.1 SUSE-SU-2022:1689-1
SLES 15 containerd 1.5.11-150000.68.1 SUSE-SU-2022:1689-1
SLES 15 docker 20.10.14_ce-150000.163.1 SUSE-SU-2022:1689-1
SLES 12 SP5 docker-stable 24.0.9_ce-1.20.1 SUSE-SU-2025:03540-1
SLES 12 containerd 1.5.11-16.57.1 SUSE-SU-2022:1507-1
SLES 12 docker 20.10.14_ce-98.80.1 SUSE-SU-2022:1507-1
SLES for SAP 15 SP5 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SLES for SAP 15 SP4 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SLES for SAP 15 SP3 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SLES for SAP 15 SP2 containerd 1.5.11-150000.68.1 SUSE-SU-2022:1689-1
SLES for SAP 15 SP2 docker 20.10.14_ce-150000.163.1 SUSE-SU-2022:1689-1
SLES for SAP 15 SP1 containerd 1.5.11-150000.68.1 SUSE-SU-2022:1689-1
SLES for SAP 15 SP1 docker 20.10.14_ce-150000.163.1 SUSE-SU-2022:1689-1
SLES for SAP 15 containerd 1.5.11-150000.68.1 SUSE-SU-2022:1689-1
SLES for SAP 15 docker 20.10.14_ce-150000.163.1 SUSE-SU-2022:1689-1
SLE Micro 5.2 containerd 1.5.11-150000.68.1 SUSE-SU-2022:1689-1
SLE Micro 5.2 docker 20.10.14_ce-150000.163.1 SUSE-SU-2022:1689-1
SLE Micro 5.1 containerd 1.5.11-150000.68.1 SUSE-SU-2022:1689-1
SLE Micro 5.1 docker 20.10.14_ce-150000.163.1 SUSE-SU-2022:1689-1
SLE Micro 5.0 containerd 1.5.11-150000.68.1 SUSE-SU-2022:1689-1
SLE Micro 5.0 docker 20.10.14_ce-150000.163.1 SUSE-SU-2022:1689-1
SLE HPC 15 SP5 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SLE HPC 15 SP4 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SLE HPC 15 SP3 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SLE HPC 15 SP2 containerd 1.5.11-150000.68.1 SUSE-SU-2022:1689-1
SLE HPC 15 SP2 docker 20.10.14_ce-150000.163.1 SUSE-SU-2022:1689-1
SLE HPC 15 SP1 containerd 1.5.11-150000.68.1 SUSE-SU-2022:1689-1
SLE HPC 15 SP1 docker 20.10.14_ce-150000.163.1 SUSE-SU-2022:1689-1
SLE HPC 15 containerd 1.5.11-150000.68.1 SUSE-SU-2022:1689-1
SLE HPC 15 docker 20.10.14_ce-150000.163.1 SUSE-SU-2022:1689-1
SUSE Manager Server 4.1 containerd 1.5.11-150000.68.1 SUSE-SU-2022:1689-1
SUSE Manager Server 4.1 docker 20.10.14_ce-150000.163.1 SUSE-SU-2022:1689-1
SUSE Manager Retail Branch Server 4.1 containerd 1.5.11-150000.68.1 SUSE-SU-2022:1689-1
SUSE Manager Retail Branch Server 4.1 docker 20.10.14_ce-150000.163.1 SUSE-SU-2022:1689-1
SUSE Manager Proxy 4.1 containerd 1.5.11-150000.68.1 SUSE-SU-2022:1689-1
SUSE Manager Proxy 4.1 docker 20.10.14_ce-150000.163.1 SUSE-SU-2022:1689-1
SUSE Enterprise Storage 7.1 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
SUSE Enterprise Storage 7 containerd 1.5.11-150000.68.1 SUSE-SU-2022:1689-1
SUSE Enterprise Storage 7 docker 20.10.14_ce-150000.163.1 SUSE-SU-2022:1689-1
SUSE Enterprise Storage 6 containerd 1.5.11-150000.68.1 SUSE-SU-2022:1689-1
SUSE Enterprise Storage 6 docker 20.10.14_ce-150000.163.1 SUSE-SU-2022:1689-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed containerd 1.5.11-1.1 openSUSE-SU-2024:12001-1
openSUSE Tumbleweed docker 20.10.14_ce-1.1 openSUSE-SU-2024:12002-1
openSUSE Tumbleweed docker-stable 24.0.9_ce-15.1 openSUSE-SU-2025:15589-1
openSUSE Tumbleweed runc 1.1.2-1.1 openSUSE-SU-2024:12074-1
openSUSE Leap 15.6 docker-stable 24.0.9_ce-150000.1.25.1 SUSE-SU-2025:03545-1
openSUSE Leap 15.4 containerd 1.5.11-150000.68.1 SUSE-SU-2022:1689-1
openSUSE Leap 15.4 docker +1 20.10.14_ce-150000.163.1 SUSE-SU-2022:1689-1
openSUSE Leap 15.3 containerd 1.5.11-150000.68.1 SUSE-SU-2022:1689-1
openSUSE Leap 15.3 docker +1 20.10.14_ce-150000.163.1 SUSE-SU-2022:1689-1
ReleasePackageFixed inAdvisory
Alpine v3.24 containerd 1.6.2-r0 —
Alpine v3.24 docker 20.10.14-r0 —
Alpine v3.23 containerd 1.6.2-r0 —
Alpine v3.23 docker 20.10.14-r0 —
Alpine v3.22 containerd 1.6.2-r0 —
Alpine v3.22 docker 20.10.14-r0 —
Alpine v3.21 containerd 1.6.2-r0 —
Alpine v3.21 docker 20.10.14-r0 —
Alpine v3.20 containerd 1.6.2-r0 —
Alpine v3.20 docker 20.10.14-r0 —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 containerd 1.6.2-r0 —
Alpine v3.19 docker 20.10.14-r0 —
Alpine v3.18 containerd 1.6.2-r0 —
Alpine v3.18 docker 20.10.14-r0 —
Alpine v3.17 containerd 1.6.2-r0 —
Alpine v3.17 docker 20.10.14-r0 —
Alpine v3.16 containerd 1.6.2-r0 —
Alpine v3.16 docker 20.10.14-r0 —
Alpine v3.15 containerd 1.5.11-r0 —
Alpine v3.15 docker 20.10.14-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 containerd +1 1.6.8-2.amzn2023.0.3 ALAS2023-2023-079

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) moby-runc 1.1.2-2 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling ctop 0.7.7-r13 —
Wolfi rolling docker-machine-driver-harvester 1.0.4-r1 —
Wolfi rolling rancher-machine 0.15.0.137-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/docker/docker < 20.10.14 20.10.14 GHSA-2mm7-x5h6-5pvq
Go github.com/docker/docker < 20.10.14+incompatible 20.10.14+incompatible GO-2022-0390
Go github.com/moby/moby < 20.10.14 20.10.14 GHSA-2mm7-x5h6-5pvq
Go github.com/moby/moby < 20.10.14+incompatible 20.10.14+incompatible GO-2022-0390

Advisories 13

References