В ядре Linux устранена следующая уязвимость:
irqchip/imgpdc: исправлена утечка ресурсов, добавлена очистка отсутствующего связанного обработчика при удалении. Драйвер выделяет общие чипы домена, используя
irq_alloc_domain_generic_chips() во время проверки и устанавливает цепочку
обработчики с помощью irq_set_chained_handler_and_data(). Однако на драйвере
удаление, общие чипы не освобождаются, а связанные обработчики
не удален.
Общие чипы остаются в глобальном gc_list, и позже к ним могут получить доступ
общий чип прерываний приостанавливает, возобновляет или завершает обратные вызовы после
драйвер был удален, что потенциально может привести к использованию после освобождения и
сбой ядра. Связанные обработчики, установленные в зонде для периферийных и
Прерывания syswake также остаются висящими, что может привести к ложным
прерывает доступ к освобожденной памяти. Устраните эти проблемы:
- Установка флага IRQ_DOMAIN_FLAG_DESTROY_GC в домене->флаги, чтобы
основной код автоматически удаляет общие чипы, когда irq_domain_remove()
называется
— Очистка всех связанных обработчиков с NULL в pdc_intc_remove().
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: irqchip/imgpdc: Fix resource leak, add missing chained handler cleanup on remove The driver allocates domain generic chips using irq_alloc_domain_generic_chips() during probe and sets up chained handlers using irq_set_chained_handler_and_data(). However, on driver removal, the generic chips are not freed and the chained handlers are not removed. The generic chips remain on the global gc_list and may later be accessed by generic interrupt chip suspend, resume, or shutdown callbacks after the driver has been removed, potentially resulting in a use-after-free and kernel crash. The chained handlers that were installed in probe for peripheral and syswake interrupts are also left dangling, which can lead to spurious interrupts accessing freed memory. Fix these issues by: - Setting IRQ_DOMAIN_FLAG_DESTROY_GC flag in domain->flags, so the core code automatically removes generic chips when irq_domain_remove() is called - Clearing all chained handlers with NULL in pdc_intc_remove()
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 7
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
3.12
|
5.10.260
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.11
|
5.15.211
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
6.1.177
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.144
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.95
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.38
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.1.3
|