RDMA/mlx5: Fix UMR XLT cleanup on ODP populate failure
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.18.40, 7.1.5
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: yes
- Technical impact: partial
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: partial
- Record last updated
Affected versions
- Linux Linux
From 1efe8c0670d6a6883faa09c9abc746c741f5664a · fixed in ffa85a2c197935ace6f1634ad9eb0a44bc615670; From 1efe8c0670d6a6883faa09c9abc746c741f5664a · fixed in 9619909d4869afe720904c6888a289b9ac3055b8; From 1efe8c0670d6a6883faa09c9abc746c741f5664a · fixed in 1eae35b37923cb71b0cb5136d00671440d488b9f
- Linux Linux
6.16
- KernelLinux
From 6.16.0 · fixed in 6.18.40; From 6.19.0 · fixed in 7.1.5