{"id":"CVE-2025-37984","published":"2025-05-20T17:09:18Z","modified":"2026-10-15T21:52:05Z","title":"crypto: ecdsa - Harden against integer overflows in DIV_ROUND_UP()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: ecdsa - Harden against integer overflows in DIV_ROUND_UP()\n\nHerbert notes that DIV_ROUND_UP() may overflow unnecessarily if an ecdsa\nimplementation's ->key_size() callback returns an unusually large value.\nHerbert instead suggests (for a division by 8):\n\n  X / 8 + !!(X & 7)\n\nBased on this formula, introduce a generic DIV_ROUND_UP_POW2() macro and\nuse it in lieu of DIV_ROUND_UP() for ->key_size() return values.\n\nAdditionally, use the macro in ecc_digits_from_bytes(), whose \"nbytes\"\nparameter is a ->key_size() return value in some instances, or a\nuser-specified ASN.1 length in the case of ecdsa_get_signature_rs().","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00287,"percentile":0.13917,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/f02f0218be412cff1c844addf58e002071be298b","tags":[]},{"url":"https://git.kernel.org/stable/c/f2133b849ff273abddb6da622daddd8f6f6fa448","tags":[]},{"url":"https://git.kernel.org/stable/c/921b8167f10708e38080f84e195cdc68a7a561f1","tags":[]},{"url":"https://git.kernel.org/stable/c/b16510a530d1e6ab9683f04f8fb34f2e0f538275","tags":[]}],"priority":{"score":7.7,"factors":[{"name":"EPSS percentile","points":2.78},{"name":"CVSS severity","points":4.9}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 55779f26eab9af12474a447001bd17070f055712, < f02f0218be412cff1c844addf58e002071be298b",">= c6ab5c915da460c0397960af3c308386c3f3247b, < f2133b849ff273abddb6da622daddd8f6f6fa448",">= c6ab5c915da460c0397960af3c308386c3f3247b, < 921b8167f10708e38080f84e195cdc68a7a561f1",">= c6ab5c915da460c0397960af3c308386c3f3247b, < b16510a530d1e6ab9683f04f8fb34f2e0f538275",">= 6.6.70, < 6.6.99"]},{"vendor":"Linux","product":"Linux","versions":["6.10"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-15T21:46:35.354551Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-15868","exploited":false,"provenance":"source"}}