Huny's Dev Blog
huny.dev

Inside NVIDIA Linux Driver Flaws NvRoot (CVE-2026-47591) and ForgePtr (CVE-2026-47501): Shared Page-Cache Poisoning, Container Escapes, and Secure Boot Teardown

An architectural deep dive into the NVIDIA Linux GPU driver vulnerabilities NvRoot (CVE-2026-47591) and ForgePtr (CVE-2026-47501) affecting multi-tenant AI clouds and GPU containers. Covers contradictory CPU=RO/GPU=RW memory pins that poison /usr/bin/su in the shared page cache, unchecked event-buffer handles enabling core_pattern container escapes, why hardware IOMMU and Secure Boot (sig_enforce, kernel_locked_down) fail to stop them, and the 610.57.04 vs. 615.71.09 patch gap.

Hun Jang
Hun Jang Nov 30, 2026

NVIDIA Linux GPU Driver NvRoot (CVE-2026-47591) and ForgePtr (CVE-2026-47501) Architecture: Shared Page-Cache Poisoning, core_pattern Container Escape, and Secure Boot Runtime Teardown Diagram (Conceptual Diagram)

Disclosed in detail by Stealthium researchers in November 2026, the NVIDIA Linux GPU driver vulnerabilities NvRoot (CVE-2026-47591, CVSS 4.0 9.3) and ForgePtr (CVE-2026-47501) allow an unprivileged user or container with access to /dev/nvidiactl and /dev/nvidia* to achieve deterministic host root takeover, escape container isolation, and disable Secure Boot's runtime enforcement (sig_enforce and kernel_locked_down). For AI infrastructure and Kubernetes GPU cluster operators, two architectural boundaries are critical: patching NvRoot (610.57.04) is separate from patching ForgePtr (615.71.09+), and hardware IOMMU isolation or container seccomp/sysctl profiles do not stop either exploit path.

This post cross-verifies Stealthium's technical analysis of NvRoot (CVE-2026-47591), Stealthium's technical analysis of ForgePtr (CVE-2026-47501), Phoronix coverage, and LinuxSecurity's multi-tenant GPU server remediation guide to examine how both bugs work inside the kernel driver and how infrastructure teams can audit running driver versions and detect runtime kernel tampering. All technical details below reflect these public advisories and open kernel module analyses (verified on 2026-11-30) rather than live exploit runs against production multi-tenant clouds.

1. Why NvRoot and ForgePtr Redefine Multi-Tenant GPU Cloud Risk ("Rent a Slice, Get the Host")

Present in every NVIDIA open GPU kernel module release from the initial 515.43.04 build (May 9, 2022) through late 2026—and residing in shared Resource Manager (RM) code that affects both open and proprietary driver builds—both vulnerabilities are reachable by any unprivileged local account (uid 1001, no CAP_SYS_ADMIN, no special group membership) that can open the GPU device nodes (Stealthium NvRoot, Stealthium ForgePtr).

Crucially, NVIDIA fixed the two flaws in separate releases. As LinuxSecurity warns, a server upgraded to 610.57.04 is protected against NvRoot but remains completely exposed to host takeover via ForgePtr.

Dimension
NvRoot (CVE-2026-47591)
ForgePtr (CVE-2026-47501)
Classification & Severity
CWE-863 (Incorrect Authorization) · NVIDIA CVSS 3.1 7.8 High / Stealthium multi-tenant scope-change CVSS 4.0 9.3 Critical
Unchecked handle-to-pointer conversion yielding arbitrary kernel decrement · CVSS 3.1 7.8 High (Full host root & lockdown teardown)
Underlying Driver Defect
Memory-pinning logic derives kernel page-pin permissions solely from the CPU permission field (RO) while honoring a contradictory GPU writable (RW) flag
Event-buffer setup path converts a caller notification handle to a kernel pointer without checking if resolution failed, retaining the raw caller value as a kernel pointer
Host Root & Container Escape Mechanism
Pins world-readable setuid binary (/usr/bin/su) as CPU=RO, GPU=RW; overwrites the host-shared in-memory page cache via CUDA write and executes it (on-disk file untouched)
On object free, repeatedly decrements bytes in global kernel memory to rewrite core_pattern to |/proc/%P/root/<payload>, then crashes a child process
Why Hardware & OS Hardening Fail
Uses standard CUDA memory pinning and kernel launches; no kernel heap corruption, no symbol resolution, and zero on-disk changes for FIM tools to see
Host CPU kernel performs the write, not GPU DMA (bypassing IOMMU); zeroes kernel_locked_down and flips sig_enforce to 'N' to defeat Secure Boot
Affected Driver Versions
515.43.04 (2022-05-09) through builds prior to Aug 2026 fixes (confirmed root on 610.43.02; all R590, R575, R570, R565 & older branches unpatched)
515.43.04 (2022-05-09) through 610.57.04 (2026-08-03) inclusive (confirmed root on both 610.43.02 and 610.57.04)
Fixed Driver Releases
610.57.04, 595.91.07 (595.44.14), 580.178.04 and later (shipped Aug 3, 2026)
615.71.09 and later (shipped Sep 9, 2026 — minimum baseline fixing both flaws)

2. Inside NvRoot (CVE-2026-47591): Contradictory CPU/GPU Memory Pins and Shared Page-Cache Poisoning

To enable high-throughput zero-copy transfers, the NVIDIA driver lets user-space processes pin virtual memory ranges so the GPU can read and write them directly. As detailed in Stealthium's NvRoot write-up, the pin request carries two distinct permission fields:

  1. CPU Permission Field: What the host CPU side is allowed to do with the memory.
  1. GPU Permission Field: What the GPU side is allowed to do with the mapped pages.

2.1 How a Read-Only setuid File Becomes GPU-Writable

In vulnerable drivers, the kernel page-pinning call derives its access intent exclusively from the CPU permission field without cross-checking the GPU permission field:

  • An unprivileged process maps a world-readable, root-owned setuid binary such as /usr/bin/su and submits a pin request specifying "CPU read-only, GPU writable."
  • Because the CPU request has no write intent, the Linux kernel happily hands back the read-only file's shared page cache rather than forcing a private Copy-on-Write (CoW) page.
  • At the same time, the NVIDIA driver honors the GPU permission field literally, programming the GPU mapping as writable directly into that shared file cache.

2.2 "One ioctl > One GPU Write > Root" Across Container Boundaries

With a writable GPU handle pointing directly into /usr/bin/su's in-memory page cache, the attacker launches a normal CUDA kernel to overwrite the cached binary bytes with a root payload and executes /usr/bin/su. The Linux kernel verifies the untouched setuid bit on disk, elevates privileges to uid=0, and executes the poisoned pages from memory.

  • Invisible to File-Integrity Monitoring (FIM): Because the file on disk is never modified, disk-based integrity scanners see zero changes.
  • Cross-Tenant Host Compromise: Because the page cache is shared with the host kernel, poisoning a shared binary from inside an unprivileged GPU container compromises the host and neighboring tenants on the same node.
  • How the Patch Fixes It: Driver versions 610.57.04, 595.91.07 (595.44.14), and 580.178.04 couple the two permission fields so the GPU mapping is forced read-only whenever the CPU field is read-only, rejecting contradictory write requests at pin time.

3. Inside ForgePtr (CVE-2026-47501): Why IOMMU Fails and How Secure Boot Is Neutered at Runtime

While NvRoot poisons the file page cache, ForgePtr (CVE-2026-47501) gives an unprivileged caller an arbitrary kernel memory write primitive.

3.1 Missing Handle-Conversion Error Check to Arbitrary Kernel Byte Write

The root cause is a missing error check in the driver's event-buffer setup path:

  1. When setting up an event buffer, a caller-supplied notification handle is converted into a kernel pointer, and nothing checks whether that lookup succeeded or failed.
  1. If the caller supplies a bogus handle that fails to resolve, the driver keeps the raw, attacker-supplied value as if it were a valid kernel pointer and returns success.
  1. When that event-buffer object is subsequently freed, the kernel decrements a reference/event counter at the attacker-supplied address.
  1. Because repeatedly decrementing a byte wraps it through all 256 possible values (0x00..0xFF), an attacker who pairs ForgePtr with an unprivileged KASLR leak primitive can land any target kernel byte on any desired value.

3.2 Why Hardware IOMMU Does Not Block ForgePtr and How |/proc/%P/root/ Escapes Containers

A common defense argument in GPU infrastructure is that enabling the IOMMU prevents a compromised GPU workload from touching arbitrary host kernel memory. As Stealthium explains, IOMMU polices DMA performed by the PCIe device—in ForgePtr, the GPU never touches the target memory. The host CPU kernel itself executes the decrement on the forged pointer during object cleanup.

To escape an unprivileged container in one shot, the attacker uses ForgePtr to overwrite core_pattern (three bytes at a time)—which is global, non-namespaced kernel state—with:

When a child process inside the container is intentionally crashed, the kernel substitutes %P with the crashing process's PID in the host's root PID namespace and follows /proc/<pid>/root/ directly into the container's filesystem—running the container's binary as real host root inside the host's namespaces without needing any shared bind mounts.

3.3 Teardown of Secure Boot and Nine Linux Kernel Hardening Globals

Because Linux runtime security controls live as variables in kernel memory, ForgePtr can overwrite them directly to disarm a hardened host (Stealthium ForgePtr):

Kernel Memory Global
ForgePtr Overwrite Value
Hardening Control Disabled & Attacker Outcome
kernel_locked_down
0 (none)
Drops Kernel Lockdown to none, unsealing runtime kernel modification interfaces
sig_enforce
'Y' → 'N'
Disables module signature verification — allows loading unsigned kernel modules on a machine with Secure Boot enabled
randomize_va_space
0
Disables host-wide ASLR for predictable memory layouts
kptr_restrict / dmesg_restrict
0
Unmasks live kernel pointers and opens unprivileged access to the kernel ring buffer (dmesg)
unprivileged_bpf_disabled
0
Re-enables unprivileged bpf() syscalls across the host
ptrace_scope / mmap_min_addr
0
Allows cross-process ptrace attachment and low-address (NULL-dereference) memory mappings
protected_symlinks / protected_hardlinks
0
Re-opens classic /tmp symlink and hardlink race conditions

4. Practical Audit & Runtime Integrity Scripts

Because both bugs live inside the driver's core RM request handling, no sysctl, seccomp filter, or cgroup rule can block them while /dev/nvidiactl is accessible (Stealthium NvRoot). Remediation requires upgrading to a driver containing both fixes (615.71.09+) and verifying the currently loaded kernel module after rebooting (LinuxSecurity).

4.1 Auditing Running Kernel Modules, GPU Containers, and Kernel Lockdown State (Bash)

4.2 Dual-CVE Driver Version Classifier & ForgePtr Kernel-Tampering Watchdog (Python)

Use this Python verifier across your fleet to flag nodes caught in the 610.57.04 partial-patch gap (where NvRoot is fixed but ForgePtr is still exploitable) and alert on core_pattern or sig_enforce tampering:

5. Security Operations Checklist for GPU Clusters

  • Enforce the 615.71.09+ Driver Baseline: Have you verified that shared GPU hosts run 615.71.09 or later (rather than stopping at 610.57.04, which fixes NvRoot but leaves ForgePtr wide open)?
  • Retire Unpatched Legacy Driver Branches (R590, R575, R570, R565): Have you migrated nodes off the unpatched R590, R575, R570, and R565 (and older) driver branches?
  • Verify the Loaded Kernel Module Post-Reboot: Did you confirm the active version in /proc/driver/nvidia/version and nvidia-smi after rebooting the host, rather than checking only the installed APT/RPM package metadata?
  • Gate /dev/nvidia* Passthrough on Unpatched Hosts: On any multi-tenant host that cannot be immediately patched and rebooted, have you suspended /dev/nvidiactl and /dev/nvidia* device passthrough to untrusted containers?
  • Monitor Runtime Kernel Globals and Contradictory Memory Pins: Are your host security monitors watching for runtime changes to core_pattern, sig_enforce, and kernel_locked_down as well as contradictory CPU=RO, GPU=RW pin requests?

References & Official Sources (Verified 2026-11-30)

Korean version: NVIDIA Linux 드라이버 NvRoot(CVE-2026-47591) · ForgePtr(CVE-2026-47501) 아키텍처 해부: 비특권 GPU 컨테이너의 공유 페이지 캐시 오염과 IOMMU·Secure Boot 무력화 경계 점검하기NVIDIA Linux 드라이버 NvRoot(CVE-2026-47591) · ForgePtr(CVE-2026-47501) 아키텍처 해부: 비특권 GPU 컨테이너의 공유 페이지 캐시 오염과 IOMMU·Secure Boot 무력화 경계 점검하기

추천 글