Skip to content
VulniPulse
Advisory severityHigh8.6Red Hat Linux

High [CVE-2024-21626] runc container breakout through process.cwd trickery and leaked fds

This high-severity Red Hat Linux advisory covers CVE-2024-21626 affecting OCP-Tools-4.15-RHEL-8, Red Hat Enterprise Linux 7 Extras, Red Hat Enterprise Linux 8.2 Advanced Update Support.

Aggregated and source-linked by VulniPulse. Data sources, validation and limitations.

CVE-2024-21626 Source published Source updated

VulniPulse record published

Affected products & platforms
Red Hat LinuxRed Hat Enterprise Linux
Open source advisory

Android app · Google Play

Monitor future Red Hat Linux CVEs from your phone.

Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 32 official vendor sources and 160+ reviewed platform categories.

Matching phone alertsOptional email delivery

Summary

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.

While a user performs `O_CLOEXEC` all file descriptors before executing the container code, the file descriptor is open when performing `setcwd(2)`, which means that the reference can be kept alive in the container by configuring the working directory to be a path resolved through the file descriptor.

The non-dumpable bit is unset after `execve`, meaning there are multiple ways to attack this other than bad configurations. The only way to defend against it entirely is to close all unneeded file descriptors.

Affected versions
  • 1.1.11

Official advisory · high-confidence parse· fetched 19 days ago·verify at source

Fixed versions
  • jenkins-0:2.440.3.1718879390-3.el8
  • jenkins-2-plugins-0:4.15.1718879538-1.el8
  • runc-0:1.0.0-70.rc10.el7_9
  • docker-2:1.13.1-210.git7d71120.el7_9
  • container-tools:4.0-8090020240201111813.d7b6f4b7
  • container-tools:rhel8-8090020240201111839.d7b6f4b7
  • container-tools:2.0-8020020240206120705.28c38760
  • container-tools:3.0-8040020240207051234.c0c392d5
  • container-tools:4.0-8060020240205133014.3b538bd8
  • container-tools:rhel8-8060020240206151655.3b538bd8
  • container-tools:rhel8-8080020240206143933.0f77c1b7
  • runc-4:1.1.12-1.el9_3
  • runc-4:1.1.12-1.el9_0
  • runc-4:1.1.12-1.el9_2
  • runc-3:1.1.2-3.1.rhaos4.11.el8
  • runc-3:1.1.6-5.1.rhaos4.12.el8
  • openshift4/ose-docker-builder:v4.12.0-202503030130.p0.g7c2a284.assembly.stream.el8
  • runc-4:1.1.12-1.rhaos4.13.el8
  • openshift4/ose-docker-builder:v4.13.0-202503111300.p0.gb379980.assembly.stream.el8
  • runc-4:1.1.12-1.rhaos4.14.el8
  • openshift4/ose-docker-builder:v4.14.0-202503060906.p0.gb03f3f5.assembly.stream.el8
  • microshift-0:4.14.42-202411280904.p0.gcf4d04f.assembly.4.14.42.el9
  • openshift4/ose-docker-builder:v4.15.0-202502171304.p0.gb74eb6d.assembly.stream.el8
  • microshift-0:4.15.41-202412091343.p0.gcf9680e.assembly.4.15.41.el9
  • microshift-0:4.16.24-202411220522.p0.gcc4fedc.assembly.4.16.24.el9
  • openshift4/ose-docker-builder-rhel9:v4.16.0-202501160405.p0.g300d9ad.assembly.stream.el9
  • microshift-0:4.17.7-202411280904.p0.g129334d.assembly.4.17.7.el9
  • openshift4/ose-docker-builder-rhel9:v4.17.0-202501052337.p0.gbb33e13.assembly.stream.el9
  • RHSA-2024:4597
  • RHSA-2024:0717
  • RHSA-2024:1270
  • RHSA-2024:0748
  • RHSA-2024:0752
  • RHSA-2024:0758
  • RHSA-2024:0760
  • RHSA-2024:0757
  • RHSA-2024:0764
  • RHSA-2024:0759
  • RHSA-2024:0670
  • RHSA-2024:0756
  • RHSA-2024:0755
  • RHSA-2024:0684
  • RHSA-2024:0666
  • RHSA-2025:2441
  • RHSA-2024:0662
  • RHSA-2025:2701
  • RHSA-2024:0645
  • RHSA-2025:2710

Official advisory · high-confidence parse· fetched 19 days ago·verify at source

Mitigation checklist

Recommended fix / mitigation
  • Red Hat Enterprise Linux (RHEL) and OpenShift ships with SELinux in targeted enforcing mode, which prevents the container processes from accessing host content and mitigates this attack. Dockerfiles can be inspected on the 'RUN' and 'WORKDIR' directives to ensure that there are no escapes or malicious paths, which are an indication of compromise. Limiting access and only using trusted container images can help prevent unauthorized access and malicious attacks.

Official advisory · high-confidence parse· fetched 19 days ago·verify at source

Discussion(0)

No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.

Sign in to join the discussion.