Dev.to Security 🔐 Cybersecurity 👁 0 📖 7 min read

The KVM Guest to Host Escape That Let One VM Read 127 GB of Host Memory

The KVM Guest to Host Escape That Let One VM Read 127 GB of Host Memory The KVM guest to host escape tracked as CVE-2026-99312 let a researcher with root inside an ordinary DigitalOcean Droplet map roughly 127 GB of th

The KVM Guest to Host Escape That Let One VM Read 127 GB of Host Memory

The KVM guest to host escape tracked as CVE-2026-99312 let a researcher with root inside an ordinary DigitalOcean Droplet map roughly 127 GB of the physical host's RAM, on AMD processors with nested virtualization enabled, per DigitalOcean's disclosure. On a shared host, that memory includes other tenants' virtual machines.

Jump to what to do if you run your own KVM hosts for the mitigation that actually closes it.

What the Flaw Actually Is

KVM confines each virtual machine using a nested page table, and the processor finds that table through a pointer kept for each virtual CPU. A reset signal called INIT stops a nested VM. When that happens, KVM skips one step: it does not restore the outer VM's page-table pointer.

The pointer keeps naming a page the kernel has already freed. If the guest can then write its own entries into that reused page, the processor follows them as though they were the real table. The Hacker News' technical account describes forged entries that can name any physical page on the host, which is how 127 GB came into reach of a guest that was never given it.

The Uncomfortable Origin Story

This bug was not shipped by accident in an unrelated commit. It entered the kernel through a security fix. According to reporting on the flaw's history, the stale-pointer behavior was introduced by the 2022 patch for CVE-2022-3344, and it survived roughly four years before anyone noticed.

Terra Security researcher Oren Yomtov found it and reported it through DigitalOcean's bug bounty program. The KVM maintainers were notified on 21 October 2026, merged a fix on 2 November, and the fix was first tagged in v7.4-rc2 on 9 November. Fixed kernels shipped upstream on 17 November.

What the Proof Actually Showed

Two demonstrations matter, and they are not the same. On DigitalOcean, the researchers read about 127 GB of host RAM read-only from a Droplet, and the first thing that came back was the host's kernel version banner.

The write demonstration ran on Terra's own bare-metal AMD server with no other customers attached, where the guest overwrote 32 chosen bytes in a live host kernel page and a witness module confirmed the change. Write access was not demonstrated against DigitalOcean's production hosts.

Both tests started from root inside a VM the researchers controlled. An attacker needs that position: root in a guest on a vulnerable host, not merely network access to it.

Who Was Actually Exposed

The preconditions are narrow enough that they excluded a lot of infrastructure. The vulnerable code exists only in KVM's support for nested virtualization on AMD, so Intel-based KVM hosts do not carry it. Many cloud providers the researchers surveyed were not exposed simply because they had never enabled nested virtualization on AMD.

Everyone who did enable it is in a worse position. Private clouds, VPS fleets, on-prem AMD KVM clusters, and evaluation harnesses or agent sandboxes that run microVMs inside cloud VMs all depend on nested virtualization to function, which means they cannot casually turn it off.

There are no reports of exploitation outside research, according to VirtFusion, a virtualization platform vendor tracking the issue for operators. No exploit code has been published, and no guidance exists for detecting a past attempt.

Why the Severity Scores Disagree So Much

The Linux kernel's CVE team scores CVE-2026-99312 at 8.8, with high impact on confidentiality, integrity, and availability. Red Hat's preliminary assessment rates it Moderate at 5.6 and treats the impact as denial of service only.

DigitalOcean treated it as critical for its own shared cloud, and live-patched its fleet rather than waiting for distribution packages. The gap between 8.8 and 5.6 is not a rounding difference; it reflects genuinely different views of whether cross-tenant memory disclosure counts as full compromise.

What to Do If You Run Your Own KVM Hosts

Host kernel, not guest kernel. Updating the operating system inside your VMs changes nothing here, and a host keeps running its old kernel until it reboots. Distribution support was uneven at the time of writing.

  • Check whether nested virtualization is on: cat /sys/module/kvm_amd/parameters/nested. A value of 1 or Y means it is enabled, and kvm_amd turns it on by default.
  • Install a fixed host kernel, specifically stable 7.3.5 or the long-term kernels 6.18.64 and 6.12.118, then reboot.
  • If you cannot reboot yet, set options kvm_amd nested=0 in the module configuration and reboot. This closes the path completely, but guests can no longer run their own VMs.
  • Assume the exposure window persisted until the reboot, not until the kernel package was installed. Operators cannot change the nested setting while VMs are running.

Distribution status as reported: Debian listed kernels across all releases as vulnerable with a fix only in unstable, Ubuntu rated it High and had no fixed package as of 25 November, and Red Hat listed Enterprise Linux 9 and 10 as affected with the fix deferred.

What This Means for Tenant Isolation

Our verdict: the thing that broke here is the promise every multi-tenant cloud sells, that a compromise inside your instance stays inside your instance. It broke through a routine lifecycle event, a VM reset, in code that had been sitting quietly for four years.

  • If you rent compute, ask your provider directly whether AMD nested virtualization is enabled on the hosts you run on, and when those hosts were patched and rebooted. Tenants cannot read host state, so this is a question only the provider can answer.
  • If you run agent sandboxes or evaluation harnesses, check whether your isolation model depends on nested virtualization at all. If it does, this flaw is a direct hit on your containment boundary.
  • Do not treat the absence of published exploit code as protection. The precondition is root inside your own guest, which is exactly what a compromised workload gives an attacker.

Worth being precise about where Krova sits, because a post like this deserves specifics rather than a slogan. Cubes on Krova Cloud run as Firecracker microVMs directly on the host kernel through KVM, with a per-Cube jailer around each one, and nested virtualization is not part of that path. That means this specific precondition does not apply to our hosts.

It does not mean Firecracker or KVM is unbreakable, and the PwnEscape flaw that hit Vercel's live sandboxes in October is a good reminder that hypervisor-adjacent isolation gets tested regularly. What it does mean is that a choice made for other reasons, not running VMs inside VMs, happened to exclude this one. More debugging stories at debugly.dev.

FAQ

What is CVE-2026-99312?

It is a guest-to-host escape in Linux KVM's nested virtualization support for AMD processors. A guest with root access can forge nested page table entries pointing at arbitrary host physical memory, letting it read roughly 127 GB of host RAM in a demonstration on DigitalOcean, and write to host kernel memory on the researchers' own hardware.

Am I affected if my cloud provider runs KVM on Intel?

No. Reporting on the flaw states the vulnerable code exists only in KVM's support for nested virtualization on AMD, so Intel-based KVM hosts do not carry it. You are also not exposed if your provider has AMD hosts but never enabled nested virtualization.

Does patching the guest VM fix it?

No. The fix lives in the host kernel, so updating the operating system inside your VM does nothing. A host also keeps running its old kernel until it reboots, which means installing a fixed kernel package is not the same event as being protected.

What We Checked Before Publishing

We used DigitalOcean's own disclosure, which is the vendor that validated and patched against production hosts, as the primary source for the read demonstration and the technical mechanism. We cross-referenced kernel version numbers, the disclosure timeline, and distribution status against The Hacker News' reporting and the kernel team's CVE announcement.

We did not find reporting of exploitation outside research, and we have said so rather than implying active attacks. The severity disagreement between the kernel CVE team and Red Hat is reported as it stands, without picking a winner, because both assessments are public and neither has been withdrawn.

Structured Data

{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "BlogPosting",
      "headline": "The KVM Guest to Host Escape That Let One VM Read 127 GB of Host Memory",
      "datePublished": "2026-11-29",
      "dateModified": "2026-11-29",
      "author": {
        "@type": "Person",
        "name": "Rohit"
      },
      "about": ["CVE-2026-99312", "KVM hypervisor escape", "AMD nested virtualization", "tenant isolation"]
    },
    {
      "@type": "FAQPage",
      "mainEntity": [
        {
          "@type": "Question",
          "name": "What is CVE-2026-99312?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "It is a guest-to-host escape in Linux KVM's nested virtualization support for AMD processors. A guest with root access can forge nested page table entries pointing at arbitrary host physical memory, letting it read roughly 127 GB of host RAM in a demonstration on DigitalOcean, and write to host kernel memory on the researchers' own hardware."
          }
        },
        {
          "@type": "Question",
          "name": "Am I affected if my cloud provider runs KVM on Intel?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "No. Reporting on the flaw states the vulnerable code exists only in KVM's support for nested virtualization on AMD, so Intel-based KVM hosts do not carry it. You are also not exposed if your provider has AMD hosts but never enabled nested virtualization."
          }
        },
        {
          "@type": "Question",
          "name": "Does patching the guest VM fix it?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "No. The fix lives in the host kernel, so updating the operating system inside your VM does nothing. A host also keeps running its old kernel until it reboots, which means installing a fixed kernel package is not the same event as being protected."
          }
        }
      ]
    }
  ]
}
📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.