Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
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.
In the Linux AF_ALG port, wc_AesGcmDecrypt fetches the kernel's result with one read() or readv() and treats only a negative return as an error. After a zero or short transfer the function returns success, and the caller receives stale buffer contents as authenticated plaintext.
In the Linux AF_ALG port, wc_AesGcmEncrypt fetches the ciphertext and tag from the kernel crypto socket with one read() or readv() and treats only a negative return as an error. After a zero or short transfer it returns success with stale bytes in the output and tag buffers.
In builds with WOLFSSL_KCAPI and CUSTOM_RAND_GENERATE_BLOCK, wc_hwrng_generate_block fills the request from /dev/hwrng in a loop that treats only a return of -1 from read() as an error. A read that returns zero bytes makes no progress, so the loop never ends and the calling thread spins.
// No embargoed advisories.