Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
TlsSessionIdIsValid looks up the session ID of a DTLS ClientHello through the external session cache get callback with a copy flag that has no initial value, and releases the returned session when the flag reads zero without holding a reference. A session the application still keeps can be freed, and a repeated ClientHello then reads and frees it again.
In DTLS multicast builds, ChangeCipherSpec processing uses the peer ID byte from the record header as a direct index into the 100-entry per-peer sequence table. An enrolled ID of 100 to 255 makes the update write past the table, and an in-range ID updates the entry at that index, not the entry enrolled for the peer.
A TLS 1.2 or DTLS 1.2 session ticket carries the session ID context of the connection that issued it, but the server never compares that context when the ticket is presented. A ticket issued under one context resumes under another that shares the ticket-encryption key, with peer authentication taken as done.
The TLS 1.2 and DTLS 1.2 session cache is shared by every WOLFSSL_CTX in a process and is searched by session ID and side only. A client holding a session from one context can resume it on another context in the same process, which then skips its own client authentication.
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.
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.
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.
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.
GetInputData_ex rejects a negative used length or maximum length only in its non-DTLS branch, and the DTLS fast path in the record loop skips the refill call when an unsigned length difference is large. A corrupted input buffer descriptor that ends a TLS connection with an error is therefore parsed on DTLS, leading to reads past a 5-byte buffer.
When DTLS handshake fragments overlap or bridge two reassembly buckets, DtlsMsgCombineFragBuckets grows a bucket with a realloc. The old bucket is released without being wiped, in both the realloc and the no-realloc builds, and its handshake fragment bytes stay in freed heap memory.
wolfSSL keeps plaintext copies of DTLS handshake messages for retransmission and reassembly. DtlsMsgDelete, DtlsMsgDestroyFragBucket and the DTLS 1.3 retransmit and fragment buffer releases free these copies without wiping them, so handshake bytes including Finished verify_data stay in freed heap memory.
With WOLFSSL_DTLS_NO_HVR_ON_RESUME, a DTLS 1.2 server skips the cookie exchange when the ClientHello session ID matches any entry in the process-wide session cache. The match is not tied to the receiving context, so a known session ID lets spoofed ClientHellos reach stateful handshake processing.
The TLS 1.2 and DTLS 1.2 resumption path treats a session as expired only when the server clock is past its creation time plus the timeout. A ticket whose creation time is ahead of the clock, as after a backward clock step, is never rejected and resumes beyond its intended lifetime.
// No embargoed advisories.