Vulnerability in Linuxfoundation Runc
CVE-2022-29162
runc is a CLI tool for spawning and running containers on Linux according to the OCI specification. A bug was found in runc prior to version 1.1.2 where `runc exec --cap` created processes 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). 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 runc 1.1.2. This fix changes `runc exec --cap` behavior such that the additional capabilities granted to the process being executed (as specified via `--cap` arguments) do not include inheritable capabilities. In addition, `runc spec` is changed to not set any inheritable capabilities in the created example OCI spec (`config.json`) file.
EPSS: 0.004 (32.5th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 5.9 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L.
Affected products
- Linuxfoundation Runc
- Opencontainers Runc — versions < 1.1.2
- Fedoraproject Fedora — versions 34, 35, 36
Weakness classification (CWE)
Public proof-of-concept exploits
References
- security-advisories@github.com (Third Party Advisory)
- security-advisories@github.com (Patch, Third Party Advisory)
- security-advisories@github.com (Third Party Advisory, Release Notes)
- security-advisories@github.com (vendor-advisory)
- security-advisories@github.com (vendor-advisory)
- security-advisories@github.com (vendor-advisory)
- security-advisories@github.com (mailing-list)
Frequently asked questions
- What is CVE-2022-29162?
- CVE-2022-29162 is a medium-severity vulnerability in Linuxfoundation Runc, classified under Incorrect Default Permissions. CVSS score: 5.9/10. Published 2022-05-17.
- How severe is CVE-2022-29162?
- Medium severity. CVSS v3 base score is 5.9 out of 10.
- Is CVE-2022-29162 known to be exploited?
- 5 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.