Skip to main content
Vulnerability Database/CVE-2026-98716

CVE-2026-98716: Linux Kernel KVM Privilege Escalation Flaw

CVE-2026-98716 is a privilege escalation vulnerability in the Linux Kernel's KVM SVM implementation affecting MSR bitmap handling. This article covers the technical details, security impact, and mitigation strategies.

Published:

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-98716 Overview

CVE-2026-98716 is a Linux kernel vulnerability in the KVM Secure Virtual Machine (SVM) subsystem used by AMD processors. The flaw lies in how KVM checks whether a Model-Specific Register (MSR) is intercepted when a nested guest (L2) is active. The code assumed KVM always uses vmcb02's MSR permission bitmap, but KVM only switches to msrpm02 when L1 wants to intercept MSR accesses and needs to merge msrpm01 with msrpm12. Querying the wrong bitmap can lead to incorrect interception decisions on AMD hosts running nested virtualization workloads.

Critical Impact

Incorrect MSR interception checks in nested AMD SVM virtualization can lead to inconsistent guest/hypervisor state handling, affecting isolation between L1 and L2 guests.

Affected Products

  • Linux kernel KVM subsystem (arch/x86/kvm/svm) on AMD SVM-capable hosts
  • Nested virtualization configurations running L2 guests under KVM
  • Stable kernel branches referenced by commits 318ef69, 55865b3, 74836ae, 84da7a0, and 9e06bbb

Discovery Timeline

  • 2026-10-18 - CVE-2026-98716 published to NVD
  • 2026-10-21 - Last updated in NVD database

Technical Details for CVE-2026-98716

Vulnerability Analysis

The vulnerability resides in KVM's AMD SVM MSR interception logic. KVM maintains multiple MSR permission bitmaps (MSRPMs) to control which MSR accesses by a guest trap into the hypervisor. In nested virtualization, three bitmaps are relevant: msrpm01 for L1, msrpm12 for L2 as configured by L1, and msrpm02 which is the merged bitmap used when L1 wants to intercept at least some L2 MSR accesses.

The pre-patch code assumed that whenever L2 was active, the hardware was using vmcb02's MSR bitmap. This assumption is incorrect. KVM only populates and uses msrpm02 when L1 has requested MSR interception, requiring a merge of msrpm01 and msrpm12. When no merge is required, a different bitmap is active, and checks against vmcb02's bitmap return stale or incorrect results.

Root Cause

The root cause is a stale assumption in the interception-check helper: it referenced a fixed bitmap pointer rather than the MSR permission bitmap associated with the currently active VMCB. The fix queries the active VMCB directly and uses __va() to translate the physical bitmap address on demand, avoiding a cached virtual address that could become a second source of inconsistent state.

Attack Vector

Exploitation requires an attacker with the ability to run or influence a KVM guest on an AMD SVM host, specifically one leveraging nested virtualization. The incorrect interception check does not directly expose host memory, but it can cause the hypervisor to make wrong decisions about whether an MSR access should trap, affecting the correctness of nested guest isolation. The specific exploitability profile depends on the calling sites that rely on the interception check.

See the upstream patches for the exact code paths and fix details: Kernel Patch 318ef69 and Kernel Patch 9e06bbb.

Detection Methods for CVE-2026-98716

Indicators of Compromise

  • No specific host-side indicators are published for this issue; the flaw manifests as incorrect MSR interception behavior rather than observable artifacts.
  • Unexpected #VMEXIT patterns or anomalous guest MSR access traces on AMD SVM hosts running nested guests may warrant investigation.

Detection Strategies

  • Enumerate running kernel versions across hypervisor hosts and compare against patched stable branches referenced in the upstream commits.
  • Audit AMD SVM hosts for nested virtualization enablement (kvm_amd nested=1) to scope exposure.
  • Review hypervisor logs for KVM warnings or guest crashes correlated with MSR access handling.

Monitoring Recommendations

  • Track kernel package versions and patch status via configuration management inventory.
  • Monitor guest workloads for abnormal MSR-related faults or unexpected guest termination events.
  • Subscribe to distribution security feeds (RHSA, SUSE-SU, USN, DSA) for backport advisories referencing CVE-2026-98716.

How to Mitigate CVE-2026-98716

Immediate Actions Required

  • Apply the vendor kernel update for your distribution that incorporates the upstream fix.
  • Prioritize AMD SVM hosts that run nested virtualization workloads.
  • Validate the kernel version on each hypervisor after patching and reboot to ensure the fixed code path is active.

Patch Information

The fix is published as a series of upstream stable commits. Review and apply the kernel branch update that corresponds to your deployment:

Workarounds

  • Disable nested virtualization on AMD SVM hosts where it is not required by unloading or reloading kvm_amd with nested=0.
  • Restrict guest creation privileges to trusted operators until patched kernels are deployed.
  • Where feasible, migrate sensitive workloads to patched hosts before enabling nested guests.
bash
# Verify running kernel and nested SVM state
uname -r
cat /sys/module/kvm_amd/parameters/nested

# Temporarily disable nested virtualization on AMD SVM hosts
sudo modprobe -r kvm_amd
sudo modprobe kvm_amd nested=0

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.