A kernel stack use-after-free: Exploiting Nvidia's GPU Linux drivers
Two bugs were found in NVIDIA's open GPU kernel modules: a null-pointer dereference reachable from an unprivileged process, and a use-after-free where a stack-allocated tree node survives a kernel oops. The author built a proof of concept that turns the use-after-free into kernel read and write primitives.
blog.quarkslab.com
Published on blog.quarkslab.com
Posted Tue 14 October 2025 Author Robin Bastide Category Exploitation Tags exploitation, vulnerability, NVIDIA, GPU, CVE-2025-23280, CVE-2025-23330, 2025
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 the driver stores a pointer to a stack-allocated thread-state node in a global tree, and when a kernel oops frees that stack before the node is removed, the tree keeps a dangling pointer.
Impact
An unprivileged local attacker could crash the kernel and, with the demonstrated proof of concept, obtain kernel read and write primitives, though the driver enters a reduced state after the oops and exploitation is timing sensitive.
What the attacker needed
Local unprivileged process; NVIDIA open kernel modules loaded; a v4l2 device using the vmalloc backend; timing-sensitive heap shaping
How it was found
- Allocate deviceless memory in the NVIDIA driver until unpurged areas and pools are empty.
- Fork processes to fill holes in the vmalloc area, keeping some alive as guards.
- Fork a process and trigger the null-pointer dereference with it.
- Wait for the triggering process to be killed by the oops.
- Allocate and free large v4l2 buffers to force purges and empty the pools.
- Allocate two medium-sized v4l2 buffers so the second overlaps the freed stack.
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.
The graphics driver runs inside the operating system kernel, the most privileged part of the machine, and ordinary programs can talk to it through special device files. A bug there can let a normal user crash the kernel or, worse, take control of memory the kernel uses. This write-up shows how a crash leaves a stale pointer behind, and how the researcher turned that stale pointer into the ability to read and write kernel memory.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.