Vulnerability · Published Jun 25, 2026 · Assigned by wolfSSL
CVE-2026-10512X25519 x86_64 assembly final reduction leaves non-canonical field element
Low 2.3
In plain English
A low-severity security flaw in wolfSSL from wolfSSL. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 39% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.24 | wolfssl | 5.9.2-r0 | ALPINE-CVE-2026-10512 |
| Debian:12 | wolfssl | no fix listed | DEBIAN-CVE-2026-10512 |
| Debian:13 | wolfssl | no fix listed | DEBIAN-CVE-2026-10512 |
| Ubuntu:22.04:LTS | wolfssl | no fix listed | UBUNTU-CVE-2026-10512 |
| Ubuntu:24.04:LTS | wolfssl | no fix listed | UBUNTU-CVE-2026-10512 |
| Ubuntu:25.10 | wolfssl | no fix listed | UBUNTU-CVE-2026-10512 |
| Ubuntu:26.04:LTS | wolfssl | no fix listed | UBUNTU-CVE-2026-10512 |
| Ubuntu:26.10 | wolfssl | no fix listed | UBUNTU-CVE-2026-10512 |
Affected products (as reported)
Weakness: CWE-682 · Vector: 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