CVE-2025-37984
Severity CVSS v4.0:
Pending analysis
Type:
CWE-190
Integer Overflow or Wraparound
Publication date:
20/05/2025
Last modified:
14/11/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
crypto: ecdsa - Harden against integer overflows in DIV_ROUND_UP()<br />
<br />
Herbert notes that DIV_ROUND_UP() may overflow unnecessarily if an ecdsa<br />
implementation&#39;s ->key_size() callback returns an unusually large value.<br />
Herbert instead suggests (for a division by 8):<br />
<br />
X / 8 + !!(X & 7)<br />
<br />
Based on this formula, introduce a generic DIV_ROUND_UP_POW2() macro and<br />
use it in lieu of DIV_ROUND_UP() for ->key_size() return values.<br />
<br />
Additionally, use the macro in ecc_digits_from_bytes(), whose "nbytes"<br />
parameter is a ->key_size() return value in some instances, or a<br />
user-specified ASN.1 length in the case of ecdsa_get_signature_rs().
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.6.70 (including) | 6.6.99 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.10 (including) | 6.12.39 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.13 (including) | 6.14.5 (excluding) |
To consult the complete list of CPE names with products and versions, see this page



