# CVE-2026-46317: KVM: arm64: Reassign nested_mmus array behind mmu_lock

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-06-09T11:52:30.333Z
- Modified: 2026-10-19T20:18:42.400Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- linux linux_kernel: from 6.11 before 6.18.35; from 6.19 before 7.0.12; 7.1

## References

- <https://git.kernel.org/stable/c/918450ad6010df6ecd2efde12a1409e011da22d6> (patch)
- <https://git.kernel.org/stable/c/4424dbcb06d68e34e51c019a5781a7dc00731971> (patch)
- <https://git.kernel.org/stable/c/70543358fa08e0f7cebc3447c3b70fe97ad7aaa8> (patch)

## Sources

- CVE List: [CVE-2026-46317](https://www.cve.org/CVERecord?id=CVE-2026-46317), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-46317](https://nvd.nist.gov/vuln/detail/CVE-2026-46317), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-46317 · Whole record: https://cve.day/CVE-2026-46317.json · Rebuilt by cve.day 2026-11-25T22:59:24.096Z
