В ядре Linux устранена следующая уязвимость:
mei: bus: доступ к mei_device в разделе device_lock при очистке
Исправьте пару проблем в mei_cl_bus_dev_release():
mei_cl_flush_queues() работает без блокировки.
доступ к bus->file_list после того, как mei_dev_bus_put(bus) может стать
use-after-free, если это была последняя ссылка на шину. Защитите очистку очередей и обход WARN с помощью блокировки устройства.
чтобы избежать проблем одновременного доступа. Переместите обход WARN перед mei_dev_bus_put(bus).
В этом файле используется имя переменной шины для mei_device, отрегулируйте
код mei_cl_bus_dev_release() также использует переменную шины.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: mei: bus: access mei_device under device_lock on cleanup Fix couple of problems in mei_cl_bus_dev_release(): mei_cl_flush_queues() is running without lock. bus->file_list access after mei_dev_bus_put(bus) can become a use-after-free if this was the last reference to bus. Protect queues cleanup and WARN traversal by device lock there to avoid the concurrent access problems. Move WARN traversal before mei_dev_bus_put(bus). This file uses bus variable name for mei_device, adjust code of mei_cl_bus_dev_release() to use bus variable too.