# CVE-2025-39742: RDMA: hfi1: fix possible divide-by-zero in find\_hw\_thread\_mask()

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-09-11 · Modified: 2026-05-12
- Aliases: SUSE-SU-2026:0533-1, SUSE-SU-2026:0544-1, UBUNTU-CVE-2025-39742, DEBIAN-CVE-2025-39742
- Record: https://cvemate.com/vulnerability/CVE-2025-39742 · JSON: https://cvemate.com/vulnerability/CVE-2025-39742/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.194%, percentile 9.518%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 156)

- debian linux (Debian): \< 6.1.153-1 \| \< 6.12.43-1 \| \< 6.16.3-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-163.173 \| \< 6.8.0-100.100
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1097.104 \| \< 6.8.0-1046.49
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1097.104~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1046.49~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1097.104+fips1 \| \< 6.8.0-1046.49+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1101.110 \| \< 6.8.0-1046.52
- ubuntu linux-azure-4.15 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 45)

- <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>
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>
- <https://www.suse.com/support/update/announcement/2026/suse-su-20260533-1/>
- <https://bugzilla.suse.com/1249480>
- <https://www.suse.com/security/cve/CVE-2025-39742>
- <https://www.suse.com/support/update/announcement/2026/suse-su-20260544-1/>
- <https://ubuntu.com/security/CVE-2025-39742>
- <https://www.cve.org/CVERecord?id=CVE-2025-39742>
- <https://git.kernel.org/linus/59f7d2138591ef8f0e4e4ab5f1ab674e8181ad3a>
- <https://ubuntu.com/security/notices/USN-7909-1>

---

Data as of 2026-12-06T04:48:40.943Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
