From Rent to Root: Introducing NvRoot (CVE-2026-47591)
An NVIDIA driver call trusts the CPU-side permission field alone when pinning memory for the GPU, so a request marked CPU read-only but GPU writable is honoured and the GPU receives a writable mapping of a read-only file's shared cache. An unprivileged local user can overwrite the in-memory copy of a setuid binary such as su and execute it to gain root, including from inside an unprivileged container with GPU access.
stealthium.io
Published on stealthium.io
Rent a slice of a GPU. And if it’s on a vulnerable release, with this bug, you can get root on the host.
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
The driver derives page permissions from the CPU-side field alone and never enforces the GPU-side field, so a CPU read-only, GPU writable request is honoured and the GPU gets a writable mapping of a read-only file's shared cache.
Impact
An unprivileged local user, including one inside an unprivileged container with GPU access, can gain root on the host and overwrite memory shared with other tenants; the text notes the file on disk is unchanged so integrity checks see nothing, and the fix rejects the write at pin time.
What the attacker needed
A CUDA-capable NVIDIA GPU; an unprivileged local account; access to /dev/nvidiactl; a vulnerable driver release
The fix
The driver was fixed so that GPU access is read-only whenever CPU access is read-only, in driver versions 610.57.04, 595.91.07 (and 595.44.14 on the 595.44.x line) and 580.178.04; the text says there is no practical workaround short of updating.
How it was found
- Make a pin request that marks the memory read-only for the CPU but writable for the GPU, aimed at a world-readable setuid binary such as su.
- The driver pins the pages without write intent but gives the GPU a writable mapping of the file's shared cache.
- Use a normal GPU kernel launch to overwrite the in-memory copy of the setuid binary with a payload.
- Execute the binary; the kernel honours the real setuid bit from disk and runs the rewritten in-memory copy, giving a root shell.
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.
A driver is the software that lets programs talk to hardware, here a graphics card (GPU). Programs can ask the driver to let the GPU read and write a piece of memory, and the request carries separate permissions for the normal processor (CPU) and for the GPU. The bug is that the driver only looks at the CPU permission and ignores the GPU one, so a program can get write access to memory it should only be able to read, including the running copy of a privileged program, and use that to become the administrator (root).
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.