Description
wolfSSL 5.8.4 on RISC-V RV32I architectures lacks a constant-time software implementation for 64-bit multiplication. The compiler-inserted __muldi3 subroutine executes in variable time based on operand values. This affects multiple SP math functions (sp_256_mul_9, sp_256_sqr_9, etc.), leading to a timing side-channel that may expose sensitive cryptographic data.
Problem types
CWE-203 Observable Discrepancy
Product status
Any version before 5.9.0
Credits
Wind Wong
References
github.com/wolfSSL/wolfssl/pull/9855