Skip to content
OpenAdvisories
Medium · 5.0 CVE-2023-25809 EUVD-2023-1058GHSA-m8cg-xc2p-r3fcGO-2023-1682

rootless: `/sys/fs/cgroup` is writable when cgroupns isn't unshared in runc

Published Mar 29, 2023 · Updated Feb 12, 2025 · Assigned by GitHub_M

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`.

Affected products

VendorProductAffectedFixed
opencontainers runc < 1.1.5 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 runc 1.1.5+ds1-1 —
Debian 13 runc 1.1.5+ds1-1 —
Debian 12 runc 1.1.5+ds1-1 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS runc 1.1.4-0ubuntu1~22.04.3 USN-6088-1
Ubuntu 20.04 LTS runc 1.1.4-0ubuntu1~20.04.3 USN-6088-1
Ubuntu 18.04 LTS runc 1.1.4-0ubuntu1~18.04.2 USN-6088-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS runc 1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4+esm4 USN-6088-2
ReleasePackageFixed inAdvisory
RHEL 9 runc 4:1.1.9-1.el9 RHSA-2023:6380
RHEL 8 buildah +1 1:1.24.6-7.module+el8.9.0+19784+443be299 RHSA-2023:6939, RHSA-2023:6938
RHEL 8 cockpit-podman 46-1.module+el8.9.0+19098+6e7a5e3f RHSA-2023:6939, RHSA-2023:6938
RHEL 8 conmon 2:2.1.4-2.module+el8.9.0+19098+6e7a5e3f RHSA-2023:6939, RHSA-2023:6938
RHEL 8 container-selinux 2:2.205.0-3.module+el8.9.0+19098+6e7a5e3f RHSA-2023:6939, RHSA-2023:6938
RHEL 8 containernetworking-plugins 1:1.1.1-5.module+el8.9.0+19784+443be299 RHSA-2023:6939, RHSA-2023:6938
RHEL 8 containers-common 2:1-38.module+el8.9.0+19098+6e7a5e3f RHSA-2023:6939, RHSA-2023:6938
RHEL 8 crit +4 3.15-3.module+el8.9.0+19243+df4d9ff2 RHSA-2023:6939, RHSA-2023:6938
RHEL 8 crun 1.8.3-1.module+el8.9.0+19098+6e7a5e3f RHSA-2023:6939, RHSA-2023:6938
RHEL 8 fuse-overlayfs 1.9-2.module+el8.9.0+19098+6e7a5e3f RHSA-2023:6939, RHSA-2023:6938
RHEL 8 libslirp +1 4.4.0-1.module+el8.9.0+19243+df4d9ff2 RHSA-2023:6939, RHSA-2023:6938
RHEL 8 netavark +1 2:1.0.1-38.module+el8.9.0+19098+6e7a5e3f RHSA-2023:6939, RHSA-2023:6938
RHEL 8 oci-seccomp-bpf-hook 1.2.5-2.module+el8.9.0+19098+6e7a5e3f RHSA-2023:6939, RHSA-2023:6938
RHEL 8 podman +6 2:4.0.2-24.module+el8.9.0+19784+443be299 RHSA-2023:6939, RHSA-2023:6938
RHEL 8 python-podman +1 4.0.0-2.module+el8.9.0+19098+6e7a5e3f RHSA-2023:6939, RHSA-2023:6938
RHEL 8 runc 1:1.1.5-2.module+el8.9.0+19104+fcef53a3 RHSA-2023:6939, RHSA-2023:6938
RHEL 8 skopeo +1 2:1.6.2-8.module+el8.9.0+19104+fcef53a3 RHSA-2023:6939, RHSA-2023:6938
RHEL 8 slirp4netns 1.1.8-3.module+el8.9.0+19098+6e7a5e3f RHSA-2023:6939, RHSA-2023:6938
RHEL 8 toolbox +1 0.0.99.4-5.module+el8.9.0+19655+b08391f8 RHSA-2023:6939, RHSA-2023:6938
RHEL 8 udica 0.2.6-4.module+el8.9.0+19098+6e7a5e3f RHSA-2023:6939, RHSA-2023:6938

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 runc 4:1.1.9-1.el9 ALSA-2023:6380
AlmaLinux 8 buildah +1 1:1.24.6-7.module_el8.9.0+3627+db8ec155 ALSA-2023:6939, ALSA-2023:6938
AlmaLinux 8 cockpit-podman 46-1.module_el8.7.0+3344+5bcd850f ALSA-2023:6939, ALSA-2023:6938
AlmaLinux 8 conmon 2:2.1.4-2.module_el8.9.0+3627+db8ec155 ALSA-2023:6939, ALSA-2023:6938
AlmaLinux 8 container-selinux 2:2.205.0-3.module_el8.9.0+3627+db8ec155 ALSA-2023:6939, ALSA-2023:6938
AlmaLinux 8 containernetworking-plugins 1:1.1.1-5.module_el8.9.0+3627+db8ec155 ALSA-2023:6939, ALSA-2023:6938
AlmaLinux 8 containers-common 2:1-38.module_el8.9.0+3627+db8ec155 ALSA-2023:6939, ALSA-2023:6938
AlmaLinux 8 crit +4 3.15-3.module_el8.6.0+2877+8e437bf5 ALSA-2023:6939, ALSA-2023:6938
AlmaLinux 8 crun 1.8.3-1.module_el8.9.0+3627+db8ec155 ALSA-2023:6939, ALSA-2023:6938
AlmaLinux 8 fuse-overlayfs 1.9-2.module_el8.9.0+3627+db8ec155 ALSA-2023:6939, ALSA-2023:6938
AlmaLinux 8 libslirp +1 4.4.0-1.module_el8.6.0+2877+8e437bf5 ALSA-2023:6939, ALSA-2023:6938
AlmaLinux 8 netavark +1 2:1.0.1-38.module_el8.9.0+3627+db8ec155 ALSA-2023:6939, ALSA-2023:6938
AlmaLinux 8 oci-seccomp-bpf-hook 1.2.5-2.module_el8.8.0+3468+16b86c82 ALSA-2023:6939, ALSA-2023:6938
AlmaLinux 8 podman +6 2:4.0.2-24.module_el8.9.0+3627+db8ec155 ALSA-2023:6939, ALSA-2023:6938
AlmaLinux 8 python3-podman 4.0.0-2.module_el8.9.0+3627+db8ec155 ALSA-2023:6939, ALSA-2023:6938
AlmaLinux 8 runc 1:1.1.5-2.module_el8.9.0+3627+db8ec155 ALSA-2023:6939, ALSA-2023:6938
AlmaLinux 8 skopeo +1 2:1.6.2-8.module_el8.9.0+3627+db8ec155 ALSA-2023:6939, ALSA-2023:6938
AlmaLinux 8 slirp4netns 1.1.8-3.module_el8.9.0+3627+db8ec155 ALSA-2023:6939, ALSA-2023:6938
AlmaLinux 8 toolbox +1 0.0.99.4-5.module_el8.9.0+3627+db8ec155 ALSA-2023:6939, ALSA-2023:6938
AlmaLinux 8 udica 0.2.6-4.module_el8.9.0+3627+db8ec155 ALSA-2023:6939, ALSA-2023:6938

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 buildah 1:1.24.6-7.module+el8.9.0+1445+07728297 RLSA-2023:6938
Rocky Linux 8 cockpit-podman 46-1.module+el8.9.0+1445+07728297 RLSA-2023:6938
Rocky Linux 8 conmon 2:2.1.4-2.module+el8.9.0+1445+07728297 RLSA-2023:6938
Rocky Linux 8 container-selinux 2:2.205.0-3.module+el8.9.0+1445+07728297 RLSA-2023:6938
Rocky Linux 8 containernetworking-plugins 1:1.1.1-5.module+el8.9.0+1445+07728297 RLSA-2023:6938
Rocky Linux 8 containers-common 2:1-38.module+el8.9.0+1445+07728297 RLSA-2023:6938
Rocky Linux 8 criu 3.15-3.module+el8.9.0+1445+07728297 RLSA-2023:6938
Rocky Linux 8 crun 1.8.3-1.module+el8.9.0+1445+07728297 RLSA-2023:6938
Rocky Linux 8 fuse-overlayfs 1.9-2.module+el8.9.0+1445+07728297 RLSA-2023:6938
Rocky Linux 8 libslirp 4.4.0-1.module+el8.9.0+1445+07728297 RLSA-2023:6939, RLSA-2023:6938
Rocky Linux 8 oci-seccomp-bpf-hook 1.2.5-2.module+el8.9.0+1445+07728297 RLSA-2023:6938
Rocky Linux 8 podman 2:4.0.2-24.module+el8.9.0+1445+07728297 RLSA-2023:6938
Rocky Linux 8 python-podman 4.0.0-2.module+el8.9.0+1445+07728297 RLSA-2023:6938
Rocky Linux 8 runc 1:1.1.5-2.module+el8.9.0+1445+07728297 RLSA-2023:6938
Rocky Linux 8 slirp4netns 1.1.8-3.module+el8.9.0+1445+07728297 RLSA-2023:6938
Rocky Linux 8 udica 0.2.6-4.module+el8.9.0+1445+07728297 RLSA-2023:6938
ReleasePackageFixed inAdvisory
SLES 15 SP4 runc 1.1.5-150000.41.1 SUSE-SU-2023:2003-1
SLES 15 SP3 runc 1.1.5-150000.41.1 SUSE-SU-2023:2003-1
SLES 15 SP2 runc 1.1.5-150000.41.1 SUSE-SU-2023:2003-1
SLES 15 SP1 runc 1.1.5-150000.41.1 SUSE-SU-2023:2003-1
SLES 12 runc 1.1.5-16.29.1 SUSE-SU-2023:1726-1
Show 12 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP3 runc 1.1.5-150000.41.1 SUSE-SU-2023:2003-1
SLES for SAP 15 SP2 runc 1.1.5-150000.41.1 SUSE-SU-2023:2003-1
SLES for SAP 15 SP1 runc 1.1.5-150000.41.1 SUSE-SU-2023:2003-1
SLE Micro 5.4 runc 1.1.5-150000.41.1 SUSE-SU-2023:2003-1
SLE Micro 5.3 runc 1.1.5-150000.41.1 SUSE-SU-2023:2003-1
SLE Micro 5.2 runc 1.1.5-150000.41.1 SUSE-SU-2023:2003-1
SLE Micro 5.1 runc 1.1.5-150000.41.1 SUSE-SU-2023:2003-1
SLE HPC 15 SP3 runc 1.1.5-150000.41.1 SUSE-SU-2023:2003-1
SLE HPC 15 SP2 runc 1.1.5-150000.41.1 SUSE-SU-2023:2003-1
SLE HPC 15 SP1 runc 1.1.5-150000.41.1 SUSE-SU-2023:2003-1
SUSE Enterprise Storage 7.1 runc 1.1.5-150000.41.1 SUSE-SU-2023:2003-1
SUSE Enterprise Storage 7 runc 1.1.5-150000.41.1 SUSE-SU-2023:2003-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20250807T150727-1.1 openSUSE-SU-2025:15424-1
openSUSE Tumbleweed runc 1.1.5-1.1 openSUSE-SU-2024:12826-1
openSUSE Leap 15.4 runc 1.1.5-150000.41.1 SUSE-SU-2023:2003-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.3 runc 1.1.5-150000.41.1 SUSE-SU-2023:2003-1
ReleasePackageFixed inAdvisory
Alpine v3.24 runc 1.1.4-r0 —
Alpine v3.23 runc 1.1.4-r0 —
Alpine v3.22 runc 1.1.4-r0 —
Alpine v3.21 runc 1.1.4-r0 —
Alpine v3.20 runc 1.1.4-r0 —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 runc 1.1.4-r0 —
Alpine v3.18 runc 1.1.4-r0 —
Alpine v3.17 runc 1.1.5-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 runc 1.1.5-1.amzn2023.0.1 ALAS2023-2023-208

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) moby-runc 1.1.5-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 runc 4:1.1.9-1.el9 ELSA-2023-6380
Oracle Linux 8 buildah +1 1:1.24.6-5.module+el8.8.0+20984+ab6ce66c ELSA-2023-12579, ELSA-2023-12578, ELSA-2023-6939
Oracle Linux 8 cockpit-podman 46-1.module+el8.8.0+20984+ab6ce66c ELSA-2023-12579, ELSA-2023-12578, ELSA-2023-6939
Oracle Linux 8 conmon 2:2.1.4-1.module+el8.8.0+20984+ab6ce66c ELSA-2023-12579, ELSA-2023-12578, ELSA-2023-6939
Oracle Linux 8 container-selinux 2:2.199.0-1.module+el8.8.0+20984+ab6ce66c ELSA-2023-12579, ELSA-2023-12578, ELSA-2023-6939
Oracle Linux 8 containernetworking-plugins 1:1.1.1-2.module+el8.8.0+20984+ab6ce66c ELSA-2023-12579, ELSA-2023-12578, ELSA-2023-6939
Oracle Linux 8 containers-common 2:1-37.0.1.module+el8.8.0+20984+ab6ce66c ELSA-2023-12579, ELSA-2023-12578, ELSA-2023-6939
Oracle Linux 8 crit +4 3.15-3.module+el8.8.0+20984+ab6ce66c ELSA-2023-12579, ELSA-2023-12578, ELSA-2023-6939
Oracle Linux 8 crun 1.6-1.module+el8.8.0+20984+ab6ce66c ELSA-2023-12579, ELSA-2023-12578, ELSA-2023-6939
Oracle Linux 8 fuse-overlayfs 1.9-1.module+el8.8.0+20984+ab6ce66c ELSA-2023-12579, ELSA-2023-12578, ELSA-2023-6939
Oracle Linux 8 libslirp +1 4.4.0-1.module+el8.8.0+20984+ab6ce66c ELSA-2023-12579, ELSA-2023-12578, ELSA-2023-6939
Oracle Linux 8 netavark +1 2:1.0.1-37.0.1.module+el8.8.0+20984+ab6ce66c ELSA-2023-12579, ELSA-2023-12578, ELSA-2023-6939
Oracle Linux 8 oci-seccomp-bpf-hook 1.2.5-2.module+el8.8.0+20984+ab6ce66c ELSA-2023-12579, ELSA-2023-12578, ELSA-2023-6939
Oracle Linux 8 podman +6 2:4.0.2-20.module+el8.8.0+20984+ab6ce66c ELSA-2023-12579, ELSA-2023-12578, ELSA-2023-6939
Oracle Linux 8 python3-podman 4.0.0-1.module+el8.8.0+20984+ab6ce66c ELSA-2023-12579, ELSA-2023-12578, ELSA-2023-6939
Oracle Linux 8 runc 1:1.1.4-1.0.1.module+el8.8.0+21118+db7590d7 ELSA-2023-12579, ELSA-2023-12578, ELSA-2023-6939
Oracle Linux 8 skopeo +1 2:1.6.2-6.module+el8.8.0+20984+ab6ce66c ELSA-2023-12579, ELSA-2023-12578, ELSA-2023-6939
Oracle Linux 8 slirp4netns 1.1.8-2.module+el8.8.0+20984+ab6ce66c ELSA-2023-12579, ELSA-2023-12578, ELSA-2023-6939
Oracle Linux 8 udica 0.2.6-3.module+el8.8.0+20984+ab6ce66c ELSA-2023-12579, ELSA-2023-12578, ELSA-2023-6939

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling ctop 0.7.7-r13 —
Wolfi rolling podman +1 5.2.2-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/opencontainers/runc < 1.1.5 1.1.5 GHSA-m8cg-xc2p-r3fc

Advisories 22

References