Bug 1209884 (CVE-2023-25809) - VUL-0: CVE-2023-25809: docker-runc,runc: rootless `/sys/fs/cgroup` is writable when cgroupns isn't unshared
Summary: VUL-0: CVE-2023-25809: docker-runc,runc: rootless `/sys/fs/cgroup` is writab...
Status: IN_PROGRESS
Alias: CVE-2023-25809
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Containers Team
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/361738/
Whiteboard: CVSSv3.1:SUSE:CVE-2023-25809:2.5:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-29 10:45 UTC by Robert Frohl
Modified: 2024-07-22 13:51 UTC (History)
4 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Frohl 2023-03-29 10:45:26 UTC
CVE-2023-25809

Impact: 
  It was found that rootless runc makes /sys/fs/cgroup writable in following conditons:

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


Patches:
   v1.1.5 (planned)


Workarounds:
    Condition 1: Unshare the cgroup namespace ((docker|podman|nerdctl) run --cgroupns=private). This is the default behavior of Docker/Podman/nerdctl on cgroup v2 hosts.
    Condition 2 (very rare): add /sys/fs/cgroup to maskedPaths


https://github.com/opencontainers/runc/security/advisories/GHSA-m8cg-xc2p-r3fc
Comment 1 Aleksa Sarai 2023-03-29 11:28:54 UTC
MR for this issue has already been submitted and accepted:

 * https://build.suse.de/request/show/293315
 * https://build.suse.de/request/show/293316
Comment 4 OBSbugzilla Bot 2023-03-29 13:45:11 UTC
This is an autogenerated message for OBS integration:
This bug (1209884) was mentioned in
https://build.opensuse.org/request/show/1075228 Factory / runc
Comment 6 Maintenance Automation 2023-04-03 12:30:21 UTC
SUSE-SU-2023:1726-1: An update that solves three vulnerabilities and has one fix can now be installed.

Category: security (important)
Bug References: 1168481, 1208962, 1209884, 1209888
CVE References: CVE-2023-25809, CVE-2023-27561, CVE-2023-28642
Sources used:
Containers Module 12 (src): runc-1.1.5-16.29.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 7 Maintenance Automation 2023-04-25 20:30:07 UTC
SUSE-SU-2023:2003-1: An update that solves three vulnerabilities and has one fix can now be installed.

Category: security (important)
Bug References: 1168481, 1208962, 1209884, 1209888
CVE References: CVE-2023-25809, CVE-2023-27561, CVE-2023-28642
Sources used:
openSUSE Leap Micro 5.3 (src): runc-1.1.5-150000.41.1
openSUSE Leap 15.4 (src): runc-1.1.5-150000.41.1
SUSE Linux Enterprise Micro for Rancher 5.3 (src): runc-1.1.5-150000.41.1
SUSE Linux Enterprise Micro 5.3 (src): runc-1.1.5-150000.41.1
SUSE Linux Enterprise Micro for Rancher 5.4 (src): runc-1.1.5-150000.41.1
SUSE Linux Enterprise Micro 5.4 (src): runc-1.1.5-150000.41.1
Containers Module 15-SP4 (src): runc-1.1.5-150000.41.1
SUSE Linux Enterprise High Performance Computing 15 SP1 LTSS 15-SP1 (src): runc-1.1.5-150000.41.1
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS 15-SP2 (src): runc-1.1.5-150000.41.1
SUSE Linux Enterprise High Performance Computing ESPOS 15 SP3 (src): runc-1.1.5-150000.41.1
SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (src): runc-1.1.5-150000.41.1
SUSE Linux Enterprise Server 15 SP1 LTSS 15-SP1 (src): runc-1.1.5-150000.41.1
SUSE Linux Enterprise Server 15 SP2 LTSS 15-SP2 (src): runc-1.1.5-150000.41.1
SUSE Linux Enterprise Server 15 SP3 LTSS 15-SP3 (src): runc-1.1.5-150000.41.1
SUSE Linux Enterprise Server for SAP Applications 15 SP1 (src): runc-1.1.5-150000.41.1
SUSE Linux Enterprise Server for SAP Applications 15 SP2 (src): runc-1.1.5-150000.41.1
SUSE Linux Enterprise Server for SAP Applications 15 SP3 (src): runc-1.1.5-150000.41.1
SUSE Enterprise Storage 7.1 (src): runc-1.1.5-150000.41.1
SUSE Enterprise Storage 7 (src): runc-1.1.5-150000.41.1
SUSE CaaS Platform 4.0 (src): runc-1.1.5-150000.41.1
SUSE Linux Enterprise Micro 5.1 (src): runc-1.1.5-150000.41.1
SUSE Linux Enterprise Micro 5.2 (src): runc-1.1.5-150000.41.1
SUSE Linux Enterprise Micro for Rancher 5.2 (src): runc-1.1.5-150000.41.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.