Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
The non-blocking TFM exponentiation fp_exptmod_nb selects the operands of its multiply and reduce steps by the current bit of the RSA private exponent in every build, and of its square steps when WC_NO_CACHE_RESISTANT is defined. The code is compiled only with WC_RSA_NONBLOCK.
In the TFM backend, fp_exptmod sends a base of 2 to _fp_exptmod_base_2 before it selects the timing-resistant ladder. That routine does work that varies with the secret exponent bits, and DH key generation with generator 2 runs it on the private exponent.
The ESP-IDF and Arduino ESP32 platform defaults define WC_NO_CACHE_RESISTANT. With it, the TFM exponentiation ladder _fp_exptmod_ct selects the operands of its multiply and square by the current secret exponent bit, and the variant that keeps operand addresses constant is compiled out.
// No embargoed advisories.