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 WOLFSSL_THREADED_CRYPT job slots are shared between the connection thread and worker threads through plain integer flags with no synchronisation. A slot is reported ready before its record is staged, connection teardown frees cipher state and job buffers while workers may still use them, and the send path ignores a failed output buffer allocation before copying a full record.
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.
// No embargoed advisories.