CVE-2023-25809 rootless: `/sys/fs/cgroup` is writable when cgroupns isn't unshared in runc
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- DockerUbuntuDebian
Description
runc is a CLI tool for spawning and running containers according to the OCI specification. In affected versions it was found that rootless runc makes /sys/fs/cgroup writable in following conditons: 1. when runc is executed inside the user namespace, and the config.json does not specify the cgroup namespace to be unshared (e.g.., (docker|podman|nerdctl) run --cgroupns=host, with Rootless Docker/Podman/nerdctl) or 2. when runc is executed outside the user namespace, and /sys is mounted with rbind, ro (e.g., runc spec --rootless; this condition is very rare). A container may gain the write access to user-owned cgroup hierarchy /sys/fs/cgroup/user.slice/... on the host . Other users's cgroup hierarchies are not affected. Users are advised to upgrade to version 1.1.5. Users unable to upgrade may unshare the cgroup namespace ((docker|podman|nerdctl) run --cgroupns=private). This is the default behavior of Docker/Podman/nerdctl on cgroup v2 hosts. or add /sys/fs/cgroup to maskedPaths.
Upgrade path
18 packages: 17 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/runc(Alpine v3.17) | < 1.1.5-r0 | 1.1.5-r0 | Fixed |
| alpine/runc(Alpine v3.18) | < 1.1.4-r0 | 1.1.4-r0 | Fixed |
| alpine/runc(Alpine v3.19) | < 1.1.4-r0 | 1.1.4-r0 | Fixed |
| alpine/runc(Alpine v3.20) | < 1.1.4-r0 | 1.1.4-r0 | Fixed |
| alpine/runc(Alpine v3.21) | < 1.1.4-r0 | 1.1.4-r0 | Fixed |
| alpine/runc(Alpine v3.22) | < 1.1.4-r0 | 1.1.4-r0 | Fixed |
| alpine/runc(Alpine v3.23) | < 1.1.4-r0 | 1.1.4-r0 | Fixed |
| alpine/runc(Alpine v3.24) | < 1.1.4-r0 | 1.1.4-r0 | Fixed |
| debian/runc(Debian 12) | < 1.1.5+ds1-1 | 1.1.5+ds1-1 | Fixed |
| debian/runc(Debian 13) | < 1.1.5+ds1-1 | 1.1.5+ds1-1 | Fixed |
| debian/runc(Debian 14) | < 1.1.5+ds1-1 | 1.1.5+ds1-1 | Fixed |
| linuxfoundation runc | < 1.1.5 | 1.1.5 | Fixed |
| opencontainers runc(Go) | < 1.1.5 | 1.1.5 | Fixed |
| ubuntu/runc(Ubuntu 18.04) | < 1.1.4-0ubuntu1~18.04.2; = 1.0.0~rc2+docker1.13.1-0ubuntu1; = 1.0.0~rc4+dfsg1-2; = 1.0.0~rc4+dfsg1-6 +12 more | 1.1.4-0ubuntu1~18.04.2 | Fixed |
| ubuntu/runc(Ubuntu 20.04) | < 1.1.4-0ubuntu1~20.04.3; = 1.0.0~rc8+git20190923.3e425f80-0ubuntu1; = 1.0.0~rc10-0ubuntu1; = 1.0.0~rc93-0ubuntu1~20.04.1 +8 more | 1.1.4-0ubuntu1~20.04.3 | Fixed |
| ubuntu/runc(Ubuntu 22.04) | < 1.1.4-0ubuntu1~22.04.3; = 1.0.1-0ubuntu2; = 1.0.1-0ubuntu3; = 1.0.3-0ubuntu1 +4 more | 1.1.4-0ubuntu1~22.04.3 | Fixed |
| ubuntu/runc(Ubuntu Pro 16.04) | < 1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4+esm4; = 0.0.8+dfsg-2; = 0.1.1-0ubuntu5~16.04; = 1.0.0~rc1-0ubuntu1~16.04 +10 more | 1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4+esm4 | Fixed |
| opencontainers runc | = < 1.1.5 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| opencontainers runc(Go) | < 1.1.5 | 1.1.5 |
| debian/runc(Debian:12) | < 1.1.5+ds1-1 | 1.1.5+ds1-1 |
| debian/runc(Debian:13) | < 1.1.5+ds1-1 | 1.1.5+ds1-1 |
| debian/runc(Debian:14) | < 1.1.5+ds1-1 | 1.1.5+ds1-1 |
| opencontainers runc | = < 1.1.5 | No fix listed |
| ubuntu/runc(Ubuntu:22.04) | < 1.1.4-0ubuntu1~22.04.3 | 1.1.4-0ubuntu1~22.04.3 |
| linuxfoundation runc | < 1.1.5 | 1.1.5 |
| alpine/runc(Alpine:v3.17) | < 1.1.5-r0 | 1.1.5-r0 |
| alpine/runc(Alpine:v3.18) | < 1.1.4-r0 | 1.1.4-r0 |
| alpine/runc(Alpine:v3.19) | < 1.1.4-r0 | 1.1.4-r0 |
| alpine/runc(Alpine:v3.20) | < 1.1.4-r0 | 1.1.4-r0 |
| alpine/runc(Alpine:v3.21) | < 1.1.4-r0 | 1.1.4-r0 |
| alpine/runc(Alpine:v3.22) | < 1.1.4-r0 | 1.1.4-r0 |
| alpine/runc(Alpine:v3.23) | < 1.1.4-r0 | 1.1.4-r0 |
| alpine/runc(Alpine:v3.24) | < 1.1.4-r0 | 1.1.4-r0 |
| ubuntu/runc(Ubuntu:Pro:16.04) | < 1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4+esm4 | 1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4+esm4 |
| ubuntu/runc(Ubuntu:Pro:16.04) | = 0.0.8+dfsg-2 | No fix listed |
| ubuntu/runc(Ubuntu:Pro:16.04) | = 0.1.1-0ubuntu5~16.04 | No fix listed |
| ubuntu/runc(Ubuntu:Pro:16.04) | = 1.0.0~rc1-0ubuntu1~16.04 | No fix listed |
| ubuntu/runc(Ubuntu:Pro:16.04) | = 1.0.0~rc1-0ubuntu2~16.04.1 | No fix listed |
| ubuntu/runc(Ubuntu:Pro:16.04) | = 1.0.0~rc1-0ubuntu2~16.04.1.1 | No fix listed |
| ubuntu/runc(Ubuntu:Pro:16.04) | = 1.0.0~rc2-0ubuntu2~16.04.1 | No fix listed |
| ubuntu/runc(Ubuntu:Pro:16.04) | = 1.0.0~rc2+docker1.12.6-0ubuntu1~16.04.1 | No fix listed |
| ubuntu/runc(Ubuntu:Pro:16.04) | = 1.0.0~rc2+docker1.13.1-0ubuntu1~16.04.1 | No fix listed |
| ubuntu/runc(Ubuntu:Pro:16.04) | = 1.0.0~rc2+docker1.13.1-0ubuntu1~16.04.2 | No fix listed |
Show 39 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/runc(Ubuntu:Pro:16.04) | = 1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.3 | No fix listed |
| ubuntu/runc(Ubuntu:Pro:16.04) | = 1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4 | No fix listed |
| ubuntu/runc(Ubuntu:Pro:16.04) | = 1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4+esm1 | No fix listed |
| ubuntu/runc(Ubuntu:Pro:16.04) | = 1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4+esm2 | No fix listed |
| ubuntu/runc(Ubuntu:18.04) | < 1.1.4-0ubuntu1~18.04.2 | 1.1.4-0ubuntu1~18.04.2 |
| ubuntu/runc(Ubuntu:18.04) | = 1.0.0~rc2+docker1.13.1-0ubuntu1 | No fix listed |
| ubuntu/runc(Ubuntu:18.04) | = 1.0.0~rc4+dfsg1-2 | No fix listed |
| ubuntu/runc(Ubuntu:18.04) | = 1.0.0~rc4+dfsg1-6 | No fix listed |
| ubuntu/runc(Ubuntu:18.04) | = 1.0.0~rc4+dfsg1-6ubuntu0.18.04.1 | No fix listed |
| ubuntu/runc(Ubuntu:18.04) | = 1.0.0~rc7+git20190403.029124da-0ubuntu1~18.04.1 | No fix listed |
| ubuntu/runc(Ubuntu:18.04) | = 1.0.0~rc7+git20190403.029124da-0ubuntu1~18.04.2 | No fix listed |
| ubuntu/runc(Ubuntu:18.04) | = 1.0.0~rc10-0ubuntu1~18.04.1 | No fix listed |
| ubuntu/runc(Ubuntu:18.04) | = 1.0.0~rc10-0ubuntu1~18.04.2 | No fix listed |
| ubuntu/runc(Ubuntu:18.04) | = 1.0.0~rc93-0ubuntu1~18.04.1 | No fix listed |
| ubuntu/runc(Ubuntu:18.04) | = 1.0.0~rc93-0ubuntu1~18.04.2 | No fix listed |
| ubuntu/runc(Ubuntu:18.04) | = 1.0.0~rc95-0ubuntu1~18.04.1 | No fix listed |
| ubuntu/runc(Ubuntu:18.04) | = 1.0.0~rc95-0ubuntu1~18.04.2 | No fix listed |
| ubuntu/runc(Ubuntu:18.04) | = 1.0.1-0ubuntu2~18.04.1 | No fix listed |
| ubuntu/runc(Ubuntu:18.04) | = 1.1.0-0ubuntu1~18.04.1 | No fix listed |
| ubuntu/runc(Ubuntu:18.04) | = 1.1.4-0ubuntu1~18.04.1 | No fix listed |
| ubuntu/runc(Ubuntu:20.04) | < 1.1.4-0ubuntu1~20.04.3 | 1.1.4-0ubuntu1~20.04.3 |
| ubuntu/runc(Ubuntu:20.04) | = 1.0.0~rc8+git20190923.3e425f80-0ubuntu1 | No fix listed |
| ubuntu/runc(Ubuntu:20.04) | = 1.0.0~rc10-0ubuntu1 | No fix listed |
| ubuntu/runc(Ubuntu:20.04) | = 1.0.0~rc93-0ubuntu1~20.04.1 | No fix listed |
| ubuntu/runc(Ubuntu:20.04) | = 1.0.0~rc93-0ubuntu1~20.04.2 | No fix listed |
| ubuntu/runc(Ubuntu:20.04) | = 1.0.0~rc95-0ubuntu1~20.04.1 | No fix listed |
| ubuntu/runc(Ubuntu:20.04) | = 1.0.0~rc95-0ubuntu1~20.04.2 | No fix listed |
| ubuntu/runc(Ubuntu:20.04) | = 1.0.1-0ubuntu2~20.04.1 | No fix listed |
| ubuntu/runc(Ubuntu:20.04) | = 1.1.0-0ubuntu1~20.04.1 | No fix listed |
| ubuntu/runc(Ubuntu:20.04) | = 1.1.0-0ubuntu1~20.04.2 | No fix listed |
| ubuntu/runc(Ubuntu:20.04) | = 1.1.4-0ubuntu1~20.04.1 | No fix listed |
| ubuntu/runc(Ubuntu:20.04) | = 1.1.4-0ubuntu1~20.04.2 | No fix listed |
| ubuntu/runc(Ubuntu:22.04) | = 1.0.1-0ubuntu2 | No fix listed |
| ubuntu/runc(Ubuntu:22.04) | = 1.0.1-0ubuntu3 | No fix listed |
| ubuntu/runc(Ubuntu:22.04) | = 1.0.3-0ubuntu1 | No fix listed |
| ubuntu/runc(Ubuntu:22.04) | = 1.1.0-0ubuntu1 | No fix listed |
| ubuntu/runc(Ubuntu:22.04) | = 1.1.0-0ubuntu1.1 | No fix listed |
| ubuntu/runc(Ubuntu:22.04) | = 1.1.4-0ubuntu1~22.04.1 | No fix listed |
| ubuntu/runc(Ubuntu:22.04) | = 1.1.4-0ubuntu1~22.04.2 | No fix listed |
References
- https://github.com/opencontainers/runc/security/advisories/GHSA-m8cg-xc2p-r3fc exploit issue-tracking vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/opencontainers/runc/commit/0d62b950e60f6980b54fe3bafd9a9c608dc1df17 patch
- github.com
- github.com product
- Debian Security Tracker CVE-2023-25809 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-6088-1 vendor-advisory
- USN-6088-2 vendor-advisory
- www.cve.org issue-tracking
- security.alpinelinux.org vendor-advisory
- github.com issue-tracking