В ядре Linux устранена следующая уязвимость:
clocksource/drivers/nxp-pit: исправлена утечка IRQ на пути ошибки cpuhp_setup_state. Когда cpuhp_setup_state завершается с ошибкой после того, какpit_lockevent_per_cpu_init
успешно вызван request_irq, обработка ошибок переходит непосредственно к
out_pit_clocksource_unregister без освобождения зарегистрированного IRQ. При этом происходит утечка строки IRQ, и, поскольку за ней следует kfree(pit), остается
висячий указатель, зарегистрированный как dev_id обработчика прерываний,
потенциально может привести к использованию после освобождения, если после этого сработает IRQ.
Исправьте это, вызвавpit_lockevent_per_cpu_exit, чтобы правильно освободить IRQ перед попаданием в существующую цепочку очистки.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: clocksource/drivers/nxp-pit: Fix IRQ leak on cpuhp_setup_state error path When cpuhp_setup_state fails after pit_clockevent_per_cpu_init has successfully called request_irq, the error handling jumps directly to out_pit_clocksource_unregister without freeing the registered IRQ. This leaks the IRQ line and, since kfree(pit) follows, leaves a dangling pointer registered as the interrupt handler's dev_id, potentially leading to a use-after-free if the IRQ fires afterwards. Fix it by calling pit_clockevent_per_cpu_exit to properly release the IRQ before falling through to the existing cleanup chain.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 3
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.18
|
6.18.50
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.18
|
7.2.4
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.18
|
7.3-rc1
|