В ядре Linux устранена следующая уязвимость:
bus: fsl-mc-bus: исправлено использование KASAN после освобождения в fsl_mc_bus_remove()
В fsl_mc_bus_remove() mc->root_mc_bus_dev->mc_io передается
fsl_destroy_mc_io(). Однако mc->root_mc_bus_dev уже освобожден.
fsl_mc_device_remove(). Затем обратитесь к mc->root_mc_bus_dev->mc_io.
запускает использование KASAN после освобождения.
Чтобы избежать использования после бесплатного использования, сохраните
ссылку на mc->root_mc_bus_dev->mc_io в локальной переменной и перейдите к
fsl_destroy_mc_io(). Этот патч нуждается в доработке, чтобы его можно было применять к ядрам старше версии 5.15.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: bus: fsl-mc-bus: fix KASAN use-after-free in fsl_mc_bus_remove() In fsl_mc_bus_remove(), mc->root_mc_bus_dev->mc_io is passed to fsl_destroy_mc_io(). However, mc->root_mc_bus_dev is already freed in fsl_mc_device_remove(). Then reference to mc->root_mc_bus_dev->mc_io triggers KASAN use-after-free. To avoid the use-after-free, keep the reference to mc->root_mc_bus_dev->mc_io in a local variable and pass to fsl_destroy_mc_io(). This patch needs rework to apply to kernels older than v5.15.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 5
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.8
|
5.10.248
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.11
|
5.15.49
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
5.18.6
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:5.19:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:5.19:rc2:*:*:*:*:*:*
|
— | — |