CVE Vulnerabilities

CVE-2024-21626

Exposure of Resource to Wrong Sphere

Published: Jan 31, 2024 | Modified: Feb 19, 2024
CVSS 3.x
8.6
HIGH
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
8.6 IMPORTANT
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Ubuntu
HIGH

runc is a CLI tool for spawning and running containers on Linux according to the OCI specification. In runc 1.1.11 and earlier, due to an internal file descriptor leak, an attacker could cause a newly-spawned container process (from runc exec) to have a working directory in the host filesystem namespace, allowing for a container escape by giving access to the host filesystem (attack 2). The same attack could be used by a malicious image to allow a container process to gain access to the host filesystem through runc run (attack 1). Variants of attacks 1 and 2 could be also be used to overwrite semi-arbitrary host binaries, allowing for complete container escapes (attack 3a and attack 3b). runc 1.1.12 includes patches for this issue.

Weakness

The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.

Affected Software

Name Vendor Start Version End Version
Runc Linuxfoundation * 1.1.12 (excluding)
OCP-Tools-4.15-RHEL-8 RedHat jenkins-0:2.440.3.1718879390-3.el8 *
OCP-Tools-4.15-RHEL-8 RedHat jenkins-2-plugins-0:4.15.1718879538-1.el8 *
Red Hat Enterprise Linux 7 Extras RedHat runc-0:1.0.0-70.rc10.el7_9 *
Red Hat Enterprise Linux 7 Extras RedHat docker-2:1.13.1-210.git7d71120.el7_9 *
Red Hat Enterprise Linux 8 RedHat container-tools:4.0-8090020240201111813.d7b6f4b7 *
Red Hat Enterprise Linux 8 RedHat container-tools:rhel8-8090020240201111839.d7b6f4b7 *
Red Hat Enterprise Linux 8.2 Advanced Update Support RedHat container-tools:2.0-8020020240206120705.28c38760 *
Red Hat Enterprise Linux 8.2 Telecommunications Update Service RedHat container-tools:2.0-8020020240206120705.28c38760 *
Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions RedHat container-tools:2.0-8020020240206120705.28c38760 *
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support RedHat container-tools:3.0-8040020240207051234.c0c392d5 *
Red Hat Enterprise Linux 8.4 Telecommunications Update Service RedHat container-tools:3.0-8040020240207051234.c0c392d5 *
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions RedHat container-tools:3.0-8040020240207051234.c0c392d5 *
Red Hat Enterprise Linux 8.6 Extended Update Support RedHat container-tools:4.0-8060020240205133014.3b538bd8 *
Red Hat Enterprise Linux 8.6 Extended Update Support RedHat container-tools:rhel8-8060020240206151655.3b538bd8 *
Red Hat Enterprise Linux 8.8 Extended Update Support RedHat container-tools:rhel8-8080020240206143933.0f77c1b7 *
Red Hat Enterprise Linux 9 RedHat runc-4:1.1.12-1.el9_3 *
Red Hat Enterprise Linux 9.0 Extended Update Support RedHat runc-4:1.1.12-1.el9_0 *
Red Hat Enterprise Linux 9.2 Extended Update Support RedHat runc-4:1.1.12-1.el9_2 *
Red Hat OpenShift Container Platform 4.11 RedHat runc-3:1.1.2-3.1.rhaos4.11.el8 *
Red Hat OpenShift Container Platform 4.12 RedHat runc-3:1.1.6-5.1.rhaos4.12.el8 *
Red Hat OpenShift Container Platform 4.13 RedHat runc-4:1.1.12-1.rhaos4.13.el9 *
Red Hat OpenShift Container Platform 4.14 RedHat runc-4:1.1.12-1.rhaos4.14.el8 *
Red Hat OpenShift Container Platform 4.14 RedHat microshift-0:4.14.42-202411280904.p0.gcf4d04f.assembly.4.14.42.el9 *
Red Hat OpenShift Container Platform 4.15 RedHat microshift-0:4.15.41-202412091343.p0.gcf9680e.assembly.4.15.41.el9 *
Red Hat OpenShift Container Platform 4.16 RedHat microshift-0:4.16.24-202411220522.p0.gcc4fedc.assembly.4.16.24.el9 *
Red Hat OpenShift Container Platform 4.17 RedHat microshift-0:4.17.7-202411280904.p0.g129334d.assembly.4.17.7.el9 *
Runc Ubuntu bionic *
Runc Ubuntu esm-apps/bionic *
Runc Ubuntu focal *
Runc Ubuntu jammy *
Runc Ubuntu lunar *
Runc Ubuntu mantic *
Runc Ubuntu trusty *
Runc Ubuntu upstream *
Runc Ubuntu xenial *

Extended Description

Resources such as files and directories may be inadvertently exposed through mechanisms such as insecure permissions, or when a program accidentally operates on the wrong object. For example, a program may intend that private files can only be provided to a specific user. This effectively defines a control sphere that is intended to prevent attackers from accessing these private files. If the file permissions are insecure, then parties other than the user will be able to access those files. A separate control sphere might effectively require that the user can only access the private files, but not any other files on the system. If the program does not ensure that the user is only requesting private files, then the user might be able to access other files on the system. In either case, the end result is that a resource has been exposed to the wrong party.

References