CVE-2024–0132 — Critical NVIDIA AI Vulnerability Affecting Containers Using NVIDIA GPUs
A vulnerability in the NVIDIA Container Toolkit and GPU Operator allows a malicious container image to mount the host file system with read access. The attacker can then use writable Unix sockets to execute commands as root and take over the host.
Published on socfortress.medium.com
The functionality discussed in this post, and so much more, are available via the SOCFortress platform. Let SOCFortress help you and your team keep your infrastructure secure.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a flaw in how the NVIDIA Container Toolkit mounts host paths into containers, allowing a malicious image to mount the entire host file system.
Impact
An attacker could read the host file system and then execute commands as root, leading to complete host takeover and potential access to other customers' data.
What the attacker needed
Vulnerable NVIDIA Container Toolkit or GPU Operator; ability to run a container image on the host
The fix
Upgrade to Container Toolkit v1.16.2 and GPU Operator v24.6.2.
How it was found
- Craft a malicious container image that exploits the vulnerability.
- Run the malicious image on the target platform, either directly or via supply chain or social engineering.
- The exploit mounts the host file system, giving read access.
- Use the writable Unix sockets to execute arbitrary commands as root on the host.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Containers are meant to be isolated from the machine they run on. This bug let a specially crafted container break that isolation and read the host's files, then use a quirk in how Linux handles sockets to run commands as the administrator. It affects systems that use NVIDIA's toolkit to give containers access to graphics cards.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.