CVE-2026-10512: X25519 x86_64 assembly final reduction leaves non-canonical field element
The X25519 x8664 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.
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2026-10512?
CVE-2026-10512 has a severity rating of low, with a CVSS score of 4.0.
How do I fix CVE-2026-10512?
To fix CVE-2026-10512, you should apply the available patch provided by wolfSSL.
What is the impact of CVE-2026-10512?
CVE-2026-10512 may lead to incorrect results in cryptographic operations due to non-canonical field elements.
What software is affected by CVE-2026-10512?
CVE-2026-10512 affects the X25519 x86_64 assembly implementation in wolfSSL.
When was CVE-2026-10512 published?
CVE-2026-10512 was published on June 25, 2026.