RDMA/mlx5: Fix UMR XLT cleanup on ODP populate failure
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel 1eae35b37923cb71b0cb5136d00671440d488b9f, Kernel 9619909d4869afe720904c6888a289b9ac3055b8, Kernel ffa85a2c197935ace6f1634ad9eb0a44bc615670 and 2 more.
In the Linux kernel, the following vulnerability has been resolved: RDMA/mlx5: Fix UMR XLT cleanup on ODP populate failure mlx5r_umr_update_xlt() allocates and DMA maps an XLT buffer with mlx5r_umr_create_xlt(). The buffer is released by the common cleanup path through mlx5r_umr_unmap_free_xlt(). After mlx5_odp_populate_xlt() became fallible, its error path returned directly and skipped that cleanup. This leaks the XLT DMA mapping and buffer. If the emergency XLT page was used, it also leaves xlt_emergency_page_mutex locked. Break out of the loop so execution falls through the existing cleanup path.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.16, >=1efe8c0670d6a6883faa09c9abc746c741f5664a <1eae35b37923cb71b0cb5136d00671440d488b9f, >=1efe8c0670d6a6883faa09c9abc746c741f5664a <9619909d4869afe720904c6888a289b9ac3055b8, >=1efe8c0670d6a6883faa09c9abc746c741f5664a <ffa85a2c197935ace6f1634ad9eb0a44bc615670 | 1eae35b37923cb71b0cb5136d00671440d488b9f, 9619909d4869afe720904c6888a289b9ac3055b8, ffa85a2c197935ace6f1634ad9eb0a44bc615670 |
| linux-kernel: Kernel | >=6.16.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