Skip to contentSkip to conversation

CVE-2026-89918: KVM: arm64: Correctly handle end of VA space TLBI invalidation

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 16

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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).

The Linux kernel CVE team has assigned CVE-2026-89918 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.16 with commit 4ffa72ad8f37e73bbb6c0baa88557bcb4fd39929 and fixed in 6.18.51 with commit ce447651a52ec077694172af10c4fffb11f56c43
	Issue introduced in 6.16 with commit 4ffa72ad8f37e73bbb6c0baa88557bcb4fd39929 and fixed in 7.2.5 with commit c624731ca6fe59ad8909ce4108301aa7560a91d6
	Issue introduced in 6.16 with commit 4ffa72ad8f37e73bbb6c0baa88557bcb4fd39929 and fixed in 7.3-rc1 with commit 34af2c3e31f91a739dc175459fdbd99ed952b457

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-89918

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:

	arch/arm64/kvm/nested.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/ce447651a52ec077694172af10c4fffb11f56c43
	https://git.kernel.org/stable/c/c624731ca6fe59ad8909ce4108301aa7560a91d6
	https://git.kernel.org/stable/c/34af2c3e31f91a739dc175459fdbd99ed952b457