Default inheritable capabilities for linux container should be empty
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · Low
- Fix status
- Partial Red Hat: 5 fixed, 8 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| moby | moby | before 20.10.14 | 20.10.14 | Patch available | CNA |
| — | github.com/moby/moby (Go) | before 20.10.14 | 20.10.14 | Patch available | GHSA-2mm7-x5h6-5pvq |
| — | github.com/docker/docker (Go) | before 20.10.14 | 20.10.14 | Patch available | GHSA-2mm7-x5h6-5pvq |
- moby Vendormoby Affected before 20.10.14 Fixed in 20.10.14 Patch available CNA
- github.com/moby/moby (Go) Vendor— Affected before 20.10.14 Fixed in 20.10.14 Patch available GHSA-2mm7-x5h6-5pvq
- github.com/docker/docker (Go) Vendor— Affected before 20.10.14 Fixed in 20.10.14 Patch available GHSA-2mm7-x5h6-5pvq
CPE configurations NVD · 7
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:mobyproject:moby:*:*:*:*:*:*:*:* | before 20.10.14 | Vulnerable | Mobyproject |
| cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:* | not specified by NVD | Running on | Linux |
| cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* | 34 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* | 35 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* | 36 | Vulnerable | Fedoraproject |
| cpe:2.3:a:linuxfoundation:runc:*:*:*:*:*:*:*:* | before 1.1.2 | Vulnerable | backstage |
| cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* | 11.0 | Vulnerable | Debian |
- cpe:2.3:a:mobyproject:moby:*:*:*:*:*:*:*:* Versions before 20.10.14 Vulnerable ·Mobyproject
- cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Linux
- cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* Versions 34 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* Versions 36 Vulnerable ·Fedoraproject
- cpe:2.3:a:linuxfoundation:runc:*:*:*:*:*:*:*:* Versions before 1.1.2 Vulnerable ·backstage
- cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* Versions 11.0 Vulnerable ·Debian
Remediation
- Fix · CNA moby (moby) Fixed in 20.10.14
- Fix · GHSA-2mm7-x5h6-5pvq github.com/moby/moby (Go) Fixed in 20.10.14 Advisory →
- Fix · GHSA-2mm7-x5h6-5pvq github.com/docker/docker (Go) Fixed in 20.10.14 Advisory →
Red Hat 6 advisories
- RHSA-2022:2265 Released 2022-05-26 · Red Hat rating ModerateOpenShift Container Platform 4.6.58 security and extras update
- Red Hat OpenShift Container Platform 4.6 openshift4/ose-local-storage-diskmaker
- RHSA-2022:1699 Released 2022-05-12 · Red Hat rating ModerateOpenShift Container Platform 4.7.50 security update
- Red Hat OpenShift Container Platform 4.7 openshift4/ose-local-storage-diskmaker, openshift4/ose-local-storage-operator
- RHSA-2022:1622 Released 2022-05-04 · Red Hat rating ModerateOpenShift Container Platform 4.6.57 security and extras update
- Red Hat OpenShift Container Platform 4.6 openshift4/ose-local-storage-operator
Show 3 more Red Hat advisories
- RHSA-2022:1363 Released 2022-04-20 · Red Hat rating ModerateOpenShift Container Platform 4.9.29 bug fix and security update
- Red Hat OpenShift Container Platform 4.9 openshift4/ose-local-storage-diskmaker, openshift4/ose-local-storage-operator
- RHSA-2022:1370 Released 2022-04-20 · Red Hat rating ModerateOpenShift Container Platform 4.8.37 security and extras update
- Red Hat OpenShift Container Platform 4.8 openshift4/ose-local-storage-diskmaker, openshift4/ose-local-storage-operator
- RHSA-2022:1357 Released 2022-04-20 · Red Hat rating ModerateOpenShift Container Platform 4.10.10 security and extras update
- Red Hat OpenShift Container Platform 4.10 openshift4/ose-local-storage-diskmaker, openshift4/ose-local-storage-operator
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Migration Toolkit for Virtualization | Affected | No fix yet |
| Red Hat Advanced Cluster Security 3 | Affected | No fix yet |
| Red Hat Enterprise Linux 7 | Affected | No fix yet |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet |
| Red Hat OpenShift Container Platform Assisted Installer 1 | Affected | No fix yet |
| Red Hat OpenShift Virtualization 2 | Affected | No fix yet |
| Red Hat OpenShift Virtualization 4 | Affected | No fix yet |
| Red Hat Quay 3 | Affected | No fix yet |
| Red Hat OpenShift Container Platform 4.10 | Fixed | RHSA-2022:1357 |
| Red Hat OpenShift Container Platform 4.6 | Fixed | RHSA-2022:1622, RHSA-2022:2265 |
| Red Hat OpenShift Container Platform 4.7 | Fixed | RHSA-2022:1699 |
| Red Hat OpenShift Container Platform 4.8 | Fixed | RHSA-2022:1370 |
| Red Hat OpenShift Container Platform 4.9 | Fixed | RHSA-2022:1363 |
Not affected: 5 products
- Red Hat OpenShift Container Platform 4.10
- Red Hat OpenShift Container Platform 4.6
- Red Hat OpenShift Container Platform 4.7
- Red Hat OpenShift Container Platform 4.8
- Red Hat OpenShift Container Platform 4.9
Timeline
- 2026-10-02 Threatist record created from CVE-2022-24769
- 2026-10-03 Alias added: GHSA-2mm7-x5h6-5pvq
References
Advisory 12
- https://github.com/moby/moby/security/advisories/GHSA-2mm7-x5h6-5pvq
- https://github.com/moby/moby/releases/tag/v20.10.14
- FEDORA-2022-e9a09c1a7d
- FEDORA-2022-ed53f2439a
- FEDORA-2022-c07546070d
- FEDORA-2022-cac2323802
- FEDORA-2022-eda0049dd7
- FEDORA-2022-3826c8f549
- [oss-security] 20220512 CVE-2022-29162: runc < 1.1.2 incorrect handling of inheritable capabilities in default configuration
- DSA-5162
- GLSA-202401-31
- https://nvd.nist.gov/vuln/detail/CVE-2022-24769
Other 14
- https://github.com/moby/moby/commit/7f375bcff41ce672cd61e9a31f3eeb2966e3dbe1
- https://lists.fedoraproject.org/archives/list/[email protected]/message/HQCVS7WBFSTKJFNX5PGDRARMTOFWV2O7
- https://lists.fedoraproject.org/archives/list/[email protected]/message/HIMAHZ6AUIKN7AX26KHZYBXVECIOVWBH
- https://lists.fedoraproject.org/archives/list/[email protected]/message/FPOJUJZXGMIVKRS4QR75F6OIXNQ6LDBL
- https://lists.fedoraproject.org/archives/list/[email protected]/message/A5FQJ3MLFSEKQYCFPFZIKYGBXPZUJFVY
- https://lists.fedoraproject.org/archives/list/[email protected]/message/A5AFKOQ5CE3CEIULWW4FLQKHFFU6FSYG
- https://lists.fedoraproject.org/archives/list/[email protected]/message/6PMQKCAPK2AR3DCYITJYMMNBEGQBGLCC
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HQCVS7WBFSTKJFNX5PGDRARMTOFWV2O7
- 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/FPOJUJZXGMIVKRS4QR75F6OIXNQ6LDBL
- 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/6PMQKCAPK2AR3DCYITJYMMNBEGQBGLCC
- https://github.com/moby/moby
More moby vulnerabilities
- TI-2026-14229 Tar extraction in moby/go-archive can write outside the destination directory via link following CVSS 4.0HIGH 7.1
- TI-2021-12512 Moby HyperKit uninitialized memory use in virtio-sock pci_vtsock_proc_tx CVSS 3.1HIGH 7.1
- TI-2024-27462 Moby authz zero length regression CVSS 3.1CRITICAL 10.0
- TI-2024-15672 BuildKit interactive containers API does not validate entitlements check CVSS 3.1CRITICAL 9.8
- TI-2024-15671 BuildKit possible host system access from mount stub cleaner CVSS 3.1CRITICAL 10.0
- TI-2026-26365 Moby: AuthZ plugin bypass with oversized request body CVSS 3.1HIGH 8.8
Sources
- CVE-2022-24769 · CVE Program
- CVE-2022-24769 · NVD
- FIRST EPSS
- GHSA-2mm7-x5h6-5pvq · GitHub Advisory Database · CC BY 4.0
- CVE-2022-24769 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences