KernelScan.io

HIGH Introduced in 6.16

kvm VNCR Race

CVE-2026-89917

CVSS 7.8 / 10.0 KernelScan AI

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

01

In the Linux kernel, the following vulnerability has been resolved: KVM: arm64: Handle VNCR TLB invalidation race with vcpu_put() VNCR unmapping While VNCR TLB invalidation always occurs under the MMU lock, vcpu_put() doesn't, while it unmaps the VNCR page. The problem is that the invalidation evaluates vncr_tlb::cpu to decide whether an unmapping needs to take place (cpu != -1) before performing it. On the other hand, this_cpu_reset_vncr_fixmap() unconditionally unmaps if L1_VNCR_MAPPED is set. These two obviously can race, with a TOCTOU pattern on the TLBI path, and a BUG_ON() on the vcpu_put() path. And the two can end-up calling vncr_fixmap(-1), with extra lethal effects. Move the reset of vncr_tlb::cpu to -1 to a common function, and make this update atomic so that only a single thread can reset the field and perform the corresponding unmap. The vcpu_put() still need to unconditionally unmap the current VNCR to close another ugly race. Finally, the assignment of vncr_tlb::cpu is moved to be kept in sync with the actual mapping, similar to L1_VNCR_MAPPED being set.

02

Engine v0.6.0

Risk summary

A race condition in KVM arm64 nested virtualization's VNCR TLB invalidation path allows a guest VM to trigger concurrent unmapping operations that corrupt kernel fixmap state, potentially leading to kernel memory corruption. The vulnerability requires a guest running on an arm64 host with nested virtualization enabled, making it exploitable from within a VM context.

AffectedKVM arm64 nested virtualization

Vulnerability analysis

A race condition exists between nested virtualization TLB invalidation and vCPU cleanup, where one path checks whether a mapping is active before removing it while the other unmaps unconditionally. This creates a window where both can attempt to tear down the same mapping concurrently, leading to a kernel panic or invalid calls into the mapping code that corrupt kernel memory state. The fix consolidates the unmap logic so only one thread can claim and perform the teardown, and ensures cleanup always removes the current mapping to avoid leaving stale entries behind. A guest VM on an arm64 host with nested virtualization enabled can trigger this.

03

BranchIntroducedFixed inPatch commit
6.186.166.18.525cbd8761d001
7.26.167.2.59065c1261f8a
mainline6.167.338640bc32be3