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-98164 Overview
CVE-2026-98164 is a Linux kernel vulnerability in the KVM x86 memory management unit (MMU) subsystem. The function kvm_gfn_is_write_tracked() only checks the supplied memslot when validating page write tracking. Because page tracking is per-address-space while shadow pages are shared across address spaces, System Management Mode (SMM) can cause a guest frame number (GFN) to appear tracked in one address space and untracked in another. This inconsistency allows mmu_try_to_unsync_pages() to mark an upper-level shadow page unsync, eventually triggering a BUG in pte_list_remove().
Critical Impact
A malicious or malformed guest can trigger a kernel BUG in the KVM MMU code path, leading to host denial of service on virtualization hosts running affected Linux kernels.
Affected Products
- Linux kernel KVM subsystem on x86 platforms (see kernel.org stable commits for affected ranges)
- Distributions shipping vulnerable kernel builds with KVM enabled
- Virtualization hosts exposing SMM-capable guests
Discovery Timeline
- 2026-09-29 - CVE-2026-98164 published to NVD
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-98164
Vulnerability Analysis
The KVM x86 MMU maintains shadow page tables that reflect guest memory mappings. Write tracking allows KVM to intercept guest writes to specific pages, which is required for correct emulation and shadow paging.
The helper kvm_gfn_is_write_tracked() only consults the memslot passed to it. However, KVM maintains separate address spaces, notably the normal address space and the SMM address space, while shadow pages themselves are shared globally. A GFN can therefore be marked write-tracked in one address space while the lookup in the other address space reports the page as untracked.
When mmu_try_to_unsync_pages() operates on the untracked view, it can mark an upper-level shadow page unsync even though tracking was requested elsewhere. This state inconsistency later reaches pte_list_remove(), which enforces an invariant that is now violated and triggers a kernel BUG.
Root Cause
The root cause is incomplete state validation across the SMM and non-SMM address spaces [CWE-662-class logic error]. Shared shadow-page state is validated against only one address space's tracking metadata, producing a Time-of-Check inconsistency between what KVM believes about a page and what other code paths enforce.
Attack Vector
A guest able to enter and exit SMM, or otherwise cause KVM to operate across both address spaces on a tracked GFN, can steer the MMU into the inconsistent state. Reaching the vulnerable code path requires local guest execution on the affected host. Successful triggering results in a kernel BUG on the hypervisor, terminating the affected code path and impacting host stability. See the upstream commits for the exact fix, which inverts the conditional and additionally checks the paired address-space slot. Refer to Kernel Git Commit ec8fcaf and Kernel Git Commit 429b6f4 for the patch content.
Detection Methods for CVE-2026-98164
Indicators of Compromise
- Kernel BUG messages originating in pte_list_remove() within the KVM x86 MMU code path.
- Unexpected KVM virtual machine termination or host kernel panics correlated with guest SMM activity.
- dmesg entries referencing mmu_try_to_unsync_pages shortly before a kernel oops.
Detection Strategies
- Inventory hypervisor hosts and confirm running kernel versions against the fixed commits listed in the kernel.org references.
- Monitor kernel logs and crash dumps on KVM hosts for MMU-related BUG_ON traces.
- Correlate host kernel faults with guest workload patterns that use SMM or nested virtualization.
Monitoring Recommendations
- Forward /var/log/kern.log and journalctl -k output to a centralized log platform for pattern matching on KVM MMU stack traces.
- Alert on repeated hypervisor reboots or kvm-related process crashes across virtualization clusters.
- Track kernel package versions across the fleet to identify hosts still running pre-patch builds.
How to Mitigate CVE-2026-98164
Immediate Actions Required
- Apply the upstream Linux kernel patches referenced by the stable commits and reboot affected hypervisors.
- Update to distribution kernel builds that include the fix once vendors publish them.
- Restrict which tenants can launch guests capable of exercising SMM on shared hosts.
Patch Information
The fix is present in the following upstream commits: Kernel Git Commit 09aa685, Kernel Git Commit 0f38453, Kernel Git Commit 429b6f4, Kernel Git Commit c0a9bd5, Kernel Git Commit d8636c8, and Kernel Git Commit ec8fcaf. The patch changes kvm_gfn_is_write_tracked() to consult both the supplied slot and the paired address-space slot before returning a tracking verdict.
Workarounds
- Where patching is not immediately possible, avoid running untrusted guests that can execute SMM code on shared KVM hosts.
- Consider migrating sensitive workloads onto already-patched hypervisor hosts and draining vulnerable nodes.
- Disable nested virtualization features on affected hosts if not required, reducing the surface reachable through guest MMU manipulation.
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

