CVE-2025-39742 — RDMA: hfi1: fix possible divide-by-zero in find_hw_thread_mask()
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…
Published: 2025-09-11 · CVSS: Unscored
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.
Source: CVE Program · Revision 8b16575c39f1e1810c5e863010da073d2d3285e7