RDMA/mlx5: Fix UMR XLT cleanup on ODP populate failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.407.1.57.2In 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.
From the CVE record · Linux
The Linux kernel’s RDMA/mlx5 XLT update path skips cleanup if ODP population fails. This leaks a DMA mapping and buffer and, if the emergency XLT page was used, leaves its mutex locked. The input does not specify an attack path, authentication requirement, or user interaction.
Engineers running Linux kernels with the affected RDMA/mlx5 code should check their kernel version against the vendor advisory; affected versions were not provided.