Skip to content
Memory corruption Write-up Advanced

Linux KVM Flaw CVE-2026-99312 Lets Guest VMs Access Host Memory on AMD Hosts

A use-after-free in KVM's nested virtualisation support on AMD hosts left a stale nested page table pointer after an INIT reset, letting a guest with root inside its own VM read host memory and, in a separate test, write chosen bytes into a live host kernel page. The flaw could expose other customers' VM memory on shared cloud hosts.

[email protected] (The Hacker News) Follow

Published on thehackernews.com

{{media:0}}

The Hacker News, on thehackernews.com

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 a use-after-free: on INIT of a nested VM, KVM skipped restoring the outer VM's nested page table pointer, leaving it pointing at freed memory that the guest could then repopulate with forged entries.

Impact

A guest could read large amounts of host memory, potentially including other customers' VMs on a shared host, and in a controlled test could write into host kernel memory; Intel hosts and hosts without nested virtualisation were not affected.

What the attacker needed

Root inside a guest VM; AMD host with nested virtualisation on; host kernel not yet patched

The fix

The flaw was fixed upstream by making KVM reset that memory-management state on every INIT, and operators should update the host kernel and reboot, or disable nested virtualisation until they can.

How it was found

  1. Obtain root access inside a VM running on a vulnerable AMD KVM host with nested virtualisation enabled.
  2. Run a nested VM inside that guest and send it an INIT reset signal.
  3. Let the kernel reuse the freed page and fill it with forged page-table entries naming host physical pages.
  4. Read the host's kernel banner and about 127 GB of host RAM mapped read-only.
  5. On a separate bare-metal test host, write 32 chosen bytes into a live host kernel page and confirm with a witness module.

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.

KVM is the part of Linux that runs virtual machines, and it uses a translation table to keep each VM's memory separate from the host's real memory. A bug meant that after a certain reset signal, the pointer to that table was not restored, so a VM could make the processor use a table it controlled and reach memory it should never see. An attacker needs to already control a VM on the affected host, not just reach it over the network.

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.

More by [email protected] (The Hacker News)

View all

5 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.