{"id":"CVE-2025-39742","published":"2025-09-11T16:52:16Z","modified":"2026-05-12T12:06:41Z","title":"RDMA: hfi1: fix possible divide-by-zero in find_hw_thread_mask()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00183,"percentile":0.07977,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/9bba1a9994c523b44db64f63b564b4719ea2b7ef","tags":[]},{"url":"https://git.kernel.org/stable/c/1a7cf828ed861de5be1aff99e10f114b363c19d3","tags":[]},{"url":"https://git.kernel.org/stable/c/9d3211cb61a0773a2440d0a0698c1e6e7429f907","tags":[]},{"url":"https://git.kernel.org/stable/c/4b4317b0d758ff92ba96f4e448a8992a6fe607bf","tags":[]},{"url":"https://git.kernel.org/stable/c/89fdac333a17ed990b41565630ef4791782e02f5","tags":[]},{"url":"https://git.kernel.org/stable/c/9b05e91afe948ed819bf87d7ba0fccf451ed79a6","tags":[]},{"url":"https://git.kernel.org/stable/c/31d0599a23efdbfe579bfbd1eb8f8c942f13744d","tags":[]},{"url":"https://git.kernel.org/stable/c/ac53f377393cc85156afdc90b636e84e544a6f96","tags":[]},{"url":"https://git.kernel.org/stable/c/59f7d2138591ef8f0e4e4ab5f1ab674e8181ad3a","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":[]}],"priority":{"score":1.6,"factors":[{"name":"EPSS percentile","points":1.6}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= b094a36f90975373c3a241839869217a65f17d81, < 9bba1a9994c523b44db64f63b564b4719ea2b7ef",">= b094a36f90975373c3a241839869217a65f17d81, < 1a7cf828ed861de5be1aff99e10f114b363c19d3",">= b094a36f90975373c3a241839869217a65f17d81, < 9d3211cb61a0773a2440d0a0698c1e6e7429f907",">= b094a36f90975373c3a241839869217a65f17d81, < 4b4317b0d758ff92ba96f4e448a8992a6fe607bf",">= b094a36f90975373c3a241839869217a65f17d81, < 89fdac333a17ed990b41565630ef4791782e02f5",">= b094a36f90975373c3a241839869217a65f17d81, < 9b05e91afe948ed819bf87d7ba0fccf451ed79a6",">= b094a36f90975373c3a241839869217a65f17d81, < 31d0599a23efdbfe579bfbd1eb8f8c942f13744d",">= b094a36f90975373c3a241839869217a65f17d81, < ac53f377393cc85156afdc90b636e84e544a6f96",">= b094a36f90975373c3a241839869217a65f17d81, < 59f7d2138591ef8f0e4e4ab5f1ab674e8181ad3a"]},{"vendor":"Linux","product":"Linux","versions":["4.8"]}],"euvd":{"id":"EUVD-2025-28969","exploited":false,"provenance":"source"}}