Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
The MAXQ10xx wc_InitMutex() creates a shared memory object, publishes a pointer to it and only then initializes the mutex inside. If a step fails after creation, the object stays behind uninitialized. The next attempt finds it, skips initialization and reports success. Error paths also leak the descriptor and the mapping.
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.
DoAlert rejects an alert record whose payload is not exactly two bytes, but the fatal unexpected_message alert it sends in reply is compiled only with WOLFSSL_EXTRA_ALERTS. A default build drops the connection without telling the peer why.
DoAlert closes a connection once the peer has sent WOLFSSL_ALERT_COUNT_MAX alert records. The fatal unexpected_message alert that announces this is compiled only with WOLFSSL_EXTRA_ALERTS, so a default build ends the connection with ALERT_COUNT_E and sends nothing.
DoCertificateVerify maps its failures to decode_error, decrypt_error or bad_certificate alerts only when WOLFSSL_EXTRA_ALERTS is defined. In a default build a server that rejects a client's CertificateVerify closes the connection without sending any alert.
When the DTLS stateless cookie exchange fails, DoClientHello asks TranslateErrorToAlert for an alert and sends one only if the error code is in that function's list. Codes outside the list, such as MEMORY_E, end the handshake with no alert to the client.
The server-side ClientKeyExchange handler rejects an invalid X25519, X448 or ECC public key and a mismatched RSA premaster length, but the fatal alerts for those four cases are compiled only with WOLFSSL_EXTRA_ALERTS. A default build closes the connection without an alert.
wolfSSL closes a connection after WOLFSSL_MAX_EMPTY_RECORDS consecutive zero-length application-data records. The fatal unexpected_message alert for that case is compiled only with WOLFSSL_EXTRA_ALERTS, so a default build returns EMPTY_RECORD_LIMIT_E and sends nothing.
When the record loop fails to read a record body for a reason other than WANT_READ, for example MEMORY_E while growing the input buffer, the fatal alert is compiled only with WOLFSSL_EXTRA_ALERTS. A default build returns the raw error, and the DTLS branch has no alert in any build.
When DoTls13ServerHello fails, DoServerHello sends a fatal alert only if TranslateErrorToAlert knows the error code. For codes outside its list, such as MEMORY_E, it returns invalid_alert and the client closes the connection without sending any alert.
The client-side ServerKeyExchange handler rejects an invalid X25519, X448 or ECC server key and an unsupported signature algorithm, but the fatal alerts for those four cases are compiled only with WOLFSSL_EXTRA_ALERTS. A default build drops the handshake without an alert.
The server-side resumption handler rejects a ClientHello that drops extended master secret or omits the resumed session's cipher suite, but the fatal alerts for those three cases are compiled only with WOLFSSL_EXTRA_ALERTS. A default build ends the handshake without an alert.
The server rejects a ClientHello whose compression methods list is empty, lacks the null method or matches nothing usable, but the fatal alerts for those three cases are compiled only with WOLFSSL_EXTRA_ALERTS. A default build ends the handshake without an alert.
SendAlert_ex clears the pending-alert marker after calling SendBuffered without checking the result. When the flush fails with WANT_WRITE on a non-blocking socket, the retry hook finds no pending alert and the fatal alert is never retransmitted, so the peer sees the connection drop without it.
SendAlert_ex writes the alert history before the alert is flushed and does not revert it when the flush fails. The duplicate-alert guards in the TLS 1.3 handshake dispatcher and in DoServerHello then read a fatal alert as already sent and skip every later alert on the connection.
SendFatalAlertOnly, the function that turns a handshake error code into a fatal alert, is an empty stub unless WOLFSSL_EXTRA_ALERTS is defined. In a default build, out-of-order, duplicate and wrong-side handshake messages end the TLS 1.2 or DTLS connection without an alert.
TranslateErrorToAlert maps a fixed list of error codes to TLS 1.3 alerts and returns invalid_alert for all others. The handshake dispatcher sends no alert for that value, so errors such as MEMORY_E, SIDE_ERROR and VERIFY_FINISHED_ERROR end a TLS 1.3 handshake without an alert.
The client-authentication fail-safe in wolfSSL_accept returns WOLFSSL_FATAL_ERROR without storing a cause in ssl->error. wolfSSL_get_error then returns whatever the slot held before, which can be zero or a stale WANT_READ, so an application can misread a fatal authentication failure.
The client-authentication fail-safe in wolfSSL_accept_TLSv13 returns WOLFSSL_FATAL_ERROR without storing a cause in ssl->error. wolfSSL_get_error then returns a leftover value, zero or a stale WANT_READ or WANT_WRITE, so an application can misread a fatal authentication failure.
The server-authentication fail-safe in wolfSSL_connect_TLSv13 returns WOLFSSL_FATAL_ERROR without storing a cause in ssl->error. wolfSSL_get_error then returns a leftover value, zero or a stale WANT_READ or WANT_WRITE, and a retried connect call hits the same check again.
On Nucleus PLUS 2.3 builds, wolfSSL stores the last socket error in one writable global, Nucleus_Net_Errno, shared by every session and thread. Concurrent I/O on two connections can make one connection's error translation read the other's status code, so a would-block condition can be reported as a hard failure or the reverse.
In the wolfSSL sniffer, LoadNamedKey returns success when no registered named key matches the server name in a ClientHello. The session continues with no private key, the caller's diagnostic is never recorded, and the server name is missing from the monitoring output.
// No embargoed advisories.