PT-2023-3586 · Runc+10 · Runc+10
Akihirosuda
·
Published
2023-03-29
·
Updated
2025-08-08
·
CVE-2023-25809
CVSS v3.1
6.3
Medium
| Vector | AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L |
Name of the Vulnerable Software and Affected Versions
runc versions prior to 1.1.5
Description
The issue is related to rootless runc making
/sys/fs/cgroup writable under certain conditions, specifically when runc is executed inside the user namespace and the config.json does not specify the cgroup namespace to be unshared, or when runc is executed outside the user namespace and /sys is mounted with rbind, ro. This allows a container to gain write access to the user-owned cgroup hierarchy /sys/fs/cgroup/user.slice/... on the host. Other users' cgroup hierarchies are not affected.Recommendations
To resolve the issue, upgrade to version 1.1.5.
For versions prior to 1.1.5, unshare the cgroup namespace by running
(docker|podman|nerdctl) run --cgroupns=private.
Alternatively, add /sys/fs/cgroup to maskedPaths.Exploit
Fix
Improper Preservation of Permissions
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Almalinux
Astra Linux
Centos
Linuxmint
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu
Runc