8.8high
KVM: arm64: Reassign nested_mmus array behind mmu_lock
- Severity
- 8.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.13% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: KVM: arm64: Reassign nested_mmus array behind mmu_lock kvm->arch.nested_mmus[] is walked under kvm->mmu_lock, including from the MMU notifier path (kvm_unmap_gfn_range() -> kvm_nested_s2_unmap()), which can run at any time. kvm_vcpu_init_nested() reallocates the array and frees the old buffer while holding only kvm->arch.config_lock, so such a walker can reference the freed array. Allocate the new array outside of mmu_lock, as the allocation can sleep. Under the lock, copy the existing entries, fix up the back pointers and reassign the array. Free the old buffer after dropping the lock, as kvfree() can sleep as well.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 4f128f8e1aaac189f83d0f828bcdb2986d8d2e51 before 918450ad6010df6ecd2efde12a1409e011da22d6, from 4f128f8e1aaac189f83d0f828bcdb2986d8d2e51 before 4424dbcb06d68e34e51c019a5781a7dc00731971, from 4f128f8e1aaac189f83d0f828bcdb2986d8d2e51 before 70543358fa08e0f7cebc3447c3b70fe97ad7aaa8, 6.11 Not affected: before 6.11, from 6.18.35 up to 6.18.*, from 7.0.12 up to 7.0.*, from 7.1 up to * | CVE List |
| linux linux_kernel | from 6.11 before 6.18.35, from 6.19 before 7.0.12, 7.1 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: KVM: arm64: Reassign nested_mmus array behind mmu_lock kvm->arch.nested_mmus[] is walked under kvm->mmu_lock, including from the MMU notifier path (kvm_unmap_gfn_range() -> kvm_nested_s2_unmap()), which can run at any time. kvm_vcpu_init_nested() reallocates the array and frees the old buffer while holding only kvm->arch.config_lock, so such a walker can reference the freed array. Allocate the new array outside of mmu_lock, as the allocation can sleep. Under the lock, copy the existing entries, fix up the back pointers and reassign the array. Free the old buffer after dropping the lock, as kvfree() can sleep as well.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: KVM: arm64: Reasignar el array nested_mmus detrás de mmu_lock kvm->arch.nested_mmus[] es recorrido bajo kvm->mmu_lock, incluyendo desde la ruta del notificador de MMU (kvm_unmap_gfn_range() -> kvm_nested_s2_unmap()), que puede ejecutarse en cualquier momento. kvm_vcpu_init_nested() reasigna el array y libera el búfer antiguo mientras mantiene solo kvm->arch.config_lock, por lo que dicho recorredor puede referenciar el array liberado. Asignar el nuevo array fuera de mmu_lock, ya que la asignación puede dormir. Bajo el bloqueo, copiar las entradas existentes, corregir los punteros inversos y reasignar el array. Liberar el búfer antiguo después de soltar el bloqueo, ya que kvfree() también puede dormir.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-46317 changed 2026-10-19 | CVE Terms of Use |
| NVD | CVE-2026-46317 changed 2026-10-19 | Public domain |