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).
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
4ffa72ad8f37e73bbb6c0baa88557bcb4fd39929 to < ce447651a52ec077694172af10c4fffb11f56c43affected4ffa72ad8f37e73bbb6c0baa88557bcb4fd39929 to < c624731ca6fe59ad8909ce4108301aa7560a91d6affected4ffa72ad8f37e73bbb6c0baa88557bcb4fd39929 to < 34af2c3e31f91a739dc175459fdbd99ed952b457affected
Linux Linux
Default version status: affected
6.16affected0 to < 6.16unaffected6.18.51 to ≤ 6.18.*unaffected7.2.5 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected