RDMA/hfi1: Free RX data on late probe failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4730f4a6c6b2065589c0822af00aa45e639bbc36 · < 83fe4e4f4fbf01d3832a24511c0ddfaccf5df9d8| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
RDMA/hfi1: Free RX data on late probe failure
hfi1_init_dd() allocates the shared AIP/VNIC RX support before returning. If hfi1_init() or hfi1_register_ib_device() later fails, init_one() tears down the device data without calling hfi1_free_rx(). This leaks netdev_rx and its dummy netdev.
Free the RX support after IB unregistration and before postinit_cleanup(), as done on normal device removal.
From the CVE record · Linux
The Linux kernel’s RDMA/hfi1 driver leaks RX support memory if device initialization or IB device registration fails after that memory is allocated. The input does not establish how an attacker could trigger the failure or whether access, authentication, or user interaction is required.
Engineers running Linux kernels with the RDMA/hfi1 driver should check their kernel vendor’s advisory; affected versions are not specified.