CVE-2025-39742
RDMA: hfi1: fix possible divide-by-zero in find_hw_thread_mask()
Check your servers for CVE-2025-39742
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-39742 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 8.24% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from b094a36f90975373c3a241839869217a65f17d81, before 9bba1a9994c523b44db64f63b564b4719ea2b7ef affected from b094a36f90975373c3a241839869217a65f17d81, before 1a7cf828ed861de5be1aff99e10f114b363c19d3 affected from b094a36f90975373c3a241839869217a65f17d81, before 9d3211cb61a0773a2440d0a0698c1e6e7429f907 affected from b094a36f90975373c3a241839869217a65f17d81, before 4b4317b0d758ff92ba96f4e448a8992a6fe607bf affected from b094a36f90975373c3a241839869217a65f17d81, before 89fdac333a17ed990b41565630ef4791782e02f5 affected from b094a36f90975373c3a241839869217a65f17d81, before 9b05e91afe948ed819bf87d7ba0fccf451ed79a6 affected from b094a36f90975373c3a241839869217a65f17d81, before 31d0599a23efdbfe579bfbd1eb8f8c942f13744d affected from b094a36f90975373c3a241839869217a65f17d81, before ac53f377393cc85156afdc90b636e84e544a6f96 affected from b094a36f90975373c3a241839869217a65f17d81, before 59f7d2138591ef8f0e4e4ab5f1ab674e8181ad3a
Other versions: unaffected
|
| Linux |
affected 4.8 unaffected before 4.8 unaffected from 5.4.297 up to and including 5.4.* unaffected from 5.10.241 up to and including 5.10.* unaffected from 5.15.190 up to and including 5.15.* unaffected from 6.1.149 up to and including 6.1.* unaffected from 6.6.103 up to and including 6.6.* unaffected from 6.12.43 up to and including 6.12.* unaffected from 6.15.11 up to and including 6.15.* unaffected from 6.16.2 up to and including 6.16.* unaffected 6.17 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-39742 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-39742
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-39742
trivy image --scanners vuln IMAGE | grep CVE-2025-39742
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/9bba1a9994c523b44db64f63b564b4719ea2b7ef git.kernel.org
- https://git.kernel.org/stable/c/1a7cf828ed861de5be1aff99e10f114b363c19d3 git.kernel.org
- https://git.kernel.org/stable/c/9d3211cb61a0773a2440d0a0698c1e6e7429f907 git.kernel.org
- https://git.kernel.org/stable/c/4b4317b0d758ff92ba96f4e448a8992a6fe607bf git.kernel.org
- https://git.kernel.org/stable/c/89fdac333a17ed990b41565630ef4791782e02f5 git.kernel.org
- https://git.kernel.org/stable/c/9b05e91afe948ed819bf87d7ba0fccf451ed79a6 git.kernel.org
- https://git.kernel.org/stable/c/31d0599a23efdbfe579bfbd1eb8f8c942f13744d git.kernel.org
- https://git.kernel.org/stable/c/ac53f377393cc85156afdc90b636e84e544a6f96 git.kernel.org
- https://git.kernel.org/stable/c/59f7d2138591ef8f0e4e4ab5f1ab674e8181ad3a git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-032379.html cert-portal.siemens.com
Source: the record CVE-2025-39742 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse