RDMA/hfi1: Prevent panic when SDMA is disabled
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0cb2aa690c7ef14ad1f544288349abb5434bb75d · < 29952ab85d6c3fe0b7909d9a737f10c58bf6824d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
RDMA/hfi1: Prevent panic when SDMA is disabled
If the hfi1 module is loaded with HFI1_CAP_SDMA off, a call to hfi1_write_iter() will dereference a NULL pointer and panic. A typical stack frame is:
sdma_select_user_engine [hfi1] hfi1_user_sdma_process_request [hfi1] hfi1_write_iter [hfi1] do_iter_readv_writev do_iter_write vfs_writev do_writev do_syscall_64
The fix is to test for SDMA in hfi1_write_iter() and fail the I/O with EINVAL.
From the CVE record · Linux
The Linux kernel's hfi1 driver can dereference a NULL pointer when its module is loaded with HFI1_CAP_SDMA off. A local call to hfi1_write_iter() under that condition can panic the kernel; authentication requirements are not specified.
Teams running Linux kernels with the hfi1 module should check their exposure; affected versions are not specified.