CVE-2025-37984: crypto: ecdsa - Harden against integer overflows in DIV_ROUND_UP()
In the Linux kernel, the following vulnerability has been resolved:
crypto: ecdsa - Harden against integer overflows in DIV_ROUND_UP()
Herbert notes that DIV_ROUND_UP() may overflow unnecessarily if an ecdsa
implementation's ->key_size() callback returns an unusually large value.
Herbert instead suggests (for a division by 8):
X / 8 + !!(X & 7)
Based on this formula, introduce a generic DIV_ROUND_UP_POW2() macro and
use it in lieu of DIV_ROUND_UP() for ->key_size() return values.
Additionally, use the macro in ecc_digits_from_bytes(), whose "nbytes"
parameter is a ->key_size() return value in some instances, or a
user-specified ASN.1 length in the case of ecdsa_get_signature_rs().
Security readout for executives and security teams
Plain-English summary
A Linux kernel ECDSA calculation can overflow when processing an unusually large key-size value or certain ASN.1 signature lengths. That may corrupt security-sensitive calculations and potentially affect confidentiality, integrity, and availability. Exploitation requires local, low-privileged access and high complexity according to the supplied CVSS assessment.
Executive priority
Treat this as a high-priority kernel maintenance issue, especially on shared hosts or systems executing untrusted workloads. It is not supported as an emergency internet-wide threat because access is local, complexity is high, and no active exploitation is documented. Remediate through normal expedited patch governance.
Technical view
DIV_ROUND_UP() could overflow while converting ECDSA key sizes from bytes, including inside ecc_digits_from_bytes(). The resolved implementation introduces DIV_ROUND_UP_POW2() and uses overflow-resistant division-by-eight arithmetic. The supplied CVSS v3.1 score is 7.0: local access, high complexity, low privileges, no user interaction, and high potential impact.
Likely exposure
Prioritize Linux systems running releases explicitly marked affected in the bundle, including 6.10, 6.6.99, 6.12.39, 6.14.5, and 6.15. Exposure depends on whether local users or workloads can reach affected ECDSA processing. The version metadata contains unusual and overlapping entries, so confirm status with the kernel or distribution vendor.
Exploitation context
The bundle does not identify active exploitation, and the CVE is not listed as KEV. The CVSS vector indicates exploitation would require local low-privileged access and high complexity. No public proof of concept or demonstrated attack path is established by the supplied sources.
Researcher notes
The vulnerable arithmetic concerns overflow during byte-to-unit rounding for implementation-supplied key sizes and user-specified ASN.1 lengths. Four stable-kernel fix references are supplied. Exact triggering conditions, reachable call paths, resulting corruption behavior, affected configuration requirements, and public exploitability are not fully documented in the bundle.
Mitigation direction
Apply a vendor-supported kernel update incorporating the referenced stable fixes.
Check distribution advisories for package-specific affected and fixed versions.
Prioritize multi-user systems and hosts running untrusted local workloads.
Restrict unnecessary local access while updates are evaluated and deployed.
Validation and detection
Record each system's running kernel and distribution package version.
Compare package status against current distribution or Linux stable guidance.
Confirm the deployed kernel incorporates an applicable referenced fix commit.
Reboot updated systems and verify the intended kernel is running.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2025-37984 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
0ADP providers
5Source links
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.