В ядре Linux устранена следующая уязвимость:
kho: пропустить KHO для сбоя ядра
kho_fill_kimage() безоговорочно заполняет кимаге KHO
метаданные для каждого типа изображения Kexec. Когда образ представляет собой аварийное ядро,
это может быть проблематично, поскольку аварийное ядро может работать в небольшом зарезервированном пространстве.
область и области царапин KHO могут находиться за ее пределами. Затем ядро аварийно завершает работу во время kho_memory_init(), когда оно
пробует phys_to_virt() по адресу KHO FDT:
Невозможно обработать запрос на подкачку ядра по виртуальному адресу xxxxxxxxx.
...
fdt_offset_ptr+...
fdt_check_node_offset_+...
fdt_first_property_offset+...
fdt_get_property_namelen_+...
fdt_getprop+...
хо_memory_init+...
мм_core_init+...
start_kernel+...
kho_locate_mem_hole() уже пропускает логику KHO для KEXEC_TYPE_CRASH
изображений, но в kho_fill_kimage() отсутствовал тот же охранник.
Как
kho_fill_kimage() — это единственная точка, которая заполняет image->kho.fdt.
и image->kho.scratch, исправления здесь достаточно для обоих арм64
и x86, так как путь FDT и boot_params выручают, когда эти
поля не заданы.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: kho: skip KHO for crash kernel kho_fill_kimage() unconditionally populates the kimage with KHO metadata for every kexec image type. When the image is a crash kernel, this can be problematic as the crash kernel can run in a small reserved region and the KHO scratch areas can sit outside it. The crash kernel then faults during kho_memory_init() when it tries phys_to_virt() on the KHO FDT address: Unable to handle kernel paging request at virtual address xxxxxxxx ... fdt_offset_ptr+... fdt_check_node_offset_+... fdt_first_property_offset+... fdt_get_property_namelen_+... fdt_getprop+... kho_memory_init+... mm_core_init+... start_kernel+... kho_locate_mem_hole() already skips KHO logic for KEXEC_TYPE_CRASH images, but kho_fill_kimage() was missing the same guard. As kho_fill_kimage() is the single point that populates image->kho.fdt and image->kho.scratch, fixing it here is sufficient for both arm64 and x86 as the FDT and boot_params path are bailing out when these fields are unset.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 4
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.11
|
|
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:*:*:*:*:*:*
|
— | — |