GPU VulnDB

Database/Container, Kubernetes & orchestration

podman build and buildah: race with --jobs during a malicious Containerfile build breaks out to the host

CVE-2024-11218Container, Kubernetes & orchestrationcurated

Impact

A Containerfile crafted by whoever supplies the build context can win a race during a parallel build (--jobs=2) and escape the build container. Red Hat describes it as a container breakout; with SELinux enforcing the impact is reduced but still allows enumeration of files and directories on the host. On a GPU fleet the build hosts are usually the machines that assemble CUDA and inference images, and they commonly hold registry push credentials and cluster kubeconfigs - so anything that reads or writes host paths from inside a build is a credential-exposure problem, not just a sandbox bug. Any pipeline that builds images from untrusted or user-contributed Dockerfiles is the realistic path in.

Who can reach it

Anyone who can get a Containerfile built by podman build or buildah on the host - CI jobs, tenant-submitted image builds, or a user with shell access on a build node. No prior privilege on the host is needed beyond having the build run; the CVSS vector records local access with user interaction.

What to do

Update podman and buildah from your distribution; Red Hat shipped the fix in the RHSA errata listed in the record for RHEL 8 and 9 and their extended-support streams. This is a package update on build hosts - no node drain or reboot, and running containers are unaffected; re-run builds with the updated binaries. Until patched, keep SELinux enforcing (it limits the breakout to host filesystem enumeration) and avoid --jobs on builds from untrusted input.

References

Related entries

All Container, Kubernetes & orchestration entries

This entry is curated: imported from vendor advisories with machine assistance, not yet individually verified. Confirm against your vendor's advisory before acting, and report anything wrong.