Description
In wolfSSL 5.8.4, constant-time masking logic in sp_256_get_entry_256_9 is optimized into conditional branches (bnez) by GCC when targeting RISC-V RV32I with -O3. This transformation breaks the side-channel resistance of ECC scalar multiplication, potentially allowing a local attacker to recover secret keys via timing analysis.
Metrics
CVSS 3.1 4.7/10
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:NWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| wolfSSL | wolfSSL | < 5.9.0 |
References
- https://github.com/wolfSSL/wolfssl/pull/9855Issue Tracking
Timeline
- Published
- Mar 19, 2026
- Last modified
- Jun 17, 2026
- NVD status
- Analyzed