Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
In the wolfSSL sniffer, the handshake case of the record loop advances its cursor past the decryption trailer but does not reduce the remaining-bytes count by the same amount. A following handshake message in the same record is then length-checked against a stale count, and the sniffer reads past the end of the heap buffer that holds the decrypted record.
For TLS 1.3 records the wolfSSL sniffer derives the padding size from the decrypted plaintext and does not bound it. The handshake record loop advances by that size without adjusting its remaining-bytes count, so a following handshake message can make the sniffer read up to about a full record length past the heap buffer that holds the decrypted record.
The built-in OCSP and CRL lookup callbacks connect to the URL named in the peer's certificate and read the HTTP response with no time limit. A responder that accepts the connection and then stops sending keeps the verifying thread blocked inside the handshake call indefinitely.
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 sniffer discards a handshake message that continues in a later TLS record unless the rest of the message is already buffered. An endpoint of a monitored connection can fragment its handshake so that the sniffer never decodes the session.
MAXQ10xx builds keep the hardware crypto lock in a POSIX shared memory object with the fixed name /maxq-mutex and use an existing object without checking its owner, mode or contents. A local user who creates the object first can make wolfCrypt_Init() fail or make hardware operations block in every process that uses the secure element.
In IPv6 builds of the OpenSSL compatibility layer, wolfSSL_BIO_new_accept searches for a colon after the closing bracket of an IPv6 literal and passes the result to atoi without a NULL check. An accept string such as "[::1]" with no port makes the process read through a NULL pointer.
When wolfSSL_i2d_DSAparams allocates the output buffer for the caller and the DER encoding step then fails, it frees the buffer but leaves the caller's pointer set to the freed address. A caller that frees its output pointer on the error path, the usual OpenSSL pattern, frees the same memory twice.
wolfSSL_NewSession allocates a session from the caller's heap hint, zeroes it, and on a reference-count mutex failure frees it using the zeroed heap field. In static-memory builds the pool block is passed to the system free(), or to a different pool, instead of the pool it came from.
When record decryption fails on a TLS stream, DoProcessReplyEx returns without consuming the record or resetting its state. During shutdown the failure is not stored in ssl->error, so wolfSSL_shutdown reports the retryable WOLFSSL_SHUTDOWN_NOT_DONE and each retry fails on the same record and queues another alert.
When an Encrypt-then-MAC record fails its MAC check on a TCP connection, wolfSSL returns an error without consuming the record or resetting the record state machine. wolfSSL_shutdown then reports this permanent failure as WOLFSSL_SHUTDOWN_NOT_DONE, so an application that follows the documented retry loop calls it forever.
The function that waits for the peer's close_notify during wolfSSL_shutdown does not store the record-processing result in ssl->error. A permanent record failure, such as a failed MAC check, is returned as WOLFSSL_SHUTDOWN_NOT_DONE, and the failed record stays in the input buffer, so the documented retry loop never ends.
wolfSSL_clear() does not free the ECH retry configurations stored on a client object or clear their accepted flag. After one ECH rejection, any later rejection on the recycled object fails with a fatal error in SetRetryConfigs, and the getter can return the previous connection's retry configurations.
wolfSSL_clear() does not reset ssl->options.echAccepted, and no server code path clears it. After one accepted ECH connection, a recycled server object answers any later ClientHello whose ECH extension fails to decrypt, including GREASE, with a fatal decrypt_error alert instead of falling back to the outer ClientHello.
A TLS 1.3 client records that the server selected a pre-shared key in a flag that wolfSSL_clear does not reset. After a PSK or resumption handshake, a client object that is cleared and reused rejects the next full certificate handshake with a message-ordering error. The stale flag does not let a server skip authentication.
The wolfSSL sniffer reads the two-byte PSK identity length from a ClientHello pre-shared-key extension before it checks that those bytes lie inside the extension. A truncated extension of 2 or 3 bytes causes a read of up to two bytes past the extension and, at the end of an exactly sized input buffer, past the heap allocation.
In the sniffer's static-RSA key setup, SetupKeys skips the two-byte length prefix of the ClientKeyExchange body and then checks the RSA ciphertext length against the byte count from before the skip. A body exactly as long as the ciphertext, or one byte longer, makes the RSA decryption read up to two bytes past the heap buffer that holds the message.
In the sniffer's static-ECC key setup, SetupKeys skips the one-byte length prefix of the ClientKeyExchange body and then checks the encoded point length against the byte count from before the skip. A body of exactly the expected point size makes the ECC point import read one byte past the heap buffer that holds the message.
The wolfSSL sniffer probes the first four bytes of a new data segment for an SSLv2-style hello after checking only that one byte is present. A 1 to 3 byte segment is read up to three bytes past its end; with chained input the read can cross the end of an exactly sized heap buffer.
The sniffer's Certificate handler advances past the 3-byte certificate length without reducing its remaining-byte count. The following length check accepts a certificate size up to 3 bytes larger than the data present, and the watch-mode code hashes that span, reading up to 3 bytes past the heap input buffer.
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.
The entropy collection loop in wolfSSL_RAND_egd tests errno for EAGAIN or EINTR before it tests for a zero-entropy reply, without checking that the preceding call failed. With a stale errno value, every zero-entropy reply from the EGD daemon is retried and the loop never exits.
wolfSSL_clear() does not release the handshake key slot and the related key-exchange buffers. If a handshake is abandoned while suspended and the object is recycled, the next handshake fails in AllocKey with BAD_STATE_E, and the previous connection's ephemeral key material stays allocated and unwiped until then.
wolfSSL_BIO_do_connect passes a literal timeout of zero to the TCP connect helper, so the library's connect timeout and wolfIO_SetTimeout have no effect on this call. Reads on the resulting socket BIO use a blocking recv with no receive timeout. A destination that accepts and then stays silent holds the calling thread.
The OpenSSL-compatible OCSP request API has no timeout of its own and is non-blocking only if the caller's BIO is. With a blocking socket BIO, wolfSSL_OCSP_REQ_CTX_nbio blocks in the write and then in the HTTP response loops. A responder that sends a partial header and goes silent holds the calling thread indefinitely.
// No embargoed advisories.