Settings that mitigate this vulnerability in affected versions (secp256r1 only, all other curves are affected):
Users with long-term private ECC ECDSA keys performing ECDSA sign operations with the USE_FAST_MATH setting (–enable-fastmath).
Users who have disabled the default enabled timing resistance while also using fastmath (–disable-harden) or using normal math (–disable-fastmath) will continue to be susceptible to timing attacks including this vulnerability.
There is a potential leak of nonce sizes when performing ECDSA signing operations. The leak is considered to be difficult to exploit but it could potentially be used to recover private ECC keys in wolfSSL versions prior to release 4.1.0.
Users with long-term private ECC ECDSA keys, performing ECDSA signing operations with the fastmath library should:
- update to wolfSSL version 4.1.0
- replace any long-term private ECC ECDSA keys.
- Not disable timing resistance
The research for this vulnerability is not yet publicly available, a public disclosure containing more details is currently scheduled for September 2nd 2019. CVE-2019-13628 has been reserved for when the public disclosure is made available.
More available upon public disclosure of research. The patch fixing this issue can be viewed at this link: https://github.com/wolfSSL/wolfssl/pull/2353/files
Please contact email@example.com if you have any questions.