github.com/opencontainers/runc
Affected
- introduced
0, fixed1.1.5(semver)
Fixed versions
1.1.5
Fix
- Fixed version
1.1.5go get github.com/opencontainers/[email protected]
Advisory
Also known as: CVE-2023-25809, GO-2023-1682
rootless: /sys/fs/cgroup is writable when cgroupns isn't unshared in runc
Impact
It was found that rootless runc makes /sys/fs/cgroup writable in following conditons:
config.json does not specify the cgroup namespace to be unshared (e.g.., (docker|podman|nerdctl) run --cgroupns=host, with Rootless Docker/Podman/nerdctl)/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.
Patches
v1.1.5 (planned)
Workarounds
(docker|podman|nerdctl) run --cgroupns=private). This is the default behavior of Docker/Podman/nerdctl on cgroup v2 hosts./sys/fs/cgroup to maskedPathsLow Basis: The source's own band: LOW
0, fixed 1.1.5 (semver)1.1.5
1.1.5go get github.com/opencontainers/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0