Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98717 Overview
CVE-2026-98717 is a NULL pointer dereference vulnerability in the Linux kernel's Kernel-based Virtual Machine (KVM) x86 Memory Management Unit (MMU) code. The flaw occurs when KVM walks shadow page tables using a "dummy" root whose top-level page table is backed by the zero page. A race between memory slot creation and a stage-2 page fault from an L2 guest (an Extended Page Table violation or Nested Page Fault) can cause the kernel to dereference an invalid pointer and oops. The issue has been resolved by terminating shadow walks when the root is invalid or a dummy root.
Critical Impact
A malicious or malformed guest VM can trigger a host kernel NULL pointer dereference, causing a denial-of-service condition on the hypervisor host.
Affected Products
- Linux kernel (upstream) with KVM x86 MMU subsystem
- Linux distributions shipping affected stable kernel branches prior to the referenced fix commits
- Hosts running KVM/QEMU virtualization with Intel VMX (EPT) or AMD SVM (NPT) nested paging
Discovery Timeline
- 2026-10-18 - CVE-2026-98717 published to the National Vulnerability Database
- 2026-10-21 - Last updated in NVD database
Technical Details for CVE-2026-98717
Vulnerability Analysis
The vulnerability lives in KVM's x86 MMU shadow page table walking logic. KVM uses "dummy" roots as placeholder structures that are valid enough to enter the guest but do not point to real backing shadow page structures. When memslot creation races with a stage-2 page fault originating from an L2 (nested) guest, KVM may enter __kvm_mmu_invalidate_addr while the active root is a dummy backed by the zero page. The walker then follows pointers derived from zeroed memory and dereferences an invalid address, producing a kernel oops.
The reported crash signature shows BUG: kernel NULL pointer dereference, address: 0000000000000021 with the fault frame inside __kvm_mmu_invalidate_addr+0xea/0x210 [kvm], reached through ept_page_fault, kvm_mmu_do_page_fault, and vmx_handle_exit. The upstream fix bails out of the shadow walk immediately when the root is invalid or a dummy root, and adds a WARN for the fully invalid case because all callers are expected to pre-validate the root.
Root Cause
The root cause is a missing precondition check on the root of the shadow page table walk. Dummy roots exist to let the vCPU enter the guest, but they must not be traversed by code that expects a real shadow structure. A race window between KVM_SET_USER_MEMORY_REGION style memslot updates and nested EPT/NPF handling allowed the walker to run against a zero-page-backed root.
Attack Vector
Exploitation requires the ability to run a guest VM on the host and to induce nested virtualization faults while memslot changes are in flight. A local, unprivileged user inside a guest cannot directly trigger this; however, a guest administrator (or a workload that controls VM configuration such as a cloud tenant with nested virtualization enabled) can race memslot operations with L2 page faults to crash the host kernel.
No verified public exploit code is available. The crash path is documented in the upstream commit messages referenced below; see Kernel Commit 97c1dcc for the authoritative description.
Detection Methods for CVE-2026-98717
Indicators of Compromise
- Kernel oops entries containing __kvm_mmu_invalidate_addr in the fault RIP, often with a low-address NULL-adjacent dereference such as 0x0000000000000021.
- Call traces that chain ept_page_fault → kvm_mmu_do_page_fault → kvm_mmu_page_fault → vmx_handle_exit on Intel hosts, or the AMD #NPF equivalent.
- Unexpected termination or reset of qemu processes correlated with host dmesg crash reports.
Detection Strategies
- Collect host dmesg and /var/log/kern.log for KVM-related oops signatures and alert on repeated occurrences from the same guest workload.
- Monitor hypervisor host uptime and kernel crash dump directories (/var/crash, kdump) for new entries referencing kvm or kvm_intel modules.
- Correlate guest KVM_SET_USER_MEMORY_REGION ioctl activity with host crash timing where tenant telemetry is available.
Monitoring Recommendations
- Enable kdump on KVM hosts to capture full vmcores for post-mortem analysis of any MMU-related oops.
- Centralize kernel logs in a SIEM or data lake and build alerts on strings such as kvm_mmu_invalidate_addr and NULL pointer dereference co-occurring in a single stack trace.
- Track running kernel versions across the virtualization fleet to identify hosts still exposed to the pre-patch MMU walker.
How to Mitigate CVE-2026-98717
Immediate Actions Required
- Inventory all KVM hypervisor hosts and record their running kernel versions and distribution kernel package levels.
- Apply vendor-provided kernel updates that incorporate the upstream fix commits as soon as they are available for your distribution.
- Restrict nested virtualization for untrusted guests where it is not operationally required, reducing the exposed L2 fault paths.
Patch Information
The vulnerability is fixed upstream by terminating shadow walks when the root is invalid or a dummy root. The fix is distributed across the following stable commits:
- Kernel Commit 681e31f
- Kernel Commit 951fce1
- Kernel Commit 97c1dcc
- Kernel Commit b6249c1
- Kernel Commit e1bcabc
Consult your Linux distribution's security tracker to map these commits to shipped kernel package versions.
Workarounds
- Disable nested virtualization on affected hosts if guests do not require it, using modprobe kvm_intel nested=0 or modprobe kvm_amd nested=0 as appropriate.
- Avoid dynamic memory slot reconfiguration (hot-add/remove of guest memory regions) on untrusted VMs until patched kernels are deployed.
- Isolate workloads that require nested virtualization onto patched hosts or dedicated clusters.
# Disable KVM nested virtualization as a temporary workaround (Intel)
sudo modprobe -r kvm_intel
echo "options kvm_intel nested=0" | sudo tee /etc/modprobe.d/kvm-nested.conf
sudo modprobe kvm_intel
# Verify nested virtualization is disabled
cat /sys/module/kvm_intel/parameters/nested
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

