В ядре Linux устранена следующая уязвимость:
irqchip/irq-riscv-imsic-early: исправлена утечка fwnode при сбое настройки состояния.
imsic_early_acpi_init() выделяет узел прошивки перед настройкой
Состояние IMSIC. Если imsic_setup_state() завершается неудачно, функция возвращается без
освобождение выделенного fwnode.
Освободите fwnode и очистите глобальный указатель на этом пути ошибки, соответствующий
очистка уже выполнена, когда imsic_early_probe() завершается сбоем.
[tglx: используйте общий путь очистки вместо копирования кода]
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: irqchip/irq-riscv-imsic-early: Fix fwnode leak on state setup failure imsic_early_acpi_init() allocates a firmware node before setting up the IMSIC state. If imsic_setup_state() fails, the function returns without freeing the allocated fwnode. Free the fwnode and clear the global pointer on this error path, matching the cleanup already done when imsic_early_probe() fails. [ tglx: Use a common cleanup path instead of copying code around ]