CVE-2025-37984

crypto: ecdsa - Harden against integer overflows in DIV_ROUND_UP()

MEDIUM
5.5
CVSS Score
Published: May 20, 2025 at 05:09 PM UTC
Updated: October 15, 2026 at 10:18 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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().

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

All versions6.10 ≤ v < 6.12.396.13 ≤ v < 6.14.56.6.70 ≤ v < 6.6.9955779f26eab9af12474a447001bd17070f0557126.106.6.70c6ab5c915da460c0397960af3c308386c3f3247b
Vendor states this is fixed in 921b8167f10708e38080f84e195cdc68a7a561f1 (fixed)
Vendor states this is fixed in b16510a530d1e6ab9683f04f8fb34f2e0f538275 (fixed)
Vendor states this is fixed in f02f0218be412cff1c844addf58e002071be298b (fixed)
Vendor states this is fixed in f2133b849ff273abddb6da622daddd8f6f6fa448 (fixed)
Vendor states this is fixed in 6.10 (unaffected)
Vendor states this is fixed in 6.12.39 (unaffected)
Vendor states this is fixed in 6.14.5 (unaffected)
Vendor states this is fixed in 6.15 (unaffected)
Vendor states this is fixed in 6.6.99 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/921b8167f10708e38080f84e195cdc68a7a561f1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b16510a530d1e6ab9683f04f8fb34f2e0f538275
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f02f0218be412cff1c844addf58e002071be298b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f2133b849ff273abddb6da622daddd8f6f6fa448

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-190

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card