CVE-2025-52565 container escape due to /dev/console mount and related races
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- KubernetesUbuntuDebian
Description
runc is a CLI tool for spawning and running containers according to the OCI specification. Versions 1.0.0-rc3 through 1.2.7, 1.3.0-rc.1 through 1.3.2, and 1.4.0-rc.1 through 1.4.0-rc.2, due to insufficient checks when bind-mounting /dev/pts/$n to /dev/console inside the container, an attacker can trick runc into bind-mounting paths which would normally be made read-only or be masked onto a path that the attacker can write to. This attack is very similar in concept and application to CVE-2025-31133, except that it attacks a similar vulnerability in a different target (namely, the bind-mount of /dev/pts/$n to /dev/console as configured for all containers that allocate a console). This happens after pivot_root(2), so this cannot be used to write to host files directly -- however, as with CVE-2025-31133, this can load to denial of service of the host or a container breakout by providing the attacker with a writable copy of /proc/sysrq-trigger or /proc/sys/kernel/core_pattern (respectively). This issue is fixed in versions 1.2.8, 1.3.3 and 1.4.0-rc.3.
Upgrade path
15 packages: 10 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/runc(Debian 12) | = 1.1.5+ds1-1; = 1.1.5+ds1-1+deb12u1; = 1.1.5+ds1-2; = 1.1.5+ds1-3 +23 more | No fix listed | No fix yet |
| debian/runc(Debian 13) | = 1.1.15+ds1-2; = 1.3.0+ds1-1; = 1.3.0+ds1-2; = 1.3.0+ds1-3 +9 more | No fix listed | No fix yet |
| ubuntu/runc(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/runc(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| alpine/runc(Alpine v3.22) | >= 1.3.0, < 1.3.3-r0 | 1.3.3-r0 | Fixed |
| alpine/runc(Alpine v3.23) | >= 1.3.0, < 1.3.3-r0 | 1.3.3-r0 | Fixed |
| alpine/runc(Alpine v3.24) | >= 1.3.0, < 1.3.3-r0 | 1.3.3-r0 | Fixed |
| cbl-mariner moby-runc(CBL-Mariner 2.0) | < 1.2.8-1 | 1.2.8-1 | Fixed |
| debian/runc(Debian 14) | < 1.3.3+ds1-2; = 1.1.15+ds1-2; = 1.3.0+ds1-1; = 1.3.0+ds1-2 +4 more | 1.3.3+ds1-2 | Fixed |
| Kubernetes(Azure Linux 3.0) | < 1.30.10-15 | 1.30.10-15 | Fixed |
| linuxfoundation runc | = 1.0.0-rc3; = 1.0.0-rc4; = 1.0.0-rc5; = 1.0.0-rc6 +13 more | 1.2.8, 1.3.3 | Fixed |
| opencontainers runc(Go) | >= 1.0.0-rc3, < 1.2.8; >= 1.0.0-rc3, <= 1.2.7; >= 1.3.0-rc.1, < 1.3.3; >= 1.3.0-rc.1, <= 1.3.2 +2 more | 1.2.8, 1.3.3, 1.4.0-rc.3 | Fixed |
| ubuntu/runc-app(Ubuntu 22.04) | < 1.3.3-0ubuntu1~22.04.2 | 1.3.3-0ubuntu1~22.04.2 | Fixed |
| ubuntu/runc-app(Ubuntu 24.04) | < 1.3.3-0ubuntu1~24.04.2 | 1.3.3-0ubuntu1~24.04.2 | Fixed |
| opencontainers runc | = >= 1.0.0-rc3, < 1.2.8; = >= 1.3.0-rc.1, < 1.3.3; = >= 1.4.0-rc.1, < 1.4.0-rc.3 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| opencontainers runc(Go) | >= 1.0.0-rc3, < 1.2.8 | 1.2.8 |
| opencontainers runc(Go) | >= 1.3.0-rc.1, < 1.3.3 | 1.3.3 |
| opencontainers runc(Go) | >= 1.4.0-rc.1, < 1.4.0-rc.3 | 1.4.0-rc.3 |
| Kubernetes(Azure Linux:3.0) | < 1.30.10-15 | 1.30.10-15 |
| cbl-mariner moby-runc(CBL-Mariner:2.0) | < 1.2.8-1 | 1.2.8-1 |
| debian/runc(Debian:12) | All versions | No fix listed |
| debian/runc(Debian:12) | = 1.1.10+ds1-1 | No fix listed |
| debian/runc(Debian:12) | = 1.1.12+ds1-1 | No fix listed |
| debian/runc(Debian:12) | = 1.1.12+ds1-2 | No fix listed |
| debian/runc(Debian:12) | = 1.1.12+ds1-3 | No fix listed |
| debian/runc(Debian:12) | = 1.1.12+ds1-4 | No fix listed |
| debian/runc(Debian:12) | = 1.1.12+ds1-5 | No fix listed |
| debian/runc(Debian:12) | = 1.1.12+ds1-5.1 | No fix listed |
| debian/runc(Debian:12) | = 1.1.15+ds1-1 | No fix listed |
| debian/runc(Debian:12) | = 1.1.15+ds1-2 | No fix listed |
| debian/runc(Debian:12) | = 1.1.5+ds1-1 | No fix listed |
| debian/runc(Debian:12) | = 1.1.5+ds1-1+deb12u1 | No fix listed |
| debian/runc(Debian:12) | = 1.1.5+ds1-2 | No fix listed |
| debian/runc(Debian:12) | = 1.1.5+ds1-3 | No fix listed |
| debian/runc(Debian:12) | = 1.1.5+ds1-4 | No fix listed |
| debian/runc(Debian:12) | = 1.1.5+ds1-5 | No fix listed |
| debian/runc(Debian:12) | = 1.3.0+ds1-1 | No fix listed |
| debian/runc(Debian:12) | = 1.3.0+ds1-2 | No fix listed |
| debian/runc(Debian:12) | = 1.3.0+ds1-3 | No fix listed |
| debian/runc(Debian:12) | = 1.3.0+ds1-4 | No fix listed |
Show 58 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/runc(Debian:12) | = 1.3.2+ds1-1 | No fix listed |
| debian/runc(Debian:12) | = 1.3.3+ds1-1 | No fix listed |
| debian/runc(Debian:12) | = 1.3.3+ds1-2 | No fix listed |
| debian/runc(Debian:12) | = 1.3.3+ds1-3 | No fix listed |
| debian/runc(Debian:12) | = 1.3.5+ds1-1 | No fix listed |
| debian/runc(Debian:12) | = 1.3.6+ds1-1 | No fix listed |
| debian/runc(Debian:12) | = 1.4.3+ds1-1 | No fix listed |
| debian/runc(Debian:13) | All versions | No fix listed |
| debian/runc(Debian:13) | = 1.1.15+ds1-2 | No fix listed |
| debian/runc(Debian:13) | = 1.3.0+ds1-1 | No fix listed |
| debian/runc(Debian:13) | = 1.3.0+ds1-2 | No fix listed |
| debian/runc(Debian:13) | = 1.3.0+ds1-3 | No fix listed |
| debian/runc(Debian:13) | = 1.3.0+ds1-4 | No fix listed |
| debian/runc(Debian:13) | = 1.3.2+ds1-1 | No fix listed |
| debian/runc(Debian:13) | = 1.3.3+ds1-1 | No fix listed |
| debian/runc(Debian:13) | = 1.3.3+ds1-2 | No fix listed |
| debian/runc(Debian:13) | = 1.3.3+ds1-3 | No fix listed |
| debian/runc(Debian:13) | = 1.3.5+ds1-1 | No fix listed |
| debian/runc(Debian:13) | = 1.3.6+ds1-1 | No fix listed |
| debian/runc(Debian:13) | = 1.4.3+ds1-1 | No fix listed |
| debian/runc(Debian:14) | < 1.3.3+ds1-2 | 1.3.3+ds1-2 |
| debian/runc(Debian:14) | = 1.1.15+ds1-2 | No fix listed |
| debian/runc(Debian:14) | = 1.3.0+ds1-1 | No fix listed |
| debian/runc(Debian:14) | = 1.3.0+ds1-2 | No fix listed |
| debian/runc(Debian:14) | = 1.3.0+ds1-3 | No fix listed |
| debian/runc(Debian:14) | = 1.3.0+ds1-4 | No fix listed |
| debian/runc(Debian:14) | = 1.3.2+ds1-1 | No fix listed |
| debian/runc(Debian:14) | = 1.3.3+ds1-1 | No fix listed |
| opencontainers runc(Go) | >= 1.0.0-rc3, <= 1.2.7 | No fix listed |
| opencontainers runc(Go) | >= 1.3.0-rc.1, <= 1.3.2 | No fix listed |
| opencontainers runc(Go) | >= 1.4.0-rc.1, <= 1.4.0-rc.2 | No fix listed |
| opencontainers runc | = >= 1.0.0-rc3, < 1.2.8 | No fix listed |
| opencontainers runc | = >= 1.3.0-rc.1, < 1.3.3 | No fix listed |
| opencontainers runc | = >= 1.4.0-rc.1, < 1.4.0-rc.3 | No fix listed |
| ubuntu/runc(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/runc-app(Ubuntu:22.04) | < 1.3.3-0ubuntu1~22.04.2 | 1.3.3-0ubuntu1~22.04.2 |
| ubuntu/runc(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/runc-app(Ubuntu:24.04) | < 1.3.3-0ubuntu1~24.04.2 | 1.3.3-0ubuntu1~24.04.2 |
| linuxfoundation runc | >= 1.0.1, < 1.2.8 | 1.2.8 |
| linuxfoundation runc | >= 1.3.0, < 1.3.3 | 1.3.3 |
| linuxfoundation runc | = 1.0.0-rc3 | No fix listed |
| linuxfoundation runc | = 1.0.0-rc4 | No fix listed |
| linuxfoundation runc | = 1.0.0-rc5 | No fix listed |
| linuxfoundation runc | = 1.0.0-rc6 | No fix listed |
| linuxfoundation runc | = 1.0.0-rc7 | No fix listed |
| linuxfoundation runc | = 1.0.0-rc8 | No fix listed |
| linuxfoundation runc | = 1.0.0-rc9 | No fix listed |
| linuxfoundation runc | = 1.0.0-rc90 | No fix listed |
| linuxfoundation runc | = 1.0.0-rc91 | No fix listed |
| linuxfoundation runc | = 1.0.0-rc92 | No fix listed |
| linuxfoundation runc | = 1.0.0-rc93 | No fix listed |
| linuxfoundation runc | = 1.0.0-rc94 | No fix listed |
| linuxfoundation runc | = 1.0.0-rc95 | No fix listed |
| linuxfoundation runc | = 1.4.0-rc1 | No fix listed |
| linuxfoundation runc | = 1.4.0-rc2 | No fix listed |
| alpine/runc(Alpine:v3.22) | >= 1.3.0, < 1.3.3-r0 | 1.3.3-r0 |
| alpine/runc(Alpine:v3.23) | >= 1.3.0, < 1.3.3-r0 | 1.3.3-r0 |
| alpine/runc(Alpine:v3.24) | >= 1.3.0, < 1.3.3-r0 | 1.3.3-r0 |
References
- https://github.com/opencontainers/runc/security/advisories/GHSA-qw9x-cqr3-wc7r exploit mitigation patch third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/opencontainers/runc/commit/01de9d65dc72f67b256ef03f9bfb795a2bf143b4 patch
- https://github.com/opencontainers/runc/commit/398955bccb7f20565c224a3064d331c19e422398 patch
- https://github.com/opencontainers/runc/commit/531ef794e4ecd628006a865ad334a048ee2b4b2e patch
- https://github.com/opencontainers/runc/commit/9be1dbf4ac67d9840a043ebd2df5c68f36705d1d patch
- https://github.com/opencontainers/runc/commit/aee7d3fe355dd02939d44155e308ea0052e0d53a patch
- https://github.com/opencontainers/runc/commit/db19bbed5348847da433faa9d69e9f90192bfa64 patch
- https://github.com/opencontainers/runc/commit/de87203e625cd7a27141fb5f2ad00a320c69c5e8 patch
- https://github.com/opencontainers/runc/commit/ff94f9991bd32076c871ef0ad8bc1b763458e480 patch
- github.com product
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2025-52565 vendor-advisory
- github.com
- Ubuntu CVE tracker vendor-advisory
- USN-7851-1 vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking