Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
The software DES/3DES core in wolfCrypt indexes its eight S-box tables with values that mix block data and round-key bits, and has no side-channel countermeasure. An attacker with power or electromagnetic measurement access can attempt to recover the key from traces of many encryptions.
With WC_NO_CACHE_RESISTANT defined, as the ESP-IDF and Arduino ESP32 platform defaults do, the timing-resistant ECC ladder in ecc_mulmod selects the points it doubles and adds by the current secret scalar bit. The variant that keeps operand addresses constant is compiled out.
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.
When WC_NO_CACHE_RESISTANT is defined, _sp_exptmod_ex in the SP math backend squares and multiplies into a temporary chosen by the current secret exponent bit. The masked constant-address variant in the same function is compiled out. No shipped configuration combines SP math with the macro.
The default software AES in wolfCrypt indexes its T-tables with state bytes that are the round key XORed with the data. The two compile-time countermeasures are off by default, so on builds without AES hardware acceleration an attacker with power or electromagnetic measurement access can attempt to recover the key.
The X448 Montgomery ladder in wolfCrypt runs on the secret scalar with no blinding, and no build option adds one. An attacker with power or electromagnetic measurement access to a device can attempt to recover the scalar by correlating traces of repeated X448 operations.
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.
wolfSSL enables X25519 scalar blinding only for the default non-small C build. The small implementation rejects blinding at compile time, and the shipped ESP-IDF template selects that implementation, so X25519 on such builds runs an unblinded Montgomery ladder on the private scalar.
// No embargoed advisories.