Linux
RDMA/mlx5: Fix UMR XLT cleanup on ODP populate failure
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1efe8c0670d6a6883faa09c9abc746c741f5664a, < ffa85a2c197935ace6f1634ad9eb0a44bc615670
- >= 1efe8c0670d6a6883faa09c9abc746c741f5664a, < 9619909d4869afe720904c6888a289b9ac3055b8
- >= 1efe8c0670d6a6883faa09c9abc746c741f5664a, < 1eae35b37923cb71b0cb5136d00671440d488b9f
Fixed in ffa85a2c197935ace6f1634ad9eb0a44bc615670, 9619909d4869afe720904c6888a289b9ac3055b8, 1eae35b37923cb71b0cb5136d00671440d488b9f
- 6.16
Fixed in 0, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to ffa85a2c197935ace6f1634ad9eb0a44bc615670 or 9619909d4869afe720904c6888a289b9ac3055b8 or 1eae35b37923cb71b0cb5136d00671440d488b9f or later.
Upgrade Linux to 0 or 6.18.40 or 7.1.5 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.