Blog

The KVM Flaw a Guest Update Won't Fix: CVE-2026-99312

A KVM flaw lets root in a VM read host memory on AMD with nested virtualization, and guest updates do not fix it. What to check as a tenant or host.

Diagram of an AMD host (L0) containing a tenant VM (L1) and a nested guest (L2): on an L2 INIT, KVM fails to update the nested page table, and arrows run through a stale pointer to host physical memory (host kernel, other tenants' VMs, keys)
How CVE-2026-99312 works. Based on Terra Security's write-up and Red Hat's description.
Contents

Most people who rent virtual machines in the cloud take the “VM wall” for granted. Even if other companies’ VMs share the same physical server, the hypervisor keeps memory separate, so whoever gets root inside your VM cannot reach the neighbors. It turns out that this assumption was broken for about four years under a certain combination of settings.

CVE-2026-99312, disclosed on November 18, 2026, is a flaw in KVM, Linux’s virtualization feature. On AMD hosts with nested virtualization (running a virtual machine inside a virtual machine) enabled, root inside a VM could set things up to read and write the host’s physical memory. Terra Security, which found it, showed that about 127 GB of host memory could be viewed read-only from a single DigitalOcean Droplet (virtual server). The only place it can be fixed is the host kernel, so cloud tenants and operators running their own KVM, on Proxmox VE, OpenStack, CI runners and the like, have very different options.

One stale pointer remained, and the guest could rewrite the host’s map

Let’s start with the flaw itself, because the mechanism determines where the fix has to go.

The memory addresses a VM uses are translated into actual physical memory through a mapping table managed by the hypervisor (on AMD, the Nested Page Table, or NPT). A guest can only touch its own page tables; only the host can modify the NPT. That is what the VM wall actually is.

With nested virtualization, another VM (L2) runs inside the tenant’s VM (L1). According to Terra Security’s write-up and Red Hat’s description, when an L2 virtual CPU received an INIT (a CPU initialization signal) while paging was disabled (CR0.PG=0), KVM skipped updating the pointer to the NPT (nCR3 in the VMCB). The pointer was left pointing at an already freed NPT page. When KVM then reused that page as a table for the guest’s own memory, the CPU ended up reading “a table whose contents the guest can write” as part of the NPT. The guest could write a fake table and map arbitrary host physical pages into its own address space. It is a textbook use-after-free. The diagram at the top lays out this flow.

The fix commit’s description explains that Intel hosts are not affected because Intel’s virtualization support (VMX) is designed to always hand INIT to the hypervisor. The problem existed only in the path that emulates INIT for AMD nested virtualization (nested SVM).

The history carries a lesson too. The flaw was introduced by a 2022 fix for a reset issue with nested VMs (CVE-2022-3344). That fix restored the VMCB to the outer one, but missed the INIT path. Terra Security’s timeline says it was reported on October 21, 2026, fixed in mainline on November 2, released in stable 7.3.5 and long-term support 6.18.64 and 6.12.118 on November 17, and the CVE was published the next day, November 18. It took less than a month from report to fixed releases.

The fix lives only on the host, out of tenants’ reach

The mechanism leads to the fact that matters most in practice. Because the flaw is in the host’s KVM, no amount of updating the kernel inside the guest will stop it. All a cloud tenant can do is confirm whether the provider has fixed its hosts.

In a blog post on November 19, DigitalOcean explained that it received the report from Terra Security through its bug bounty program, confirmed reproduction on its own hosts, built a live patch from the upstream fix, and rolled it out fleet-wide. It avoided waiting in line for reboots, and says Droplet users need to do nothing. The proof of concept was done in two stages: viewing about 127 GB of host memory read-only from a single Droplet, and writing 32 bytes into a host kernel page on a bare-metal server with no other tenants. There is no statement that any other tenant’s data was actually read.

What about other providers? Terra Security writes that most of the cloud providers it examined did not enable nested virtualization on AMD and so were not affected, but does not name them. According to a research note compiled by the Cloud Security Alliance (CSA) on November 28, AWS added nested virtualization to EC2 in February 2026, for Intel-based C8i, M8i, and R8i. Google Cloud documents nested virtualization that exposes AMD-V, but the note says no statement about this vulnerability could be found. In other words, tenants have no way to check from the outside whether the host their VM sits on meets these conditions.

Left: what tenants should check when a provider runs the host. Right: when you run the host yourself, the flow branches on the kvm_amd nested value into applying a fixed kernel or mitigating with nested=0

The diagram above shows how the to-do list splits depending on who operates the host (L0). The left side is the renter; the right side is whoever owns the host. In concrete terms, the renter’s check, as CSA recommends, is to ask the provider in writing: “Did you expose nested virtualization to customers on AMD hosts?” and “When did you apply the fix or live patch?” If you ran highly sensitive workloads, rotating keys and credentials that sat in VM memory during that period is a low-cost precaution even without evidence of exploitation.

On self-hosted KVM, there is one value to check, and the lag is at the distributions

Let’s move to the right side of the diagram: those who own the host. This covers on-premises Proxmox VE and OpenStack, internal private clouds, self-hosted CI runners, lab servers for training, and any environment running KVM on AMD EPYC or Ryzen.

There is one value to check: read /sys/module/kvm_amd/parameters/nested. If it is 1 or Y, nested virtualization is allowed. Citing kernel documentation and VPS management software materials, CSA points out that nested virtualization is enabled by default in kvm_amd. There are probably quite a few environments where it is on not because anyone deliberately enabled it, but because nobody disabled it. If, on top of that, guests where untrusted users have root are given virtual CPUs that expose svm (such as -cpu host), the conditions are met.

The hard part is getting a fixed version. The upstream fix shipped on November 17, but as of its November 25 update, Ubuntu’s tracker still listed the 22.04, 24.04, and 26.04 LTS kernels as “Vulnerable.” CSA’s summary reports that Debian trixie is fixed while bookworm is not, and that RHEL 9 and 10 are affected with fixes deferred. Distribution kernels pull in fixes on their own (backporting), so version numbers alone don’t tell you; you have to check each vendor’s advisories and changelogs.

There are two workarounds until the fix arrives. Red Hat describes stopping all VMs on the host, reloading with modprobe -r kvm_amd and modprobe kvm_amd nested=0, and making it persistent by writing options kvm_amd nested=0 under /etc/modprobe.d/. If you can’t stop the VMs, you can remove svm from the virtual CPU definitions of untrusted guests. The first option disables nested virtualization for the whole host, so it also stops any legitimate work that relies on it (discussed below).

A combination of conditions that is easy to overrate and to underrate

Let’s take a sober measure of how serious this hole is, since listing the conditions alone makes it look like a niche issue.

The reasons it looks narrow are clear. Four things must line up: the host is AMD, nested virtualization is enabled, the attacker has root in the guest, and svm is visible. Red Hat gave a provisional CVSS of 7.8 and rated attack complexity “High” (CVE.org lists 8.8). According to CSA, no exploitation outside research is known and no exploit code has been published. CSA also notes that neither disclosure demonstrated a complete exploit chain.

But of those four conditions, “has root in the guest” is met by anyone who pays for a VPS or IaaS. Inside a company too, root inside the VM belongs to “some untrusted party” in CI that builds pull requests from outside contributors, in test VMs handed out to students or trainees, and in sandboxes where AI agents run code. Conversely, on a host that carries only VMs used by administrators, the expected real-world damage is much smaller. The deciding factor is not the number of conditions but who holds root in the guest.

Nested virtualization is becoming a “feature people use,” thanks to AI agents

Finally, let’s place this in the context of what comes next. Until recently, nested virtualization was an odd feature used in test environments. Now the reasons to use it are multiplying.

To run code written by AI agents, setups that lock each Pod or session into its own lightweight VM with Kata Containers or Firecracker are spreading, and AWS Nitro Sandboxes is one example. Running these on cloud VMs requires nested virtualization. There are other uses too, such as running the Android emulator in CI or using Windows Hyper-V on a cloud VM. AWS adding nested virtualization to EC2 in February 2026 can be read as a response to this demand (this is the author’s speculation).

At the same time, nested virtualization is a feature where the hypervisor imitates “the virtualization mechanism itself,” and it has many paths that are rarely exercised, like the INIT path this time. One fix spawned the next hole, and it likely went unnoticed for four years because that path was hardly ever used. As usage grows, flaws of the same kind become easier to find, for attackers and defenders alike. I expect the irony of enabling nested virtualization to isolate AI agents, only for that nested virtualization to become a backdoor to the host, will not end with this case.

The thickness of the “VM wall” changes with the combination of features

Let me sum up my view. The essence of this case isn’t AMD versus Intel. It is that it demonstrated, with concrete numbers, the obvious fact that VM isolation carries an attack surface for every feature the hypervisor enables.

Organizations running their own KVM should list nested virtualization in their inventory as “a feature enabled only where there is a reason to use it.” If you stop leaving it on just because it is on by default, you will be able to state the impact immediately the next time a similar flaw appears. Uses that genuinely need nesting (AI agent sandboxes, building outside code) should not share a host with trusted VMs. Nitro Sandboxes’ design of placing VMs next to the parent instance rather than nesting them makes sense not only for performance but also for avoiding this kind of attack surface.

For cloud tenants, the lesson is where the line in the shared responsibility model sits. The host kernel belongs to the provider; tenants can neither fix it nor verify it. That makes it worth checking a provider’s live-patching capabilities and how it discloses vulnerabilities at the selection stage. DigitalOcean moved efficiently from report to announcement, but that was because it received the report through a bounty program, reproduced it in-house, and had the machinery to apply patches without reboots. In an era of more than 100,000 vulnerabilities a year, what makes the difference in patch management now is not the count but the number of days until a fix is delivered. That applies to whoever you entrust your hosts to as well.

References

Frequently asked questions

Which environments are affected by CVE-2026-99312?

Linux KVM hosts on AMD CPUs where nested virtualization is enabled in the kvm_amd module, an untrusted user has root inside a virtual machine, and svm (AMD-V) is exposed to that VM’s virtual CPUs. KVM on Intel hosts is not affected. The fix landed in Linux 7.3.5, 6.18.64, and 6.12.118 on November 17, 2026.

Does updating the kernel inside the virtual machine protect against CVE-2026-99312?

No. The flaw is in KVM on the host, and the fix only goes into the host kernel. Cloud tenants can only confirm whether their provider has fixed the hosts. DigitalOcean applied a live patch and says Droplet users need to take no action.

What if the host kernel cannot be updated right away?

If /sys/module/kvm_amd/parameters/nested is 1 or Y, nested virtualization is enabled. Red Hat describes stopping all virtual machines, reloading the kvm_amd module with nested=0, and making it persistent by writing options kvm_amd nested=0 under /etc/modprobe.d/. Another option is to remove svm from the virtual CPUs of untrusted guests.