Cyber Resilience

CVE-2025-39742

Linux Kernel 4.8 – 5.4.297

Published
11 September 2025
Modified
12 May 2026
Patch / advisory
CVSS Score v3.1 5.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS Score 0.0016 6th percentile
Risk Priority 35 floored blend · peak EPSS

Summary

CVE-2025-39742 is a medium-severity Divide By Zero (CWE-369) vulnerability in Linux Linux Kernel. Its CVSS base score is 5.5 (Medium).

Operationally, ranked at the 6th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SI-2 (Flaw Remediation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

divide-by-zero runtime error. Fix it by moving the check prior to division. This also helps to save one indentation level.

CWE(s)

Related Threats

CVEs Like This One

CVE-2025-37937Same product: Debian Debian Linux
CVE-2024-26778Same product: Debian Debian Linux
CVE-2025-37766Same product: Debian Debian Linux
CVE-2025-37770Same product: Debian Debian Linux
CVE-2025-38126Same product: Debian Debian Linux
CVE-2024-26777Same product: Debian Debian Linux
CVE-2024-35925Same product: Debian Debian Linux
CVE-2025-37740Same product: Debian Debian Linux
CVE-2025-37768Same product: Debian Debian Linux
CVE-2025-39916Same product: Debian Debian Linux

Affected Assets

linux
linux kernel
4.8 — 5.4.297 · 5.5 — 5.10.241 · 5.11 — 5.15.190
debian
debian linux
11.0

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)
  • SI-2 Flaw Remediation
  • SI-10 Information Input Validation
Detect
Catch it (NIST detect / respond)
Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)

Mitigating Controls (NIST 800-53 r5) AI

prevent

Directly requires applying the kernel patch that moves the zero check before the division in find_hw_thread_mask().

prevent

Requires validation of num_core_siblings (the divisor) prior to the division operation that triggers CWE-369.

respond

Provides structured error handling that could contain the impact of an uncaught divide-by-zero in kernel code.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure SDLC practices directly include code analysis, input validation, and testing that prevent divide-by-zero errors.

ID.RA-01 partial match
prevents

Vulnerability identification processes can discover divide-by-zero flaws via static analysis or testing.

PR.PS-02 partial match
prevents

Routine patching and replacement can remediate divide-by-zero bugs present in deployed software.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

detects

Security testing in development can detect divide-by-zero conditions before release.

prevents

Secure development lifecycle includes input validation and error-handling practices that can prevent divide-by-zero faults.

prevents

Application security requirements can mandate checks for zero denominators and safe arithmetic handling.

prevents

Secure architecture principles encourage defensive coding patterns that avoid arithmetic exceptions.

prevents

Secure coding standards directly require validation to prevent divide-by-zero and similar runtime faults.

References