{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-39742","id":"CVE-2025-39742","title":"RDMA: hfi1: fix possible divide-by-zero in find_hw_thread_mask()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA: hfi1: fix possible divide-by-zero in find_hw_thread_mask()\n\nThe function divides number of online CPUs by num_core_siblings, and\nlater checks the divider by zero. This implies a possibility to get\nand divide-by-zero runtime error. Fix it by moving the check prior to\ndivision. This also helps to save one indentation level.","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA: hfi1: fix possible divide-by-zero in find_hw_thread_mask()\n\nThe function divides number of online CPUs by num_core_siblings, and\nlater checks the divider by zero. This implies a possibility to get\nand divide-by-zero runtime error. Fix it by moving the check prior to\ndivision. This also helps to save one indentation level.","published":"2025-09-11T16:52:16.339Z","updated":"2026-10-28T02:30:39.026702105Z","reserved":"2025-04-16T07:20:57.120Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b094a36f90975373c3a241839869217a65f17d81","lessThan":"9bba1a9994c523b44db64f63b564b4719ea2b7ef","status":"affected","versionType":"git"},{"version":"b094a36f90975373c3a241839869217a65f17d81","lessThan":"1a7cf828ed861de5be1aff99e10f114b363c19d3","status":"affected","versionType":"git"},{"version":"b094a36f90975373c3a241839869217a65f17d81","lessThan":"9d3211cb61a0773a2440d0a0698c1e6e7429f907","status":"affected","versionType":"git"},{"version":"b094a36f90975373c3a241839869217a65f17d81","lessThan":"4b4317b0d758ff92ba96f4e448a8992a6fe607bf","status":"affected","versionType":"git"},{"version":"b094a36f90975373c3a241839869217a65f17d81","lessThan":"89fdac333a17ed990b41565630ef4791782e02f5","status":"affected","versionType":"git"},{"version":"b094a36f90975373c3a241839869217a65f17d81","lessThan":"9b05e91afe948ed819bf87d7ba0fccf451ed79a6","status":"affected","versionType":"git"},{"version":"b094a36f90975373c3a241839869217a65f17d81","lessThan":"31d0599a23efdbfe579bfbd1eb8f8c942f13744d","status":"affected","versionType":"git"},{"version":"b094a36f90975373c3a241839869217a65f17d81","lessThan":"ac53f377393cc85156afdc90b636e84e544a6f96","status":"affected","versionType":"git"},{"version":"b094a36f90975373c3a241839869217a65f17d81","lessThan":"59f7d2138591ef8f0e4e4ab5f1ab674e8181ad3a","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.8","status":"affected"},{"version":"0","lessThan":"4.8","status":"unaffected","versionType":"semver"},{"version":"5.4.297","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.241","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.190","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.149","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.103","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.43","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.15.11","lessThanOrEqual":"6.15.*","status":"unaffected","versionType":"semver"},{"version":"6.16.2","lessThanOrEqual":"6.16.*","status":"unaffected","versionType":"semver"},{"version":"6.17","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-369"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/9bba1a9994c523b44db64f63b564b4719ea2b7ef","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/1a7cf828ed861de5be1aff99e10f114b363c19d3","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/9d3211cb61a0773a2440d0a0698c1e6e7429f907","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/4b4317b0d758ff92ba96f4e448a8992a6fe607bf","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/89fdac333a17ed990b41565630ef4791782e02f5","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/9b05e91afe948ed819bf87d7ba0fccf451ed79a6","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/31d0599a23efdbfe579bfbd1eb8f8c942f13744d","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/ac53f377393cc85156afdc90b636e84e544a6f96","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/59f7d2138591ef8f0e4e4ab5f1ab674e8181ad3a","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["Mailing List","Third Party Advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["Mailing List","Third Party Advisory","web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39742.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39742","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00183,"epssPercentile":0.08006,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-39742","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39742","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-39742","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-39742","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}