r/redteamsec • u/ChrisAtStealthium • 5h ago
Turning a vulnerability into an exploit chain: unprivileged GPU pod to host root via CVE-2026-47597
stealthium.ioThis one was found by D. Cohen Hillel (@0xDACA) and N. Trobishi, where they demoed it at DEF CON 34 without releasing the exploit details. We found it interesting so with just the vulnerability details built a different chain on the stock 595.84 driver. Key difference is ours is deterministic. Our post goes into the details of the exploit chain.
The bug: refRemoveMapping() skips a check that the create path makes. When a mapping's context is the resource itself, cleanup removes a list node that was never inserted, which corrupts the back-reference list, and teardown frees a ref that mappings still point to.
The chain:
- Reclaim the freed ref
- Pivot the list
- Leak addresses through three unlinks
- Place a target node
- Do an aimed write that opens a window onto physical memory
- Patch creds
Starting point: uid 1001 in an ordinary GPU pod, using /dev/nvidia0 and /dev/nvidiactl. No privileged flag, hostPID or hostNetwork. + needs System V IPC with MSG_COPY and about 28 GiB of address space. On the validated kernels (7.0.0-1017-gcp, 6.11.0-1017-gcp) the first placement candidate is correct every time.
RE disclosure, I work at Stealthium! Authors are on our security team. Free to answer any Qs