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 the Xilinx AF_ALG RSA offload path, wc_RsaFunctionSync accepts any positive return from read() as a complete result. On a short read it copies only the bytes received but reports the full key length as valid output, so the caller treats a partly stale buffer as a genuine RSA result.
// No embargoed advisories.