RDMA/hfi1: Preserve unit 0 on allocation failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 03b92789e5cfdac66805c1a98f1ec67336199d56 · < fd4d3ad5f244a867166d1e2da7ece3d82878ec81| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s RDMA/hfi1 cleanup can remove an unrelated device from unit table index 0 if device allocation fails before the new device is inserted. The input does not establish how an attacker could trigger the failure or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with RDMA/hfi1 should check their kernel’s status; affected versions are not specified.