Rapid7 Vulnerability & Exploit Database

Oracle Linux: CVE-2024-21626: ELSA-2024-0670: runc security update (IMPORTANT) (Multiple Advisories)

Free InsightVM Trial No Credit Card Necessary
2024 Attack Intel Report Latest research by Rapid7 Labs
Back to Search

Oracle Linux: CVE-2024-21626: ELSA-2024-0670: runc security update (IMPORTANT) (Multiple Advisories)

Severity
7
CVSS
(AV:L/AC:L/Au:N/C:C/I:C/A:C)
Published
01/31/2024
Created
02/07/2024
Added
02/05/2024
Modified
07/22/2024

Description

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. A file descriptor leak issue was found in the runc package. 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.

Solution(s)

  • oracle-linux-upgrade-aardvark-dns
  • oracle-linux-upgrade-buildah
  • oracle-linux-upgrade-buildah-tests
  • oracle-linux-upgrade-cockpit-podman
  • oracle-linux-upgrade-conmon
  • oracle-linux-upgrade-containernetworking-plugins
  • oracle-linux-upgrade-containers-common
  • oracle-linux-upgrade-container-selinux
  • oracle-linux-upgrade-crit
  • oracle-linux-upgrade-criu
  • oracle-linux-upgrade-criu-devel
  • oracle-linux-upgrade-criu-libs
  • oracle-linux-upgrade-crun
  • oracle-linux-upgrade-fuse-overlayfs
  • oracle-linux-upgrade-java-11-openjdk-devel
  • oracle-linux-upgrade-libslirp
  • oracle-linux-upgrade-libslirp-devel
  • oracle-linux-upgrade-netavark
  • oracle-linux-upgrade-oci-seccomp-bpf-hook
  • oracle-linux-upgrade-podman
  • oracle-linux-upgrade-podman-catatonit
  • oracle-linux-upgrade-podman-docker
  • oracle-linux-upgrade-podman-gvproxy
  • oracle-linux-upgrade-podman-plugins
  • oracle-linux-upgrade-podman-remote
  • oracle-linux-upgrade-podman-tests
  • oracle-linux-upgrade-python3-criu
  • oracle-linux-upgrade-python3-podman
  • oracle-linux-upgrade-runc
  • oracle-linux-upgrade-skopeo
  • oracle-linux-upgrade-skopeo-tests
  • oracle-linux-upgrade-slirp4netns
  • oracle-linux-upgrade-udica

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;