В ядре Linux устранена следующая уязвимость:
net/mlx5: бесплатные mlx5_st_idx_data при окончательной сделке
Рабочие нагрузки, которые неоднократно выделяют и освобождают ключи mkey, содержащие TPH.
подсказки рулевого тега (например, перемешивание RDMA MR) просачиваются один
структура mlx5_st_idx_data за цикл; kmemleak помечает его как неиспользуемый
и плита kmalloc со временем растет.
Когда удаляется последняя ссылка на запись таблицы ST,
mlx5_st_dealloc_index() удалил запись из idx_xa, но поддержка
Выделение mlx5_st_idx_data так и не было освобождено.
Освободите idx_data после xa_erase(), чтобы срок службы бухгалтерского учета
struct соответствует времени жизни записи ST, которую она отслеживает.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: net/mlx5: free mlx5_st_idx_data on final dealloc Workloads that repeatedly allocate and release mkeys carrying TPH steering-tag hints (e.g. churning RDMA MRs) leak one struct mlx5_st_idx_data per cycle; kmemleak flags it as unreferenced and the kmalloc slab grows over time. When the last reference to an ST table entry is dropped, mlx5_st_dealloc_index() removed the entry from idx_xa but the backing mlx5_st_idx_data allocation was never freed. Free idx_data after the xa_erase() so the lifetime of the bookkeeping struct matches the lifetime of the ST entry it tracks.