> ## Content Index
> Fetch the complete content index at: https://ettayeb.fr/llms.txt
> Use this file to discover other available public pages before exploring further.

# A KVM guest reads 127 GB of host memory on AMD hosts running nested virtualization
- URL: https://ettayeb.fr/en/linux/kvm-cve-2026-99312-amd-nested-virtualization-en/
- Published: 2026-11-22T00:00:00.000Z
- Updated: 2026-11-22T00:00:00.000Z
- Description: CVE-2026-99312 lets a virtual machine read the memory of its KVM host — including other customers — through a forgotten pointer in the nested page table, on AMD hosts only. Update the host kernel and reboot, or disable nested virtualization in the meantime.
- Author: Walid Ettayeb
- Tags: Linux, kvm, amd, virtualization, kernel, cve-2026-99312, #en, #cve, #Import 2026-11-23 14:52

**20 November 2026.** Cloud provider **DigitalOcean** publishes a disclosure post: researchers read roughly **127 GB** of a cloud server’s memory from inside their own virtual machine. **17 November 2026.** The fix ships upstream in stable kernel **7.3.5** and long-term kernels **6.18.64** and **6.12.118**. **2 November 2026.** The **KVM** maintainers, told on **21 October**, merge the fix. Why it matters: **CVE-2026-99312** lets a VM read the host’s memory — including that of other customers — and only **AMD** hosts with **nested virtualization** are affected.

## A VM that reads its neighbour’s memory

The flaw lives in **KVM**, the hypervisor built into the **Linux** kernel. On a shared server, host memory can hold other customers’ virtual machines: reading the host is potentially reading the neighbour. Researcher **Oren Yomtov**, of **Terra Security**, found the flaw and reported it through **DigitalOcean**’s bug bounty program, which confirmed the exploit on its own hosts and treated it as **critical**.

The test on a *Droplet* is unambiguous. The first thing the exploit returned was the **host’s kernel version banner**, followed by roughly **127 GB** of host **RAM**, mapped read-only. A separate write test ran on the researchers’ own bare-metal **AMD** server with no other customer attached: there, the guest wrote **32 chosen bytes** into a **live** page of the host kernel’s memory, and a witness module loaded into that kernel confirmed the change. The read was no artifact — the host/guest boundary was genuinely breached in both directions.

Two limits bound the exposure. First, both tests started from **root access inside a VM the researchers controlled**: an attacker needs control of a guest on a vulnerable host, not just network access to it. Second, **Intel-based KVM hosts are not affected**, because the faulty code exists only in **AMD**’s nested-virtualization support — and many cloud providers surveyed were not vulnerable because they had never enabled the feature. **No exploitation outside research has been reported**, no exploit code has been published, and no guidance exists for detecting a past attempt.

## The fault of a security fix

The mechanism is a **pointer left pointing at freed memory**. **KVM** confines each VM with a table, the **nested page table**, that translates the VM’s addresses into the host’s real memory. The processor finds that table through a pointer kept for each **vCPU**.

Some hosts let a VM run a VM of its own — a **nested VM**. When a reset signal called **INIT** stops the nested VM, **KVM** skips restoring the outer VM’s pointer, leaving it pointing at a page the kernel has **already freed**. Once the kernel reuses that page, the guest can fill it with entries of its own choosing, and the processor follows them as if they were the real table. Those forged entries can name any physical page on the host — which is how **127 GB** of **RAM** came within reach of a guest that was never given it. The fix, remarkably sober, makes **KVM** reset that memory-management state on **every INIT**.

The flaw’s history has the cruelty of a fable. It 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 VM’s control block but **missed the page-table pointer**. The error sat in the kernel for **just under four years**. The faulty code entered the **6.1** kernel in **2022** and was carried into the **5.15.81** and **6.0.11** releases, which explains the breadth of affected kernel lines. In earlier work they call **PatchSlop**, the team had already found that the fix for another bug introduced **3.2%** of kernel vulnerabilities.

## What to do

The fix lives in the **host kernel**. Updating the operating systems **inside** the VMs changes nothing, and a host keeps running its old kernel **until it is rebooted**. Severity is disputed: the kernel’s CVE team scores the flaw **8.8**, **Red Hat** rates it **Moderate at 5.6** and treats the impact as denial-of-service only, and **DigitalOcean** treated it as critical for its shared cloud. On a shared host, the gap between “denial of service” and “reading customers’ memory” is precisely the distance between an incident and a mass compromise.

Upstream, the fix shipped **Tuesday 17 November** in stable kernel **7.3.5** and long-term kernels **6.18.64** and **6.12.118**. But distribution kernels mostly **do not have it yet**. At publication, **Debian**’s tracker lists the kernels in all its releases as vulnerable, with a fix only in *unstable*; **Ubuntu** rates the flaw **High** and has released no fixed package; **Red Hat** lists **Enterprise Linux 9** and **10** kernels as affected with the fix deferred, and **Enterprise Linux 8** as not affected.

Until a fixed host kernel is installed **and the host rebooted**, the only protection is to **turn nested virtualization off**. That closes the path completely, but VMs can then no longer run VMs of their own — warn tenants who depend on that before flipping the switch. Nested virtualization is **on by default** in the `kvm_amd` module, so an unpatched host is exposed unless the setting was deliberately changed. To check and fix:

```bash
# 1. Check the state (1 or Y means nested virtualization is on)
cat /sys/module/kvm_amd/parameters/nested

# 2. If the host cannot be updated yet, disable the feature
printf 'options kvm_amd nested=0\n' | sudo tee /etc/modprobe.d/kvm_amd.conf

# 3. Reboot the host: the setting cannot change while VMs run, and a
#    freshly installed kernel does not protect until it has rebooted either
sudo reboot

# 4. Confirm after reboot
uname -r
cat /sys/module/kvm_amd/parameters/nested

```

The flaw is the latest in a **series of KVM isolation failures** disclosed this year: a **16-year-old** flaw in KVM’s shadow-memory management affecting both **Intel** and **AMD** systems, then **PwnEscape**, in Linux’s networking code, which let a guest read host memory in **Vercel**’s live sandboxes in October.

The spread in scores is itself a lesson in triage. The kernel team’s **8.8** measures the theoretical worst case; **Red Hat**’s **5.6** reflects its judgement that a practical exploit is a denial-of-service; **DigitalOcean**’s *critical* reflects the one fact that matters for a shared host — that a tenant can read a neighbour’s memory. When scores disagree this widely, treat the lowest as the floor and the highest as the ceiling, and let your tenancy model decide where in between you actually live. A bare-metal operator running only its own VMs has a different exposure than a cloud provider selling isolation to strangers.

Nested virtualization is a niche feature. It exists for the rare tenant that needs to run its own hypervisor — CI farms testing hypervisor software, labs, nested cloud emulation — and most workloads never touch it. That is why the mitigation is so cheap: for the overwhelming majority of hosts, `nested=0` costs nothing and closes the entire attack surface until a reboot can be scheduled. The few tenants that genuinely depend on it are exactly the ones that should already be on a patched kernel.

## The verdict

**If you run KVM hosts on AMD hardware, update the host kernel today and reboot.** The fix is upstream, host read is the worst failure mode an hypervisor can have, and the severity depends on whether your host is shared. The cost is a planned reboot; the risk, on a shared host, is a hostile customer reading everyone else’s memory.

**If you cannot reboot yet, disable nested virtualization now.** It is the only mitigation that closes the path, and it costs a feature most workloads never use. And take the structural lesson of **PatchSlop**: yesterday’s security fix can be today’s flaw — when a regression touches hypervisor isolation, the four-year window that passed here should push you to treat every kernel update as a security event, not a routine.

## References

- [The Hacker News — Linux KVM Flaw CVE-2026-99312 Lets Guest VMs Access Host Memory on AMD Hosts (20 November 2026)](https://thehackernews.com/2026/11/new-linux-kvm-flaw-cve-2026-99312-lets.html?ref=ettayeb.fr)
- [DigitalOcean — Security disclosure (19 November 2026)](https://www.digitalocean.com/?ref=ettayeb.fr)
- [Linux Kernel CVE team — CVE-2026-99312 announcement](https://www.cve.org/?ref=ettayeb.fr)