В ядре Linux устранена следующая уязвимость: drm/panthor: Гонка Fix TOCTOU между GROUP_REGISTERED check и terma panthor_group_destroy() проверяет отметку GROUP_REGISTERED, а затем вызывает xa_erase(), не удерживая блокировку xarray по обоим. Если ручка разрушается другим потоком между ними, и одновременный GROUP_CREATE повторно использует освобожденный ID, первый уничтожает и освобождает новую, все еще инициализирующую группу, что приводит к use-after-free в panthor_group_create (). Выполните проверку метки и стирание атомарно под xa_lock().
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: drm/panthor: Fix TOCTOU race between GROUP_REGISTERED check and erase panthor_group_destroy() checks the GROUP_REGISTERED mark and then calls xa_erase() without holding the xarray lock across both. If the handle is destroyed by another thread in between, and a concurrent GROUP_CREATE reuses the freed ID, the first destroy erases and releases the new, still-initializing group, leading to a use-after-free in panthor_group_create(). Do the mark check and erase atomically under xa_lock().
Характеристики атаки
Последствия
Строка CVSS v3.1