В ядре Linux была устранена следующая уязвимость: drm: fix race between partial drm_dev_register() failure and ioctl If drm_dev_register() failures after registering a minor (например, render minor registered, primary minor failure), пользовательское пространство могло открыть первый минор и войти в критическую секцию drm_dev_enter(). Поскольку флаг отключенного устройства никогда не был установлен, ioctl продолжается, в то время как путь ошибки разрушает ресурсы устройства. Исправьте это, введя drm_dev_synchronize_unplug(), который устанавливает отключенный флаг и ждет барьер SRCU, гарантируя, что все критические разделы в полете drm_dev_enter() завершены, прежде чем начнется очистка; вызовите его на пути ошибки drm_dev_register().
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: drm: fix race between partial drm_dev_register() failure and ioctl If drm_dev_register() fails after registering a minor (e.g. render minor registered, primary minor fails), userspace could have opened the first minor and entered a drm_dev_enter() critical section. Since the unplugged flag was never set, the ioctl proceeds while the error path tears down device resources. Fix this by introducing drm_dev_synchronize_unplug(), which sets the unplugged flag and waits for the SRCU barrier, ensuring all in-flight drm_dev_enter() critical sections complete before cleanup proceeds; call it on the error path of drm_dev_register().
Характеристики атаки
Последствия
Строка CVSS v3.1