В ядре Linux устранена следующая уязвимость:
KVM:arm64:vgic-its: Удалить ссылку на кэш перевода только для стертой записи.
vgic_its_invalidate_cache() просматривает кэш трансляции для каждого ITS с помощью
xa_for_each() и удаляет ссылку на кэш для каждой записи с помощью
vgic_put_irq(). Однако он помещает повторяющийся указатель, а не
значение, возвращаемое функцией xa_erase(). Функция вызывается из контекстов, которые не исключают друг друга:
Обработчики команд ITS хранят его_блокировку, путь записи GITS_CTLR —
cmd_lock и путь, который очищает EnableLPI в файле распространителя.
GICR_CTLR не содержит ни того, ни другого.
Два или более из них могут истощать один и тот же кэш.
одновременно, и если каждый из них наблюдает одну и ту же запись, стирает ее, а затем
По его словам, единственная ссылка, хранящаяся в кеше на этой записи, удаляется
более одного раза. Затем запись можно освободить, пока ITE все еще отображает ее.
xa_erase() является атомарным и возвращает предыдущую запись, поэтому помещайте только запись
что этот контекст фактически удален. Ссылка на кэш затем удаляется.
ровно один раз для каждой записи, даже если аннулирование выполняется одновременно, и
поведение не меняется, когда работает только один контекст.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: KVM: arm64: vgic-its: Drop the translation cache reference only for the erased entry vgic_its_invalidate_cache() walks the per-ITS translation cache with xa_for_each() and drops the cache's reference on each entry with vgic_put_irq(). It puts the iterated pointer, though, rather than the value returned by xa_erase(). The function is called from contexts that do not exclude one another: the ITS command handlers hold its_lock, the GITS_CTLR write path holds cmd_lock, and the path that clears EnableLPIs in a redistributor's GICR_CTLR holds neither. Two or more of them can drain the same cache concurrently, and if each one observes the same entry, erases it and then puts it, the single reference the cache holds on that entry is dropped more than once. The entry can then be freed while an ITE still maps it. xa_erase() is atomic and returns the previous entry, so put only the entry that this context actually removed. The cache reference is then dropped exactly once per entry even when the invalidations run concurrently, and the behavior is unchanged when only one context runs.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 9
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.10
|
6.12.93
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.35
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.12
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc6:*:*:*:*:*:*
|
— | — |