В ядре Linux устранена следующая уязвимость: KVM: arm64: Correctly handle end of VA space TLBI invalidation Our TLB invalidation Код VA основан на сравнении двух диапазонов, один из которых определяется TLB, а другой — инструкцией TLBI. Каждый диапазон определяется началом и размером. Однако способ сравнения не учитывает опрокидывание адреса, поскольку он сравнивает адрес (базовый + размер).
Это работает хорошо, пока это выражение не представляет последнюю страницу / блок в пространстве TTBR1 VA, так как в результате получается большой жир 0. И неудавшаяся отмена TLB. Перепишите сравнение таким образом, который невосприимчив к переносу адреса (сделав конечный адрес инклюзивным, а не эксклюзивным), и переместите его в общий помощник, который используется как VA, так и IPA, как предложено Hyunwoo Kim (хотя версия IPA не страдала от этой конкретной проблемы, очевидно).
Показать оригинальное описание (EN)
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).
Характеристики атаки
Последствия
Строка CVSS v3.1