CVE-2022-29162 Incorrect Default Permissions in runc
- Published
- Updated
- Exploit status
- No public exploit known
Description
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| opencontainers runc(Go) | < 1.1.2 | 1.1.2 |
| debian/runc(Debian:12) | < 1.1.3+ds1-1 | 1.1.3+ds1-1 |
| debian/runc(Debian:13) | < 1.1.3+ds1-1 | 1.1.3+ds1-1 |
| debian/runc(Debian:14) | < 1.1.3+ds1-1 | 1.1.3+ds1-1 |
| opencontainers runc | = < 1.1.2 | No fix listed |
| linuxfoundation runc | < 1.1.2 | 1.1.2 |
| fedoraproject fedora | = 34 | No fix listed |
| fedoraproject fedora | = 35 | No fix listed |
| fedoraproject fedora | = 36 | No fix listed |
| alpine/runc(Alpine:v3.15) | < 1.1.2-r0 | 1.1.2-r0 |
| alpine/runc(Alpine:v3.16) | < 1.1.2-r0 | 1.1.2-r0 |
| alpine/runc(Alpine:v3.17) | < 1.1.2-r0 | 1.1.2-r0 |
| alpine/runc(Alpine:v3.18) | < 1.1.2-r0 | 1.1.2-r0 |
| alpine/runc(Alpine:v3.19) | < 1.1.2-r0 | 1.1.2-r0 |
| alpine/runc(Alpine:v3.20) | < 1.1.2-r0 | 1.1.2-r0 |
| alpine/runc(Alpine:v3.21) | < 1.1.2-r0 | 1.1.2-r0 |
| alpine/runc(Alpine:v3.22) | < 1.1.2-r0 | 1.1.2-r0 |
| alpine/runc(Alpine:v3.23) | < 1.1.2-r0 | 1.1.2-r0 |
| alpine/runc(Alpine:v3.24) | < 1.1.2-r0 | 1.1.2-r0 |
References
- github.com third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- github.com release-notes third-party-advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- [debian-lts-announce] 20230327 [SECURITY] [DLA 3369-1] runc security update mailing-list
- github.com
- Debian Security Tracker CVE-2022-29162 vendor-advisory
- FEDORA-2022-91b747a0d7 vendor-advisory
- FEDORA-2022-e980dc71b1 vendor-advisory
- FEDORA-2022-d1f55f8fd0 vendor-advisory
- security.alpinelinux.org vendor-advisory