{"id":"CVE-2025-37984","aliases":["CVE-2025-37984"],"related":[],"kind":"vulnerability","state":"published","title":"crypto: ecdsa - Harden against integer overflows in DIV_ROUND_UP()","summary":"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().","summarySource":"cvelist","descriptions":[{"lang":"en","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().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: crypto: ecdsa - Protección contra desbordamientos de enteros en DIV_ROUND_UP(). Herbert señala que DIV_ROUND_UP() puede desbordarse innecesariamente si la función de retorno -&gt;key_size() de una implementación de ecdsa devuelve un valor inusualmente grande. En su lugar, Herbert sugiere (para una división entre 8): X / 8 + !!(X y 7). Con base en esta fórmula, introduzca una macro genérica DIV_ROUND_UP_POW2() y úsela en lugar de DIV_ROUND_UP() para los valores de retorno de -&gt;key_size(). Además, utilice la macro en ecc_digits_from_bytes(), cuyo parámetro \"nbytes\" es un valor de retorno de -&gt;key_size() en algunos casos, o una longitud ASN.1 especificada por el usuario en el caso de ecdsa_get_signature_rs().","source":"nvd"}],"published":"2025-05-20T17:09:18.321Z","modified":"2026-10-15T22:18:23.410Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"type":"git","introduced":"55779f26eab9af12474a447001bd17070f055712","fixed":"f02f0218be412cff1c844addf58e002071be298b","status":"affected"},{"type":"git","introduced":"c6ab5c915da460c0397960af3c308386c3f3247b","fixed":"f2133b849ff273abddb6da622daddd8f6f6fa448","status":"affected"},{"type":"git","introduced":"c6ab5c915da460c0397960af3c308386c3f3247b","fixed":"921b8167f10708e38080f84e195cdc68a7a561f1","status":"affected"},{"type":"git","introduced":"c6ab5c915da460c0397960af3c308386c3f3247b","fixed":"b16510a530d1e6ab9683f04f8fb34f2e0f538275","status":"affected"},{"type":"semver","introduced":"6.6.70","fixed":"6.6.99","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.10","status":"unaffected"},{"type":"semver","introduced":"6.6.99","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.39","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.14.5","lastAffected":"6.14.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.15","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.6.70","fixed":"6.6.99"},{"status":"affected","introduced":"6.10","fixed":"6.12.39"},{"status":"affected","introduced":"6.13","fixed":"6.14.5"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/f02f0218be412cff1c844addf58e002071be298b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f2133b849ff273abddb6da622daddd8f6f6fa448","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/921b8167f10708e38080f84e195cdc68a7a561f1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b16510a530d1e6ab9683f04f8fb34f2e0f538275","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-15T21:46:35.354Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-37984","url":"https://www.cve.org/CVERecord?id=CVE-2025-37984","licence":"CVE Terms of Use","modified":"2026-10-15T21:52:05.648Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-37984","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37984","licence":"Public domain","modified":"2026-10-15T22:18:23.410Z"}],"updatedAt":"2026-11-25T22:58:58.320Z","epss":{"score":0.00189,"percentile":0.08934,"date":"2026-12-01T12:00:22.000Z"}}