Ad

CVE-2026-99488

NONE EPSS 0.22%
Обновлено 23 ноября 2026
Linux
Параметр Значение
Поставщик Linux
Публичный эксплойт Нет

In the Linux kernel, the following vulnerability has been resolved: klist: avoid accesses after waking klist_remove() klist_remove() waits until a node is unreferenced so that its caller can free the containing object. klist_release() currently publishes waiter->woken and wakes the waiter before its final accesses to the waiter and node. klist_remove() can then return, allowing its stack waiter and the containing object to be freed or reused while klist_release() is still running. В частности, bus_remove_driver() может освободить drv->p, в то время как __device_attach() ходит по тому же списку шин с bus_for_each_drv(). В системе arm64 Cortex-A72 неисправленное ядро 7.2.0-rc3 с CONFIG_PREEMPT_RT=y и CONFIG_KASAN=y воспроизводило ошибку через путь in-tree I2C/at24. KASAN сообщил, что use-after-free в klist_dec_and_del() достиг от klist_next()/bus_for_each_drv(), в то время как at24 был незарегистрирован.

Очистите n_klist и возьмите ссылку на задачу перед публикацией. Используйте release/acquire accesses для этой публикации и разбудите ссылочную задачу. Ссылка на задачу поддерживает работу официанта, если он возвращается и выходит до wake_up_process().

Показать оригинальное описание (EN)

In the Linux kernel, the following vulnerability has been resolved: klist: avoid accesses after waking klist_remove() klist_remove() waits until a node is unreferenced so that its caller can free the containing object. klist_release() currently publishes waiter->woken and wakes the waiter before its final accesses to the waiter and node. klist_remove() can then return, allowing its stack waiter and the containing object to be freed or reused while klist_release() is still running. In particular, bus_remove_driver() can free drv->p while __device_attach() walks the same bus klist with bus_for_each_drv(). On an arm64 Cortex-A72 system, an unpatched 7.2.0-rc3 kernel with CONFIG_PREEMPT_RT=y and CONFIG_KASAN=y reproduced the bug through the in-tree I2C/at24 path. KASAN reported a use-after-free in klist_dec_and_del() reached from klist_next()/bus_for_each_drv() while at24 was being unregistered. Clear n_klist and take a task reference before publishing woken. Use release/acquire accesses for that publication and wake the referenced task. The task reference keeps the waiter task alive if it returns and exits before wake_up_process().