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-98863 Overview
CVE-2026-98863 affects the Kernel-based Virtual Machine (KVM) subsystem in the Linux kernel on x86 architectures. The flaw resides in the handling of GET_NESTED_STATE_PAGES during the KVM_RUN path for nested virtualization. When KVM fails to acquire the nested pages before exiting to userspace, the request is not re-pended. If userspace subsequently re-runs the virtual CPU, vmcs02 may still hold valid Page Frame Numbers (PFNs) from the previous L2 execution. This can allow KVM to re-enter the L2 guest using stale, unpinned PFNs mapped into structures such as the virtual Advanced Programmable Interrupt Controller (vAPIC) page.
Critical Impact
Stale, unpinned PFNs from a prior nested guest execution may be remapped into sensitive virtualization structures, creating memory safety risks in nested virtualization workloads.
Affected Products
- Linux kernel (x86 KVM subsystem with nested virtualization)
- Nested VMX (Intel) and SVM (AMD) virtualization paths
- Hypervisor hosts running untrusted L1/L2 guests
Discovery Timeline
- 2026-10-18 - CVE-2026-98863 published to the National Vulnerability Database (NVD)
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98863
Vulnerability Analysis
The defect lies in the KVM x86 nested virtualization code path that handles KVM_REQ_GET_NESTED_STATE_PAGES. During KVM_RUN, KVM attempts to resolve and pin the guest-physical pages backing nested state structures. When this resolution fails, KVM exits to userspace to allow it to respond. The fix ensures the request is re-pended before that exit so a subsequent KVM_RUN will re-attempt mapping. Without re-pending, the request flag is dropped while vmcs02 still references PFNs from the previous L2 run.
The affected structures include the vAPIC page and other nested state pages that KVM maps for direct hardware access. Both Intel VMX and AMD SVM paths clear this request on VM-Exit, including forced exits, which prevents double-mapping from emulated VMLAUNCH, VMRESUME, or VMRUN instructions competing with the request handler.
Root Cause
The root cause is a missed state transition in error handling. KVM did not re-queue KVM_REQ_GET_NESTED_STATE_PAGES on the failure-to-userspace path, leaving the vCPU able to re-enter L2 with vmcs02 still populated by stale pointers from a prior guest run. This is a kernel-level logic flaw in virtualization state management.
Attack Vector
Exploitation requires local access to a host with KVM nested virtualization enabled and the ability to run or control a userspace Virtual Machine Monitor (VMM) such as QEMU. A privileged L1 guest or malicious VMM could induce the failure condition, then trigger a re-entry into L2 where KVM dereferences stale, unpinned PFNs. The consequences depend on page reuse timing but include use-after-free style access to host memory that previously backed guest pages.
No verified public proof-of-concept code is available. The vulnerability mechanism is documented in the upstream commits referenced in the Linux Kernel Commit Details.
Detection Methods for CVE-2026-98863
Indicators of Compromise
- Unexpected KVM_RUN ioctl failures followed by immediate vCPU re-entry on the same thread
- Kernel log entries referencing nested state page acquisition failures in arch/x86/kvm/
- Hypervisor host crashes, oops, or memory corruption traces originating from nested virtualization code paths
Detection Strategies
- Compare the running kernel version against upstream fix commits 10180a27, 525694a6, and 942192db to identify unpatched systems
- Audit hosts for nested virtualization enablement by inspecting /sys/module/kvm_intel/parameters/nested and /sys/module/kvm_amd/parameters/nested
- Monitor host dmesg output for KVM warnings, BUG messages, or page refcount anomalies during guest workloads
Monitoring Recommendations
- Collect kernel audit and syslog telemetry from all virtualization hosts into a centralized logging platform
- Alert on repeated KVM_RUN exit-to-userspace sequences from the same vCPU within short intervals
- Track package versions of linux-image-* across the fleet to flag hosts missing kernel security updates
How to Mitigate CVE-2026-98863
Immediate Actions Required
- Identify all hosts running KVM with nested virtualization enabled and prioritize them for patching
- Apply the latest stable Linux kernel updates from your distribution containing the upstream fix
- Reboot patched hosts to load the fixed kernel, following standard live-migration procedures for production workloads
Patch Information
The fix re-pends GET_NESTED_STATE_PAGES before exiting to userspace when the page acquisition fails. The upstream patches are available in the Linux Kernel Update, Linux Kernel Change Log, and Linux Kernel Commit Details. Distribution-specific backports should be tracked through vendor security channels.
Workarounds
- Disable nested virtualization on affected hosts by setting the nested=0 parameter for kvm_intel or kvm_amd modules until a patched kernel is deployed
- Restrict guest workloads that require nested virtualization to hosts already running a patched kernel
- Limit host access to trusted operators to reduce the risk of a malicious VMM triggering the failure path
# Disable nested virtualization until patching
# For Intel hosts
echo "options kvm_intel nested=0" | sudo tee /etc/modprobe.d/kvm-nested.conf
sudo modprobe -r kvm_intel && sudo modprobe kvm_intel
# For AMD hosts
echo "options kvm_amd nested=0" | sudo tee /etc/modprobe.d/kvm-nested.conf
sudo modprobe -r kvm_amd && sudo modprobe kvm_amd
# Verify nested virtualization status
cat /sys/module/kvm_intel/parameters/nested
cat /sys/module/kvm_amd/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

