В ядре Linux устранена следующая уязвимость:
net/mlx5: Devcom, исправьте поток ошибок в mlx5_devcom_register_device
В случае сбоя выделения devcom, mlx5 всегда освобождает приват.
Однако этот привилегированный доступ мог быть выделен другим потоком.
и его освобождение может привести к ошибкам использования после освобождения.
Исправьте это, освободив приват только в том случае, если он был выделен
бегущая нить.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: net/mlx5: Devcom, fix error flow in mlx5_devcom_register_device In case devcom allocation is failed, mlx5 is always freeing the priv. However, this priv might have been allocated by a different thread, and freeing it might lead to use-after-free bugs. Fix it by freeing the priv only in case it was allocated by the running thread.