В ядре Linux была устранена следующая уязвимость: net/mlx5e: Гонка Fix use-after-free в sample_restore_put() Concurrent разбор правил образца TC, разделяющих один и тот же контекст восстановления, может перечитать restore->count после удаления restore_lock. В этот момент другой поток, возможно, уже завершил очистку и освободил объект восстановления. Используйте результат декремента refcount при удержании restore_lock, чтобы определить, требуется ли очистка.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: Fix use-after-free race in sample_restore_put() Concurrent teardown of TC sample rules sharing the same restore context may re-read restore->count after dropping restore_lock. At that point another thread may already have completed cleanup and freed the restore object. Use the result of the refcount decrement while holding restore_lock to determine whether cleanup is needed.