By Hamza Faisal

A security researcher has shown that a guest virtual machine on a cloud server could read about 127 GB of its host's memory — including other customers' virtual machines — through a flaw in Linux's KVM hypervisor that went unnoticed for almost four years.

The flaw, tracked as CVE-2026-99312, affects hosts running AMD processors with nested virtualization switched on. It was found by Oren Yomtov of security firm Terra Security, who reported it to the Linux KVM maintainers on October 21. A fix was merged on November 2 and reached stable kernels on November 17, and the CVE was published on November 18.

On a DigitalOcean Droplet, Yomtov showed the read from inside his virtual machine: the first thing to come back was the host's kernel version banner, followed by 127 GB of the host's RAM, mapped read-only. On his own bare-metal AMD server he also demonstrated a write of 32 chosen bytes written into a live host-kernel page. DigitalOcean confirmed the exploit on its hosts, treated it as critical, and live-patched its fleet.

A stale pointer left over from a 2022 fix

Nested virtualization lets a virtual machine run virtual machines of its own. To keep each guest in its lane, KVM gives every virtual machine a page table translating the guest's memory addresses into the host's real ones, and the processor finds that table through a pointer kept for each virtual CPU.

The bug appears when a reset signal called INIT pulls a virtual CPU out of a nested virtual machine. At that moment KVM is supposed to refresh the pointer to the guest's page table — but it skipped that step, leaving the pointer aimed at a page of memory the kernel had already freed. Once the kernel reused that freed page, the guest could fill it with entries of its choosing, and the processor followed them as if they were the real table. Those forged entries could name any physical page on the host — which is how 127 GB of server RAM came within reach of a guest that was never given it.

The flaw was created by a security fix. A 2022 patch for a different nested-virtualization bug, CVE-2022-3344, switched a reset path back to the outer virtual machine's control block but missed the page-table pointer, and the error sat in the kernel for nearly four years. The new fix makes KVM reset that memory-management state on every INIT.

Who is affected, and what to do

Only AMD hosts with nested virtualization enabled are affected; Intel-based KVM hosts are not, because the vulnerable code exists only in KVM's AMD nested-virtualization support. Nested virtualization is uncommon in the enterprise, but cloud providers use it to power OS emulators, and DigitalOcean is one provider that had it on.

The Linux kernel's CVE team scores the flaw 8.8 out of 10, with high impact on confidentiality, integrity and availability. Red Hat's preliminary assessment is lower, at 5.6, treating the impact as denial of service only. There is no known exploitation in the wild and no public exploit code.

Operators running their own AMD KVM hosts have two options: update to a kernel carrying the fix — stable 7.3.5, or long-term 6.18.64 or 6.12.118 — or switch nested virtualization off by setting the kvm_amd module's nested parameter to 0. Debian, Ubuntu and Red Hat had not yet shipped fixed kernels as of November 20, so the off-switch is the fix for now. Most cloud customers need do nothing: DigitalOcean has patched its fleet, and many providers never had nested virtualization on for AMD.