net/mlx5: free mlx5_st_idx_data on final dealloc
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 262da8b6ea03d01ee7ed01ad309e4c89941f6b14, Kernel 6eb4cf2fa8997f62c11e0006dc010a1fd89c5a75, Kernel df6134b527a88b3e65ba6ae5073664af091d5fd2 and 2 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.17, >=888a7776f4fb04c19bec70c737c61c2f383c6b1e <262da8b6ea03d01ee7ed01ad309e4c89941f6b14, >=888a7776f4fb04c19bec70c737c61c2f383c6b1e <6eb4cf2fa8997f62c11e0006dc010a1fd89c5a75, >=888a7776f4fb04c19bec70c737c61c2f383c6b1e <df6134b527a88b3e65ba6ae5073664af091d5fd2 | 262da8b6ea03d01ee7ed01ad309e4c89941f6b14, 6eb4cf2fa8997f62c11e0006dc010a1fd89c5a75, df6134b527a88b3e65ba6ae5073664af091d5fd2 |
| linux-kernel: Kernel | >=6.17.0 <6.18.40, >=6.19.0 <7.1.5 | 6.18.40, 7.1.5 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket