CVE-2026-99312: Linux kernel KVM leaves a nested AMD guest’s host with a stale MMU context after INIT

ByLinuxtastic

November 30, 2026 #CVE, #Linux Kernel

On an AMD host running nested virtualisation, a guest’s guest (L2) that receives an INIT while it is running with paging disabled leaves KVM with a stale memory-management context for the outer guest (L1): the MMU page role encodes whether L2 was active, and KVM skipped the reset because paging was already off. Red Hat reads the consequence as a freed-and-reused nested page table that a guest could use to forge page table entries; the kernel CNA scores it 8.8 with scope change, a guest reaching beyond itself. Update the host kernel to 7.3.5, 6.18.64, 6.12.118, 6.6.163, 6.1.193 or 5.15.226 (or your distribution’s build) and reboot it; if you cannot yet, turn nested virtualisation off on AMD hosts with kvm_amd nested=0. Intel hosts and AMD hosts without nested virtualisation are not affected, and neither is any machine that is not a KVM host.

CVE-2026-99312 at a glance.

ComponentLinux kernel, KVM on x86 (arch/x86/kvm/x86.c, INIT emulation), reachable only with nested SVM, that is a KVM host on AMD with kvm_amd‘s nested parameter on, which is the default
Affected versionsMainline from 6.1, plus the stable backports 5.15.81 to 5.15.225 and 6.0.11 onwards (the bug came in with commit 6425c590, a 2022 change to the INIT path); every stable series between those and the fixes below
Fixed inMainline 7.4-rc2 (commit c7c288d1, “KVM: x86: Unconditionally reset MMU context when emulating INIT”); stable 7.3.5, 6.18.64, 6.12.118, 6.6.163, 6.1.193, 5.15.226. Distribution kernels below
SeverityKernel CNA CVSS 3.1 8.8 High (AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H); NVD has not scored it. Red Hat Important, 7.8 (AC:H, CWE-825, draft); SUSE important, 7.8 (CVSS 4.0 8.8). The CNA record carries no CWE; Red Hat’s bug title calls it a use-after-free of the nested page table pointer. The scores differ only on attack complexity
Exploited in the wildNot on CISA’s Known Exploited Vulnerabilities list as of 30 November 2026. EPSS 0.0031 (17th percentile) on 30 November 2026
Who is exposedKVM hosts on AMD processors that allow their guests to run hypervisors of their own (nested virtualisation), where a guest is not fully trusted: cloud and lab hosts that hand customers a VM with nested virtualisation enabled, CI runners that boot VMs inside VMs. Red Hat’s statement says exploitation needs the nested setup plus specific guest conditions; the attacker is a privileged user inside a guest. Intel hosts, AMD hosts with nested=0, and guests that never run L2 are not affected
PublishedKernel CNA record 18 November 2026 (updated 23 November); this page built 30 November 2026, last updated 30 November 2026

What it is

KVM keeps, for each virtual CPU, an MMU context whose “page role” describes what kind of guest the shadow or nested page tables were built for: paging mode, SMM, and whether the vCPU is currently running a nested guest (L2). An INIT signal resets a vCPU, and when KVM emulates one it is supposed to rebuild that context. The old code only did so if paging had been enabled, on the theory that nothing in the role could have changed otherwise. The commit message says why that was wrong: the role also encodes guest mode, so an INIT delivered while L2 is running with CR0.PG=0 leaves KVM “running L1 with a stale MMU context”, page tables built for L2 being used for L1.

The fix is a blunt one, and the message explains the choice: reset the MMU context on every emulated INIT, even in real mode or unpaged protected mode where it is strictly unnecessary, because INIT is not a hot path and re-initialising a context whose role has not changed is cheap. It notes that the bug affects only nested SVM, because on Intel’s VMX an INIT is an unconditional intercept and cannot be emulated while L2 is active. Red Hat’s analysts describe the exploitable shape: the nested page table pointer is not reset, so a freed and reallocated NPT page could let a guest forge page table entries, which is why the CNA’s vector has scope change and all three impacts high.

Red Hat scores it 7.8 rather than 8.8 because of the setup it needs: nested virtualisation on an AMD host, and a guest that runs its own guest and can arrange the INIT-while-unpaged sequence. That is an ordinary configuration on a developer’s workstation and a deliberate one on cloud hosts that sell nested virtualisation, and an unusual one on a plain production hypervisor whose guests do not nest. The git.kernel.org commit pages refuse automated readers, so this page describes the fix from the CNA’s copy of the commit message and names the file from the record’s programFiles, not from the diff.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 30 November 2026; the link in the row is the tracker page, which will be newer than this one. This is a host-side bug: patch the hypervisor’s kernel, not the guests’.

DistributionStatusFixed package
Debian bookworm, trixie, forky, sidFixed in trixie (DSA-6652-1), forky and sid; vulnerable in bookwormtrixie linux 6.12.118-1, forky 7.3.5-1, sid 7.3.6-1; bookworm 6.1.176-1 and the 6.1.192-3 security build still vulnerable on 30 November, no linux-6.12 row
Ubuntu 20.04 to 26.04Tracker unreachable on 30 November 2026Ubuntu’s CVE page refused automated readers when this page was built, so no priority or per-release linux status is reproduced here; the tracker link is the current word
RHEL 9, 10 (and rebuilds)Important (7.8), affected, no erratumRHEL 9 kernel and RHEL 10 kernel “Affected” (RHEL 9 kernel-rt not affected), no fixed build on 30 November; RHEL 7 and 8 not affected; OpenShift CoreOS 9 and 10 affected. Mitigation: kvm_amd nested=0
SUSE SLE 15 SP4 to SP7, 16.x, SL Micro, openSUSE Leapimportant, pending; SL Micro 6.0/6.1 already fixedSL Micro 6.0 and 6.1 kernel-default-base 6.4.0-159998.56.1.159998.21.45 and later released; other products under QA on 30 November (SUSE rating 7.8)
Fedora, Arch, AlpineNot consultedtrackers not read for this page; these track the stable series above, so 7.3.5 / 6.18.64 and later are the builds to look for
Self-built, vendor and cloud-image kernelsAffected below the fixed stable releases7.3.5, 6.18.64, 6.12.118, 6.6.163, 6.1.193, 5.15.226 or later

How to check

Three questions: is this an AMD KVM host, is nested virtualisation on, and is the running kernel older than the fix. The first two clear every Intel box and every host that does not nest.

# 1. AMD KVM host? (no kvm_amd loaded means this bug cannot be reached)
lsmod | grep -E '^kvm_(amd|intel)'
grep -m1 -E 'vendor_id' /proc/cpuinfo

# 2. nested virtualisation on? 1 or Y is the exposed setting
cat /sys/module/kvm_amd/parameters/nested 2>/dev/null || echo "kvm_amd not loaded"

# 3. the running kernel: affected below 7.3.5 / 6.18.64 / 6.12.118 / 6.6.163 / 6.1.193 / 5.15.226
uname -r
dpkg -l 'linux-image-*' 2>/dev/null | grep '^ii' | awk '{print $2, $3}'   # Debian / Ubuntu
rpm -q kernel 2>/dev/null                                                   # RHEL family / SUSE
# which guests actually run with nested virtualisation (libvirt hosts)
for d in $(virsh list --name 2>/dev/null); do virsh dumpxml "$d" | grep -q 'host-passthrough\|svm' && echo "$d: nested-capable CPU model"; done

kvm_intel, or no KVM module at all, means you are done. An AMD host with nested reading 0 or N is not exposed whatever its kernel version, because L2 can never exist. An AMD host with nesting on and a kernel below the fixed releases is the vulnerable configuration; how much that matters is a question about the guests, since the attacker is someone with root inside one of them, and a guest you fully trust is not an attacker.

How to fix it

Install the fixed host kernel and reboot the host; a kernel fix does not take effect until the new kernel is running, and guests go down with the host unless you migrate them first.

# Debian trixie (DSA-6652-1) / Ubuntu
apt update && apt install linux-image-amd64        # or your metapackage
# RHEL family: no erratum on 30 November; SUSE: SL Micro 6.x has builds, the rest are pending
dnf update kernel
zypper patch
# then
reboot
uname -r                                            # must show the fixed build

If the host cannot reboot yet, Red Hat’s mitigation removes the precondition: disable nested virtualisation on kvm_amd. Guests then cannot run their own hypervisors, which breaks nested labs and some CI, so stop the VMs, reload the module and make the setting persistent. Do not mistake a guest-side kernel update for a fix, and do not assume a hypervisor that only ever runs plain guests needs the emergency path: the fix can wait for the next planned reboot there, provided nesting is off.

# mitigation on AMD hosts: nested off (needs all VMs stopped so the module can be reloaded)
virsh list --name | xargs -r -n1 virsh shutdown
modprobe -r kvm_amd && modprobe kvm_amd nested=0
echo 'options kvm_amd nested=0' > /etc/modprobe.d/kvm-nested-off.conf
cat /sys/module/kvm_amd/parameters/nested              # must read 0

Sources

  • CVE-2026-99312 at CVE.org — the kernel CNA record (18 November 2026): the commit message, the affected and fixed ranges, programFiles and the 8.8 vector
  • Fix commit c7c288d1 (7.4-rc2) — “KVM: x86: Unconditionally reset MMU context when emulating INIT”; git.kernel.org refused automated readers, so the diff was not read for this page
  • NVD entry — Received; only the CNA’s CVSS so far
  • Distribution trackers: Debian (DSA-6652-1) · Ubuntu (unreachable on 30 November) · Red Hat (Important, 7.8, CWE-825, the nested=0 mitigation) · SUSE
  • EPSS score for this CVE, 30 November 2026

Related reading

This advisory page was assembled from the primary sources listed above on 30 November 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.