Skip to content

CVE-2025-52565 container escape due to /dev/console mount and related races

HighCVSS 8.4 EPSS 0.81%
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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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
ProductAffected versionsFixed 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