CVE-2025-37984 Details
Description
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().
A vulnerability in the Linux kernel's ECDSA implementation has been addressed, which involved an integer overflow risk in the DIV_ROUND_UP() macro. This issue could arise if the implementation's key_size() callback returned an unusually large value. To mitigate this, a new macro, DIV_ROUND_UP_POW2(), was introduced to safely handle key size values. This macro is now used in critical functions to prevent potential overflows.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/921b8167f10708e38080f84e195cdc68a7a561f1 | kernel.org | Patch |
| https://git.kernel.org/stable/c/b16510a530d1e6ab9683f04f8fb34f2e0f538275 | kernel.org | Patch |
| https://git.kernel.org/stable/c/f02f0218be412cff1c844addf58e002071be298b | kernel.org | Patch |
| https://git.kernel.org/stable/c/f2133b849ff273abddb6da622daddd8f6f6fa448 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-190 | Integer Overflow or Wraparound | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.6.70, < 6.6.99 >= 6.10, < 6.12.39 >= 6.13, < 6.14.5 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 15, 2026 | CVE Modified | CISA-ADP |
| Oct 15, 2026 | CVE Modified | kernel.org |
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 14, 2025 | Initial Analysis | [email protected] |
| Jul 25, 2025 | CVE Modified | kernel.org |
| Jul 17, 2025 | CVE Modified | kernel.org |
| May 20, 2025 | New CVE Received | kernel.org |