CVE-2026-10512

X25519 x86_64 assembly final reduction leaves non-canonical field element

State
Published
Severity
2.3 Low
Published
Jun 25, 2026
Updated
Jun 26, 2026
Reserved
Jun 1, 2026

Read the record on cve.org

Description

The X25519 x86_64 assembly implementation fails to clear the most significant bit during the final modular reduction, so the computed result may not be fully reduced modulo the field prime 2^255 - 19. This can leave the field element in a non-canonical form, producing an incorrect result from the scalar multiplication and potentially a wrong shared secret. The final carry-propagation chains in the x64 and AVX2 reduction routines could overflow into the top bit, and the high limb was not masked afterward, so the 255-bit field element was left non-canonical.

Scores

CVSSScoreVectorSource
4.02.3 LowCVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NwolfSSL

Weaknesses

Affected Products

ProductVersions
wolfSSLwolfSSL
  • 5.6.4 through 5.9.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.