CVE-2025-39742
RDMA: hfi1: fix possible divide-by-zero in find_hw_thread_mask()
Reported by linux · Published September 11, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Linux | Linux | 9bba1a9994c523b44db64f63b564b4719ea2b7ef, 31d0599a23efdbfe579bfbd1eb8f8c942f13744d |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | b094a36f90975373c3a241839869217a65f17d81, b094a36f90975373c3a241839869217a65f17d81, b094a36f90975373c3a241839869217a65f17d81 |
| Linux | Linux | 4.8, 0, 5.4.297 |
| Linux | Linux | 6.12.43, 6.6.103, 6.15.11 |
| Siemens | SIMATIC CN 4100 | 0 |
| linux | linux_kernel | 4.8, 4.8, 4.8 |
Timeline
- Sep 11, 2025 CVE Published
- Sep 12, 2025 EPSS Score (30 in total, the first dated here)
- Oct 12, 2025 PoC Published (16 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (193 in total, the first dated here)
- Mar 29, 2026 Security Advisory (206 in total, the first dated here)
- Jun 8, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-39742
vulnetix vdb fixes CVE-2025-39742
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-39742/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart