# RDMA: hfi1: fix possible divide-by-zero in find_hw_thread_mask()

CVE record · `CVE-2025-39742`

- **Identifiers:** `CVE-2025-39742`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 11 Sept 2025
- **Updated:** 12 May 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 11 Sept 2025, 16:52 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `b094a36f90975373c3a241839869217a65f17d81 to before 9bba1a9994c523b44db64f63b564b4719ea2b7ef` (git)
  - affected: `b094a36f90975373c3a241839869217a65f17d81 to before 1a7cf828ed861de5be1aff99e10f114b363c19d3` (git)
  - affected: `b094a36f90975373c3a241839869217a65f17d81 to before 9d3211cb61a0773a2440d0a0698c1e6e7429f907` (git)
  - affected: `b094a36f90975373c3a241839869217a65f17d81 to before 4b4317b0d758ff92ba96f4e448a8992a6fe607bf` (git)
  - affected: `b094a36f90975373c3a241839869217a65f17d81 to before 89fdac333a17ed990b41565630ef4791782e02f5` (git)
  - affected: `b094a36f90975373c3a241839869217a65f17d81 to before 9b05e91afe948ed819bf87d7ba0fccf451ed79a6` (git)
  - affected: `b094a36f90975373c3a241839869217a65f17d81 to before 31d0599a23efdbfe579bfbd1eb8f8c942f13744d` (git)
  - affected: `b094a36f90975373c3a241839869217a65f17d81 to before ac53f377393cc85156afdc90b636e84e544a6f96` (git)
  - affected: `b094a36f90975373c3a241839869217a65f17d81 to before 59f7d2138591ef8f0e4e4ab5f1ab674e8181ad3a` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `4.8`
  - unaffected: `before 4.8` (semver)
  - unaffected: `5.4.297 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.241 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.190 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.149 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.103 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.43 to 6.12.*, inclusive` (semver)
  - unaffected: `6.15.11 to 6.15.*, inclusive` (semver)
  - unaffected: `6.16.2 to 6.16.*, inclusive` (semver)
  - unaffected: `6.17 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.0018, the 8th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 11 Sept 2025. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2025-39742](https://www.cve.org/CVERecord?id=CVE-2025-39742)
- [NVD: CVE-2025-39742](https://nvd.nist.gov/vuln/detail/CVE-2025-39742)

### References from the CNA

- <https://git.kernel.org/stable/c/9bba1a9994c523b44db64f63b564b4719ea2b7ef>
- <https://git.kernel.org/stable/c/1a7cf828ed861de5be1aff99e10f114b363c19d3>
- <https://git.kernel.org/stable/c/9d3211cb61a0773a2440d0a0698c1e6e7429f907>
- <https://git.kernel.org/stable/c/4b4317b0d758ff92ba96f4e448a8992a6fe607bf>
- <https://git.kernel.org/stable/c/89fdac333a17ed990b41565630ef4791782e02f5>
- <https://git.kernel.org/stable/c/9b05e91afe948ed819bf87d7ba0fccf451ed79a6>
- <https://git.kernel.org/stable/c/31d0599a23efdbfe579bfbd1eb8f8c942f13744d>
- <https://git.kernel.org/stable/c/ac53f377393cc85156afdc90b636e84e544a6f96>
- <https://git.kernel.org/stable/c/59f7d2138591ef8f0e4e4ab5f1ab674e8181ad3a>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2025-39742>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2025-39742/>. Everything for agents: <https://agentprime.io/llms.txt>.
