HIGH Introduced in 4.16
kvm SVM MSRBitmap Bypass
CVE-2026-98716
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
In the Linux kernel, the following vulnerability has been resolved: KVM: SVM: Use the active VMCB's MSR bitmap when checking if MSR is intercepted Use the MSR permission bitmap of the active VMCB instead of assuming that KVM is always using vmcb02's bitmap when L2 is active, as KVM uses msrpm02 if and only if L1 wants to intercept MSR accesses, i.e. if and only if KVM needs to merge msprm01 with msrpm12. Don't bother tracking the virtual address of the bitmap that's being used, as __va() is cheap on x86, and caching the virtual address would introduce yet another source of potentially stale information.
02KernelScan AI Analysis
Risk summary
A malicious nested guest (L2) on AMD SVM can bypass MSR interception controls when the L1 guest does not intercept MSRs, potentially allowing unauthorized modification of critical model-specific registers such as SPEC_CTRL. This affects systems running KVM with nested virtualization on AMD hardware and could lead to host kernel compromise or security control bypass.
Vulnerability analysis
In AMD's nested virtualization support, KVM incorrectly assumed it should always check the L02 MSR permission bitmap (msrpm02) when an L2 guest accesses an MSR. In reality, KVM only uses the merged msrpm02 bitmap when the L1 guest requests MSR interception; otherwise the hardware uses the L1 bitmap directly. By checking the wrong bitmap, KVM could fail to intercept MSR writes that L1 intended to trap, allowing L2 to modify sensitive registers like SPEC_CTRL without hypervisor involvement. The fix makes KVM consult the active VMCB's MSR bitmap pointer, which always reflects the bitmap the hardware will actually use, eliminating the incorrect assumption.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 3.16 | 3.16.57 | 3.17 | 001c78bc6438 |
| 4.4 | 4.4.168 | 4.5 | 552a110c403f |
| 5.10 | 4.16 | 5.10.273 | 0e79ebf6f92a |
| 5.15 | 4.16 | 5.15.224 | 84da7a0e9220 |
| 6.1 | 4.16 | 6.1.191 | 74836ae4785b |
| 6.12 | 4.16 | 6.12.113 | 55865b3ae037 |
| 6.18 | 4.16 | 6.18.56 | 9e06bbb9ade7 |
| 6.6 | 4.16 | 6.6.160 | 318ef696fa3c |
| 7.2 | 4.16 | 7.2.10 | — |
| mainline | 4.16 | 7.3 | — |
| cip/6.12 | 4.16 | 6.12.114-cip34 | 74836ae4785b |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.114-cip34 |
| cip/6.1 | Affected — no CIP fix yet (latest 6.1.190-cip62) |
| cip/6.1-rt | Affected — no CIP fix yet (latest 6.1.189-cip61-rt32) |
| cip/5.10 | Affected — no CIP fix yet (latest 5.10.272-cip79) |
| cip/5.10-rt | Affected — no CIP fix yet (latest 5.10.272-cip79-rt35) |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip136) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip136-rt50) |
| cip/4.4 | Affected — no CIP fix yet (latest 4.4.302-cip115) |
| cip/4.4-rt | Affected — no CIP fix yet (latest 4.4.302-cip115-rt63) |