Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
With WOLFSSL_THREADED_CRYPT, the per-record AES-GCM nonce field that the worker-thread encrypt call reads is populated from the connection IVs only in old FIPS builds and is otherwise left at zero. The worker's error return is discarded and eight bytes of that field are copied into the record. In ByteRay's tests the peer rejected these records while wolfSSL_write reported success.
With WOLFSSL_THREADED_CRYPT, application records are handed to worker threads for encryption. The TLS 1.3 record builder has no such handoff and encrypts inline, but the send path still queues the finished record as a TLS 1.2 job. With AES-GCM the worker corrupts the record before it is sent; with other suites the record is never sent and the seventeenth write spins forever.
The four WOLFSSL_THREADED_CRYPT worker functions index a 16-entry job array with a caller-supplied value that is never range-checked. wolfSSL_AsyncEncrypt also marks a job done whatever the AES-GCM call returns, so when key setup or encryption fails the record is transmitted with its plaintext still in place.
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.
// No embargoed advisories.