Bug 2175721 (CVE-2023-27561) - CVE-2023-27561 runc: volume mount race condition (regression of CVE-2019-19921)
Summary: CVE-2023-27561 runc: volume mount race condition (regression of CVE-2019-19921)
Keywords:
Status: NEW
Alias: CVE-2023-27561
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2175994 2175995 2175996 2175997 2176107 2176108 2176109 2176110
Blocks: 2175722
TreeView+ depends on / blocked
 
Reported: 2023-03-06 12:45 UTC by Mauro Matteo Cascella
Modified: 2024-04-23 14:29 UTC (History)
13 users (show)

Fixed In Version: runc 1.1.5
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in runc. An attacker who controls the container image for two containers that share a volume can race volume mounts during container initialization by adding a symlink to the rootfs that points to a directory on the volume.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:1326 0 None None None 2023-05-17 22:31:32 UTC
Red Hat Product Errata RHSA-2023:3612 0 None None None 2023-06-23 04:39:40 UTC
Red Hat Product Errata RHSA-2023:4093 0 None None None 2023-07-20 17:28:52 UTC
Red Hat Product Errata RHSA-2023:5006 0 None None None 2023-10-31 12:54:33 UTC
Red Hat Product Errata RHSA-2023:6380 0 None None None 2023-11-07 08:14:54 UTC
Red Hat Product Errata RHSA-2023:6938 0 None None None 2023-11-14 15:16:21 UTC
Red Hat Product Errata RHSA-2023:6939 0 None None None 2023-11-14 15:16:57 UTC

Description Mauro Matteo Cascella 2023-03-06 12:45:07 UTC
runc through 1.1.4 has Incorrect Access Control leading to Escalation of Privileges, related to libcontainer/rootfs_linux.go. To exploit this, an attacker must be able to spawn two containers with custom volume-mount configurations, and be able to run custom images. NOTE: this issue exists because of a CVE-2019-19921 regression.

References:
https://github.com/opencontainers/runc/issues/3751
https://gist.github.com/LiveOverflow/c937820b688922eb127fb760ce06dab9
https://github.com/opencontainers/runc/issues/2197#issuecomment-1437617334

Comment 2 Avinash Hanwate 2023-03-07 04:49:24 UTC
Created cadvisor tracking bugs for this issue:

Affects: fedora-all [bug 2175995]


Created golang-github-opencontainers-runc tracking bugs for this issue:

Affects: fedora-all [bug 2175996]


Created origin tracking bugs for this issue:

Affects: fedora-all [bug 2175997]


Created runc tracking bugs for this issue:

Affects: fedora-all [bug 2175994]

Comment 9 errata-xmlrpc 2023-05-17 22:31:31 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.13

Via RHSA-2023:1326 https://access.redhat.com/errata/RHSA-2023:1326

Comment 10 errata-xmlrpc 2023-06-23 04:39:38 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.13

Via RHSA-2023:3612 https://access.redhat.com/errata/RHSA-2023:3612

Comment 13 errata-xmlrpc 2023-07-20 17:28:50 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.13
  Ironic content for Red Hat OpenShift Container Platform 4.13

Via RHSA-2023:4093 https://access.redhat.com/errata/RHSA-2023:4093

Comment 16 errata-xmlrpc 2023-10-31 12:54:31 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.14

Via RHSA-2023:5006 https://access.redhat.com/errata/RHSA-2023:5006

Comment 17 errata-xmlrpc 2023-11-07 08:14:51 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:6380 https://access.redhat.com/errata/RHSA-2023:6380

Comment 18 errata-xmlrpc 2023-11-14 15:16:19 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:6938 https://access.redhat.com/errata/RHSA-2023:6938

Comment 19 errata-xmlrpc 2023-11-14 15:16:55 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:6939 https://access.redhat.com/errata/RHSA-2023:6939


Note You need to log in before you can comment on or make changes to this bug.