CVEfocus › CVE database › CVE-2024-1544

CVE-2024-1544ECDSA nonce bias caused by truncation

CVSS 4.1 MediumEPSS 0.6% (higher than 44% of CVEs)Published 2024-08-27Updated 2026-01-27Assigner: wolfSSL

Generating the ECDSA nonce k samples a random number r and then truncates this randomness with a modular reduction mod n where n is the order of the elliptic curve. Meaning k = r mod n. The division used during the reduction estimates a factor q_e by dividing the upper two digits (a digit having e.g. a size of 8 byte) of r by the upper digit of n and then decrements q_e in a loop until it has the correct size. Observing the number of times q_e is decremented through a control-flow revealing side-channel reveals a bias in the most significant bits of k. Depending on the curve this is either a negligible bias or a significant bias large enough to reconstruct k with lattice reduction methods. For SECP160R1, e.g., we find a bias of 15 bits.

CWE-203

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
4Fix pending
3Under investigation
2Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10wolfsslFix pendingUBUNTU-CVE-2024-1544
Ubuntu 26.04wolfsslUnder investigationUBUNTU-CVE-2024-1544
Ubuntu 25.10wolfsslWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-1544
Ubuntu 24.04wolfsslUnder investigationUBUNTU-CVE-2024-1544
Ubuntu 22.04wolfsslUnder investigationUBUNTU-CVE-2024-1544
Ubuntu 20.04wolfsslWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-1544
Ubuntu 18.04wolfsslFix pendingUBUNTU-CVE-2024-1544
Ubuntu 16.04wolfsslFix pendingUBUNTU-CVE-2024-1544
Debian 13wolfsslFixed5.7.2-0.1DEBIAN-CVE-2024-1544
Debian 12wolfsslFix pendingDEBIAN-CVE-2024-1544

What the vendor says

As published in the CVE record by wolfSSL, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.