{"id":"CVE-2025-39742","aliases":["CVE-2025-39742"],"related":[],"kind":"vulnerability","state":"published","title":"RDMA: hfi1: fix possible divide-by-zero in find_hw_thread_mask()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nRDMA: hfi1: corrección de posible división por cero en find_hw_thread_mask()\n\nLa función divide el número de CPUs en línea por num_core_siblings, y luego comprueba el divisor por cero. Esto implica la posibilidad de obtener un error de tiempo de ejecución de división por cero. Se soluciona moviendo la comprobación antes de la división. Esto también ayuda a ahorrar un nivel de indentación.","source":"nvd"}],"published":"2025-09-11T16:52:16.339Z","modified":"2026-10-19T21:10:00.160Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-369"],"affected":[{"ranges":[{"type":"git","introduced":"b094a36f90975373c3a241839869217a65f17d81","fixed":"9bba1a9994c523b44db64f63b564b4719ea2b7ef","status":"affected"},{"type":"git","introduced":"b094a36f90975373c3a241839869217a65f17d81","fixed":"1a7cf828ed861de5be1aff99e10f114b363c19d3","status":"affected"},{"type":"git","introduced":"b094a36f90975373c3a241839869217a65f17d81","fixed":"9d3211cb61a0773a2440d0a0698c1e6e7429f907","status":"affected"},{"type":"git","introduced":"b094a36f90975373c3a241839869217a65f17d81","fixed":"4b4317b0d758ff92ba96f4e448a8992a6fe607bf","status":"affected"},{"type":"git","introduced":"b094a36f90975373c3a241839869217a65f17d81","fixed":"89fdac333a17ed990b41565630ef4791782e02f5","status":"affected"},{"type":"git","introduced":"b094a36f90975373c3a241839869217a65f17d81","fixed":"9b05e91afe948ed819bf87d7ba0fccf451ed79a6","status":"affected"},{"type":"git","introduced":"b094a36f90975373c3a241839869217a65f17d81","fixed":"31d0599a23efdbfe579bfbd1eb8f8c942f13744d","status":"affected"},{"type":"git","introduced":"b094a36f90975373c3a241839869217a65f17d81","fixed":"ac53f377393cc85156afdc90b636e84e544a6f96","status":"affected"},{"type":"git","introduced":"b094a36f90975373c3a241839869217a65f17d81","fixed":"59f7d2138591ef8f0e4e4ab5f1ab674e8181ad3a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.8","status":"unaffected"},{"type":"semver","introduced":"5.4.297","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.241","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.190","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.149","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.103","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.43","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.15.11","lastAffected":"6.15.*","status":"unaffected"},{"type":"semver","introduced":"6.16.2","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.8","fixed":"5.4.297"},{"status":"affected","introduced":"5.5","fixed":"5.10.241"},{"status":"affected","introduced":"5.11","fixed":"5.15.190"},{"status":"affected","introduced":"5.16","fixed":"6.1.149"},{"status":"affected","introduced":"6.2","fixed":"6.6.103"},{"status":"affected","introduced":"6.7","fixed":"6.12.43"},{"status":"affected","introduced":"6.13","fixed":"6.15.11"},{"status":"affected","introduced":"6.16","fixed":"6.16.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/9bba1a9994c523b44db64f63b564b4719ea2b7ef","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1a7cf828ed861de5be1aff99e10f114b363c19d3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9d3211cb61a0773a2440d0a0698c1e6e7429f907","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4b4317b0d758ff92ba96f4e448a8992a6fe607bf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/89fdac333a17ed990b41565630ef4791782e02f5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9b05e91afe948ed819bf87d7ba0fccf451ed79a6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/31d0599a23efdbfe579bfbd1eb8f8c942f13744d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ac53f377393cc85156afdc90b636e84e544a6f96","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/59f7d2138591ef8f0e4e4ab5f1ab674e8181ad3a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39742","url":"https://www.cve.org/CVERecord?id=CVE-2025-39742","licence":"CVE Terms of Use","modified":"2026-05-12T12:06:41.965Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39742","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39742","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:04.543Z","epss":{"score":0.00183,"percentile":0.08243,"date":"2026-12-01T12:00:22.000Z"}}