Race condition in BuildKit - CVE-2024-23651

 

Race condition in BuildKit - CVE-2024-23651

Published: February 2, 2024


Vulnerability identifier: #VU86035
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-23651
CWE-ID: CWE-362
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to gain access to sensitive information.

The vulnerability exists due to a race condition. A remote attacker can exploit the race and cause the files from the host system being accessible to the build container.


Affected software

BuildKit
Gentoo Linux
Amazon Linux AMI
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise Real Time 15
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Manager Server
SUSE Linux Enterprise Micro
SUSE Linux Enterprise Micro for Rancher
openSUSE Leap Micro
SUSE Enterprise Storage
Containers Module
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Server 15 SP2 LTSS
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS
SUSE Linux Enterprise Server 15 SP3 LTSS
SUSE Linux Enterprise Server 15 SP4 LTSS
openSUSE Leap
Ubuntu
Anolis OS
watsonx.data
Podman
docker.io (Ubuntu package)
golang-github-docker-docker-dev (Ubuntu package)
buildkit-doc
buildkit
app-containers/buildah
buildah
app-containers/podman
docker
docker-debuginfo
docker-bash-completion
docker-fish-completion
docker-zsh-completion
docker-rootless-extras
app-containers/docker
IBM Concert Software
APEX Cloud Platform for Red Hat OpenShift
Dell Secure Connect Gateway
PowerStore X
PowerStore T
IBM Cloud Pak for Watson AIOps

How to mitigate CVE-2024-23651

Install updates from vendor's website.

BuildKit - update to 0.12.5
watsonx.data - update to 2.0.2
Podman - update to 4.9.2
docker.io (Ubuntu package) - update to Ubuntu Pro
golang-github-docker-docker-dev (Ubuntu package) - update to Ubuntu Pro
buildkit-doc - update to 0.13.2-1
buildkit - update to 0.13.2-1
IBM Concert Software - update to 1.0.1
app-containers/buildah - update to 1.35.3
buildah - update to 1.35.4-150300.8.25.1
APEX Cloud Platform for Red Hat OpenShift - update to 03.01.02.00
PowerStore X - update to 3.2.1.4-2386214
PowerStore T - update to 4.0.0.2-2365061
IBM Cloud Pak for Watson AIOps - update to 4.4.1
app-containers/podman - update to 4.9.4
Dell Secure Connect Gateway - update to 5.24.00.14
docker - addressed in versions 24.0.7_ce-98.106.1, 24.0.7_ce-150000.193.1, 25.0.5_ce-98.112.1, 25.0.6_ce-150000.203.1, 25.0.6_ce-150000.207.1
docker-debuginfo - addressed in versions 24.0.7_ce-98.106.1, 24.0.7_ce-150000.193.1, 25.0.5_ce-98.112.1, 25.0.6_ce-150000.203.1, 25.0.6_ce-150000.207.1
docker-bash-completion - addressed in versions 24.0.7_ce-150000.193.1, 25.0.6_ce-150000.203.1, 25.0.6_ce-150000.207.1
docker-fish-completion - addressed in versions 24.0.7_ce-150000.193.1, 25.0.6_ce-150000.203.1, 25.0.6_ce-150000.207.1
docker-zsh-completion - addressed in versions 24.0.7_ce-150000.193.1, 25.0.6_ce-150000.203.1, 25.0.6_ce-150000.207.1
docker-rootless-extras - addressed in versions 24.0.7_ce-150000.193.1, 25.0.6_ce-150000.203.1, 25.0.6_ce-150000.207.1
docker - update to 25.0.3-1
app-containers/docker - update to 25.0.4

External References

Related Security Bulletins