RDMA/hfi1: Preserve unit 0 on allocation 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 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.110, and 2 more
- 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
Summary
In the Linux kernel, the following vulnerability has been resolved: RDMA/hfi1: Preserve unit 0 on allocation failure hfi1_free_devdata() assumes that the device was inserted into the unit table and unconditionally erases dd->unit. If xa_alloc_irq() fails, the zero-initialized unit remains zero, so full cleanup can remove an unrelated device from index 0. Release only the rdmavt allocation and return immediately while the unit table has not acquired the device.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 03b92789e5cfdac66805c1a98f1ec67336199d56 · fixed in 852637d3ee56aed8ea3ee8948eda21eca406c051; From 03b92789e5cfdac66805c1a98f1ec67336199d56 · fixed in 3d0e5252b8d0345ef494763ca31e3ddd666e02cb; From 03b92789e5cfdac66805c1a98f1ec67336199d56 · fixed in 0feb29d434e6cc0ebefec4f77be014c85ad751b0; From 03b92789e5cfdac66805c1a98f1ec67336199d56 · fixed in 3f1e196eb66b8cd3882e373794d6cea46f150a20; From 03b92789e5cfdac66805c1a98f1ec67336199d56 · fixed in 4ff9d58d34758e9633078b37e8d5289b513ff80e; From 03b92789e5cfdac66805c1a98f1ec67336199d56 · fixed in fd4d3ad5f244a867166d1e2da7ece3d82878ec81; From 03b92789e5cfdac66805c1a98f1ec67336199d56 · fixed in 4204f5c0312ba136181a6e148ffa0bfaf95a4cc1; From 03b92789e5cfdac66805c1a98f1ec67336199d56 · fixed in 2e3809ad8911f5d5581b3f046bd628417bface76
- Linux Linux
5.2
- KernelLinux
From 5.2.0 · fixed in 5.10.270; From 5.11.0 · fixed in 5.15.221; From 5.16.0 · fixed in 6.1.188; From 6.2.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.52; From 6.19.0 · fixed in 7.2.6
References 8
git.kernel.org
- stable/c/852637d3ee56aed8ea3ee8948eda21eca406c051
- stable/c/3d0e5252b8d0345ef494763ca31e3ddd666e02cb
- stable/c/0feb29d434e6cc0ebefec4f77be014c85ad751b0
- stable/c/3f1e196eb66b8cd3882e373794d6cea46f150a20
- stable/c/4ff9d58d34758e9633078b37e8d5289b513ff80e
- stable/c/fd4d3ad5f244a867166d1e2da7ece3d82878ec81
- stable/c/4204f5c0312ba136181a6e148ffa0bfaf95a4cc1
- stable/c/2e3809ad8911f5d5581b3f046bd628417bface76