Instituto Nacional de ciberseguridad. Sección Incibe
Instituto Nacional de Ciberseguridad. Sección INCIBE-CERT

CVE-2026-99082

Gravedad CVSS v3.1:
ALTA
Tipo:
No Disponible / Otro tipo
Fecha de publicación:
23/10/2026
Última modificación:
30/10/2026

Descripción

*** Pendiente de traducción *** 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&amp;#39;s RAM address space writes the backing<br /> page without going through KVM&amp;#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&amp;#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.