Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
In the wolfSSL EVP compatibility layer, initializing AES-CBC or DES-EDE3-CBC with a key and a NULL IV on a fresh context succeeds and leaves the IV register at zero. Every message under that key is then encrypted with the same all-zero IV, and no error is reported.
wolfSSL_EVP_CipherInit keeps a previously set IV when a context is re-initialized without one, but it decides that an IV exists from the IV size field, which is set whether or not an IV was given. A cipher-then-key initialization with no IV programs sixteen zero bytes as the IV and returns success.
In the Linux AF_ALG port, wc_AesCbcDecrypt reads the plaintext from the kernel crypto socket with one read() and treats only a negative return as an error. A zero or short read leaves the output buffer wholly or partly unchanged and the function still returns success.
In the Linux AF_ALG port, wc_AesCbcEncrypt reads the ciphertext from the kernel crypto socket with one read() and treats only a negative return as an error. After a zero or short read it reports success and copies the next chaining IV from the stale tail of the output buffer.
// No embargoed advisories.