A Four-Year-Old KVM Bug Let a Guest VM Read 127 Gigabytes of Host RAM
A use-after-free introduced by a 2022 security fix let a guest virtual machine on AMD hosts with nested virtualization read roughly 127 GB of host memory and write to live kernel space, with distro patches still rolling out this week.
Oren Yomtov of Terra Security spun up a droplet on DigitalOcean, pointed the guest at the nested page-table pointer that the host’s hypervisor had left dangling after an INIT reset, and walked through roughly 127 gigabytes of the underlying host’s RAM from inside the virtual machine. The guest-to-host escape, assigned CVE-2026-99312, worked because the NPT pointer the outer VM was using still referenced a page that had already been freed and reallocated, letting the guest forge page-table entries that reached arbitrary physical host pages. On his own bare-metal AMD server, the same technique let the guest write 32 bytes into live host kernel memory, not just read it, which is the difference between a data-exfiltration bug and a privilege-boundary collapse.
The mechanism sits in how Kernel-based Virtual Machine (KVM) handles the transition when an INIT signal stops a nested guest. The hypervisor tears down the inner VM’s page-table walks but skips re-anchoring the outer VM’s NPT pointer to a valid, pinned page. That pointer keeps pointing at whatever physical frame the freed page now holds, and because the kernel’s page allocator hands out pages aggressively, the next allocation can be anything: another process’s heap, a kernel structure, a file-backed page. The guest, reading through its own crafted page-table entries, sees whatever the host put there. No side-channel, no speculative-execution trick, no timing oracle. Just a pointer that should have been invalidated but wasn’t, still live, still readable from the wrong side of the boundary.
The bug was not introduced by a careless developer shipping a half-finished feature. It was introduced in 2022 as part of the fix for CVE-2022-3344, a prior KVM vulnerability, and sat in the mainline kernel for just under four years. The 2022 patch addressed one code path in the NPT/VMCB nCR3 handling but left the INIT-reset path untouched, and the interaction between those two unguarded states created the use-after-free that went unexploited until Terra Security’s researchers found it. Four years in a security-critical subsystem, in a code path that every AMD host with nested virtualization enabled — which is the default on most distributions — walks every time a nested guest restarts or is reset.
The attack surface is real but bounded. Intel hosts are not affected; the vulnerability is specific to the AMD NPT implementation of nested page tables. And only hosts running KVM with nested virtualization enabled are exposed, which in practice means a host that is itself running virtual machines, not a bare host running workloads directly. DigitalOcean’s droplets, on the other hand, sit on shared AMD hardware where the cloud provider runs KVM with nesting on by default, which is exactly why a single droplet customer could read the host. No evidence of exploitation outside the research group has surfaced.
Upstream fixes merged on November 2, landing in stable kernel releases 7.3.5, 6.18.64, and 6.12.118. As of The Hacker News’s publication, however, the major distribution kernels — Debian, Ubuntu, and Red Hat — were still largely unpatched, meaning production fleets on those distros remain exposed to anyone with a guest VM on shared AMD hardware. The fix itself is a small pointer-revalidation in the INIT-handling path, but the window between fix-merge and distro-ship is where the real risk lives, and that window can be weeks depending on the release cadence.
The severity assessment is where the story gets genuinely unsettled. The Linux kernel CVE team scored the vulnerability 8.8, citing high impact on confidentiality, integrity, and availability — a rating that tracks with the demonstrated ability to both read and write arbitrary host memory. Red Hat’s preliminary security assessment, by contrast, rated it Moderate at 5.6, treating the impact as denial-of-service only. That gap — a 3.2-point swing in CVSS, separating