# CVE-2026-10512: X25519 x86_64 assembly final reduction leaves non-canonical field element

- Severity: Low 2.3 (CVSS:4.0, scored by wolfSSL) `CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2026-06-25T19:58:16.013Z
- Modified: 2026-06-26T16:53:52.440Z
- Weaknesses: CWE-682
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: wolfSSL

## 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.

(As written by CVE List.)

## Affected

- wolfSSL wolfSSL: from 5.6.4 up to 5.9.1; from 5.6.4 before 5.9.2

## Every score

- wolfSSL: CVSS:4.0 2.3 Low `CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/wolfSSL/wolfssl/pull/10536> (issue-tracking, patch)
- <https://www.wolfssl.com/docs/security-vulnerabilities/> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-10512](https://www.cve.org/CVERecord?id=CVE-2026-10512), CVE Terms of Use, modified 2026-06-26
- NVD: [CVE-2026-10512](https://nvd.nist.gov/vuln/detail/CVE-2026-10512), Public domain, modified 2026-06-26

---

Page: https://cve.day/CVE-2026-10512 · Whole record: https://cve.day/CVE-2026-10512.json · Rebuilt by cve.day 2026-11-25T22:59:26.426Z
