RDMA: hfi1: fix possible divide-by-zero in find_hw_thread_mask()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b094a36f90975373c3a241839869217a65f17d81 · < 9b05e91afe948ed819bf87d7ba0fccf451ed79a6| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
RDMA: hfi1: fix possible divide-by-zero in find_hw_thread_mask()
The function divides number of online CPUs by num_core_siblings, and later checks the divider by zero. This implies a possibility to get and divide-by-zero runtime error. Fix it by moving the check prior to division. This also helps to save one indentation level.
From the CVE record · Linux
The Linux kernel's RDMA hfi1 function find_hw_thread_mask() can divide by zero because it checks the divisor only after division. This can cause a runtime error. The input does not establish an attack path, authentication requirement, or user-interaction requirement.
Engineers running Linux kernels with the RDMA hfi1 component should check their versions; affected versions are not specified.