В ядре Linux устранена следующая уязвимость: powerpc/xive: распространять ошибки IPI init для предотвращения сбоев use-after-free When xive_init_ipis() (например, irq_domain_alloc_irqs()), путь ошибки освобождает глобальный массив xive_ipis. Однако xive_smp_probe() ранее проигнорировал этот сбой и начал называть xive_setup_cpu_ipi(), что лишает ссылки уже освободившийся указатель xive_ipis — use-after-free. Теперь, когда xive_smp_probe () возвращает int (предыдущий патч), распространите ошибку из xive_init_ipis () и xive_setup_cpu_ipi () через xive_smp_probe ().
Проверьте возвращаемое значение как в pnv_smp_probe(), так и в pSeries_smp_probe(), чтобы IPI был полностью прерван при сбое, избегая use-after-free.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: powerpc/xive: propagate IPI init errors to prevent use-after-free When xive_init_ipis() fails (e.g. irq_domain_alloc_irqs() fails), the error path frees the global xive_ipis array. However, xive_smp_probe() previously ignored this failure and proceeded to call xive_setup_cpu_ipi(), which dereferences the already-freed xive_ipis pointer -- a use-after-free. Now that xive_smp_probe() returns int (previous patch), propagate the error from xive_init_ipis() and xive_setup_cpu_ipi() through xive_smp_probe(). Check the return value in both pnv_smp_probe() and pSeries_smp_probe() so that IPI setup is aborted cleanly on failure, avoiding the use-after-free.
Характеристики атаки
Последствия
Строка CVSS v3.1