0.0
NA
CVE-2025-39742
RDMA: hfi1: fix possible divide-by-zero in find_hw_thread_mask()
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.

INFO

Published Date :

Sept. 11, 2025, 5:15 p.m.

Last Modified :

Sept. 11, 2025, 5:15 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2025-39742 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

Solution
Resolve divide-by-zero error by moving the check before the division.
  • Update the Linux kernel.
  • Apply the fix to the hfi1 driver.
  • Ensure checks precede division operations.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-39742 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-39742 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-39742 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2025-39742 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Sep. 11, 2025

    Action Type Old Value New Value
    Added 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.
    Added Reference https://git.kernel.org/stable/c/1a7cf828ed861de5be1aff99e10f114b363c19d3
    Added Reference https://git.kernel.org/stable/c/31d0599a23efdbfe579bfbd1eb8f8c942f13744d
    Added Reference https://git.kernel.org/stable/c/4b4317b0d758ff92ba96f4e448a8992a6fe607bf
    Added Reference https://git.kernel.org/stable/c/59f7d2138591ef8f0e4e4ab5f1ab674e8181ad3a
    Added Reference https://git.kernel.org/stable/c/89fdac333a17ed990b41565630ef4791782e02f5
    Added Reference https://git.kernel.org/stable/c/9b05e91afe948ed819bf87d7ba0fccf451ed79a6
    Added Reference https://git.kernel.org/stable/c/9bba1a9994c523b44db64f63b564b4719ea2b7ef
    Added Reference https://git.kernel.org/stable/c/9d3211cb61a0773a2440d0a0698c1e6e7429f907
    Added Reference https://git.kernel.org/stable/c/ac53f377393cc85156afdc90b636e84e544a6f96
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
No CVSS metrics available for this vulnerability.