CVE-2026-99082
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
23/10/2026
Last modified:
30/10/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
KVM: x86: Use active memslots for the per-vCPU MMIO cache<br />
<br />
KVM tags the per-vCPU MMIO cache with a memslot generation so that a<br />
memslot update invalidates cached MMIO information. Both the fill and<br />
validation paths use kvm_memslots(), which unconditionally selects address<br />
space 0, even when the vCPU is running in SMM and using address space 1.<br />
<br />
Commit 56f17dd3fbc4 ("kvm: x86: fix stale mmio cache bug") added the<br />
memslot generation to the cache key so that a memslot update could not<br />
leave a stale entry valid. When commit 699023e23965 ("KVM: x86: add SMM<br />
to the MMU role, support SMRAM address space") added the SMM address space,<br />
these helpers were not converted to use the active memslots.<br />
<br />
Consequently, an update to the SMM memslots can leave an entry from the old<br />
SMM address space apparently valid after the vCPU returns to the normal<br />
address space. A guest can then cause an access to valid RAM at the same<br />
GFN to be returned to userspace as KVM_EXIT_MMIO.<br />
<br />
Completing that exit through the VMM&#39;s RAM address space writes the backing<br />
page without going through KVM&#39;s write-tracking path. If the page backs a<br />
nested EPT table, KVM can continue using shadow translations derived from<br />
the old contents. The WARN_ON_ONCE() in kvm_mmu_write_protect_fault()<br />
catches this invalid cache and memslot combination.<br />
<br />
Use the vCPU&#39;s active memslots when caching and validating the entry.<br />
Memslot generations are unique across address spaces, so the generation<br />
also distinguishes the normal and SMM views. This matches the MMIO SPTE<br />
cache, which already uses kvm_vcpu_memslots().<br />
<br />
On an unpatched current-mainline kernel, a regression test that fills the<br />
cache in SMM and updates only the SMM memslots fails the intended RAM write<br />
and triggers the kvm_mmu_write_protect_fault() warning. With this change,<br />
the same test completes the RAM write without a warning. The x86/smm_test,<br />
set_memory_region_test, and memslot_modification_stress_test selftests also<br />
pass.
Impact
Base Score 3.x
8.80
Severity 3.x
HIGH
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/1c77d33d85786d36e56ca1b580fb55347fd65b47
- https://git.kernel.org/stable/c/2566780c684c9c21241d409d790087c73070f312
- https://git.kernel.org/stable/c/445e3369ac8cc1b18aedc8e8f977c68a0a326fa9
- https://git.kernel.org/stable/c/485a5286675b15b00ee850d90eaa178cc588445f
- https://git.kernel.org/stable/c/7fd4e64f4bbc8c35ae8f0d2a1fb5b77a76d5b4fd
- https://git.kernel.org/stable/c/a63f79d9da9468952396af73e1e53330845cf876
- https://git.kernel.org/stable/c/b3e6212dea2e4328a841ceb37f377583176dc735
- https://git.kernel.org/stable/c/e792a9ace39d2812a5b342a1987186c7bc653204


