Bug 2394651 (CVE-2025-39742) - CVE-2025-39742 kernel: RDMA: hfi1: fix possible divide-by-zero in find_hw_thread_mask()
Summary: CVE-2025-39742 kernel: RDMA: hfi1: fix possible divide-by-zero in find_hw_thr...
Keywords:
Status: NEW
Alias: CVE-2025-39742
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-11 17:04 UTC by OSIDB Bzimport
Modified: 2025-09-15 09:14 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-09-11 17:04:52 UTC
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.

Comment 1 Mauro Matteo Cascella 2025-09-15 07:40:25 UTC
Upstream advisory;
https://lore.kernel.org/linux-cve-announce/2025091139-CVE-2025-39742-37e8@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.