В ядре Linux устранена следующая уязвимость:
iommu/s390: исправлено повреждение памяти при использовании идентификационного домена.
zpci_get_iommu_ctrs() возвращает информацию счетчика, которая будет сообщена как часть
статистики устройств; эти счетчики хранятся как часть s390_domain. Проблема, однако, в том, что домен идентификации не поддерживается
s390_domain, поэтому преобразование через to_s390_domain() дает неверный адрес.
изначально он равен нулю и читается по требованию позже через чтение sysfs. Эти счетчики не нужны для домена удостоверений; просто верните NULL
в этом случае.
Эта проблема была обнаружена через KASAN с отчетами следующего вида:
ОШИБКА: KASAN: глобальный выход за границы в zpci_fmb_enable_device
при использовании идентификационного домена для устройства на s390.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: iommu/s390: Fix memory corruption when using identity domain zpci_get_iommu_ctrs() returns counter information to be reported as part of device statistics; these counters are stored as part of the s390_domain. The problem, however, is that the identity domain is not backed by an s390_domain and so the conversion via to_s390_domain() yields a bad address that is zero'd initially and read on-demand later via a sysfs read. These counters aren't necessary for the identity domain; just return NULL in this case. This issue was discovered via KASAN with reports that look like: BUG: KASAN: global-out-of-bounds in zpci_fmb_enable_device when using the identity domain for a device on s390.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.15
|
6.16.9
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.17:rc3:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.17:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.17:rc5:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.17:rc6:*:*:*:*:*:*
|
— | — |