CVE-2026-89918 PUBLISHED

KVM: arm64: Correctly handle end of VA space TLBI invalidation

Assigner: Linux
Reserved: 11.09.2026 Published: 16.09.2026 Updated: 16.09.2026

In the Linux kernel, the following vulnerability has been resolved:

KVM: arm64: Correctly handle end of VA space TLBI invalidation

Our TLB invalidation by VA code is based on comparing two ranges, one defined by the TLB, and one defined by the TLBI instruction.

Each range is defined by a start and a size. However, the way the comparison is done doesn't account for address rollover, as it compares an address with (base + size). This works nicely until this expression represent the last page/block in the TTBR1 VA space, as the result is a big fat 0. And a failed TLB invalidation.

Rewrite the comparison in a way that is immune to the address rollover (making the end address inclusive instead of exclusive), and move this into a common helper that is used by both VA and IPA invalidations, as suggested by Hyunwoo Kim (although the IPA version didn't suffer from this particular problem, obviously).

Metrics

CVSS Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS Score: 9.3

AV:L - The bug is reached when an arm64 nested-KVM L1 hypervisor executes EL2/EL1 TLBI-by-VA instructions that trap into KVM_RUN and run handle_tlbi_el2()/handle_tlbi_el1() → kvm_handle_s1e2_tlbi() → invalidate_vncr_va(); no network, adjacent-radio, or physical-device path reaches this VNCR pseudo-TLB comparison. AC:L - An attacker controlling an L1 nested hypervisor can place VNCR_EL2 on the last TTBR1 page or issue a VA-scoped TLBI for that range so base+size wraps to 0, causing a deterministic missed invalidation; nested virt on arm64 cloud hosts is an attacker-selectable deployment, not an uncontrollable condition. PR:N - Exploitation requires no host root or init-namespace capabilities beyond running hypervisor code in a tenant KVM guest on an arm64 host with nested virtualization enabled; the attacker operates entirely from within their assigned VM, consistent with other arm64 KVM nested-virt CVE scoring. UI:N - No victim user or administrator action is required beyond the attacker operating their own nested-virtualization workload; VNCR placement, stage-1 remaps, and TLBI-by-VA issuance are fully attacker-driven from within the guest. S:C - Failed VNCR pseudo-TLB invalidation leaves the host kernel's per-CPU fixmap aliasing a stale guest physical page for nested EL2 register state, so the hypervisor reads and writes the wrong memory after the guest remaps that VA, crossing the guest-to-hypervisor security boundary. C:H - A missed invalidation keeps a host PAGE_KERNEL fixmap to the old HPA after the L1 remaps VNCR_EL2, so KVM continues to read nested EL2 register state from a guest page that should no longer back VNCR, disclosing hypervisor-viewed contents across the stale translation. I:H - The same stale writable fixmap lets the host write nested EL2 register values into a guest page the L1 has already remapped or reused, and lets the guest inject attacker-controlled EL2 sysreg contents through the old page while KVM trusts it as VNCR, corrupting hypervisor-emulated nested state. A:H - Stale VNCR translations leave host KVM and FEAT_NV2 hardware using inconsistent nested EL2 state and the wrong guest page, which can crash or livelock the host nested-virt paths and deny service to co-resident VMs on the hypervisor.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 4ffa72ad8f37e73bbb6c0baa88557bcb4fd39929 to ce447651a52ec077694172af10c4fffb11f56c43 (excl.)
  • affected from 4ffa72ad8f37e73bbb6c0baa88557bcb4fd39929 to c624731ca6fe59ad8909ce4108301aa7560a91d6 (excl.)
  • affected from 4ffa72ad8f37e73bbb6c0baa88557bcb4fd39929 to 34af2c3e31f91a739dc175459fdbd99ed952b457 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 6.16 is affected
  • unaffected from 0 to 6.16 (excl.)
  • unaffected from 6.18.51 to 6.18.* (incl.)
  • unaffected from 7.2.5 to 7.2.* (incl.)
  • unaffected from 7.3-rc1 to * (incl.)

References