{"id":"CVE-2025-39742","summary":"RDMA: hfi1: fix possible divide-by-zero in find_hw_thread_mask()","details":"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.","modified":"2026-03-20T12:43:01.923722Z","published":"2025-09-11T16:52:16.339Z","related":["SUSE-SU-2025:03600-1","SUSE-SU-2025:03634-1","SUSE-SU-2025:20851-1","SUSE-SU-2025:20861-1","SUSE-SU-2025:20870-1","SUSE-SU-2025:20898-1","SUSE-SU-2025:21074-1","SUSE-SU-2025:21139-1","SUSE-SU-2025:21179-1","SUSE-SU-2025:3751-1","SUSE-SU-2025:4057-1","SUSE-SU-2025:4111-1","SUSE-SU-2025:4132-1","SUSE-SU-2025:4139-1","SUSE-SU-2025:4141-1","SUSE-SU-2025:4149-1","SUSE-SU-2025:4320-1","SUSE-SU-2026:0487-1","SUSE-SU-2026:0489-1","SUSE-SU-2026:0490-1","SUSE-SU-2026:0526-1","SUSE-SU-2026:0528-1","SUSE-SU-2026:0533-1","SUSE-SU-2026:0535-1","SUSE-SU-2026:0539-1","SUSE-SU-2026:0542-1","SUSE-SU-2026:0543-1","SUSE-SU-2026:0544-1","SUSE-SU-2026:0546-1","SUSE-SU-2026:0548-1","SUSE-SU-2026:0550-1","SUSE-SU-2026:0554-1","SUSE-SU-2026:0555-1","SUSE-SU-2026:0556-1","SUSE-SU-2026:0560-1","SUSE-SU-2026:0565-1","SUSE-SU-2026:0566-1","SUSE-SU-2026:20455-1","SUSE-SU-2026:20456-1","SUSE-SU-2026:20457-1","SUSE-SU-2026:20458-1","SUSE-SU-2026:20459-1","SUSE-SU-2026:20460-1","SUSE-SU-2026:20461-1","SUSE-SU-2026:20462-1","SUSE-SU-2026:20463-1","SUSE-SU-2026:20464-1","SUSE-SU-2026:20465-1","SUSE-SU-2026:20466-1","SUSE-SU-2026:20470-1","SUSE-SU-2026:20471-1","SUSE-SU-2026:20499-1","SUSE-SU-2026:20500-1","SUSE-SU-2026:20501-1","SUSE-SU-2026:20502-1","SUSE-SU-2026:20503-1","SUSE-SU-2026:20504-1","SUSE-SU-2026:20505-1","SUSE-SU-2026:20511-1","SUSE-SU-2026:20512-1","SUSE-SU-2026:20513-1","SUSE-SU-2026:20514-1","SUSE-SU-2026:20515-1","SUSE-SU-2026:20516-1","SUSE-SU-2026:20517-1","SUSE-SU-2026:20635-1","SUSE-SU-2026:20644-1","SUSE-SU-2026:20645-1","openSUSE-SU-2025:20081-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39742.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1a7cf828ed861de5be1aff99e10f114b363c19d3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/31d0599a23efdbfe579bfbd1eb8f8c942f13744d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4b4317b0d758ff92ba96f4e448a8992a6fe607bf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/59f7d2138591ef8f0e4e4ab5f1ab674e8181ad3a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/89fdac333a17ed990b41565630ef4791782e02f5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9b05e91afe948ed819bf87d7ba0fccf451ed79a6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9bba1a9994c523b44db64f63b564b4719ea2b7ef"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9d3211cb61a0773a2440d0a0698c1e6e7429f907"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ac53f377393cc85156afdc90b636e84e544a6f96"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39742.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39742"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b094a36f90975373c3a241839869217a65f17d81"},{"fixed":"9bba1a9994c523b44db64f63b564b4719ea2b7ef"},{"fixed":"1a7cf828ed861de5be1aff99e10f114b363c19d3"},{"fixed":"9d3211cb61a0773a2440d0a0698c1e6e7429f907"},{"fixed":"4b4317b0d758ff92ba96f4e448a8992a6fe607bf"},{"fixed":"89fdac333a17ed990b41565630ef4791782e02f5"},{"fixed":"9b05e91afe948ed819bf87d7ba0fccf451ed79a6"},{"fixed":"31d0599a23efdbfe579bfbd1eb8f8c942f13744d"},{"fixed":"ac53f377393cc85156afdc90b636e84e544a6f96"},{"fixed":"59f7d2138591ef8f0e4e4ab5f1ab674e8181ad3a"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-39742.json"}}],"schema_version":"1.7.5"}