Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
The wolfSSL sniffer grows its decrypted-data buffer with a realloc for each application-data record. When the allocator moves the block, the old block is released with the plaintext decoded so far still in it. The failure path of the same call clears the buffer; the success path does not.
When AddSessionToCache overwrites an existing cache entry and the new ticket needs a larger buffer, the previous dynamically allocated ticket is freed without being wiped. The old ticket stays in freed heap memory until the allocator reuses the block.
CreateTicket switches the session back to its static ticket buffer before building a new ticket. If the session's ticket was in a heap buffer, that buffer is freed without being wiped, and the previously installed ticket stays in freed heap memory.
When a server restores TLS 1.3 session state from a client ticket and the session's ticket nonce is in a heap buffer, the old nonce buffer is freed without being wiped. The path exists only in builds with WOLFSSL_TICKET_NONCE_MALLOC.
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.
The wolfSSL sniffer frees its per-flow TCP reassembly buffers without clearing them when a monitored session is torn down. Captured TLS records, with their headers and ciphertext, remain in freed heap memory of the sniffing process.
When a connection is freed, wolfSSL clears keys and secrets but releases the handshake reassembly buffer, the threaded-crypt staging buffers and the WOLFSSL object's inline record buffers without clearing them. Decrypted handshake data, and in some builds application plaintext, remains in freed heap memory.
When the record layer needs a larger output buffer, wolfSSL copies the queued record bytes to a new block and frees the old one without clearing it. The shrink paths clear the same buffers before freeing them. The input buffer is cleared on growth only while send-side encryption is on.
In builds with dynamic ticket nonces, SessionTicketNoncePopulate frees the previous TLS 1.3 ticket nonce without clearing it before it stores a new one. The old nonce stays in freed heap memory on every ticket renewal and on session deserialization.
When a new session ticket replaces a stored one, SetTicket and wolfSSL_set_SessionTicket free the previous heap-allocated ticket without clearing it. The old ticket, which a server may still accept, remains in freed heap memory after every renewal.
When wolfSSL_d2i_SSL_SESSION parses a serialized session into a session object that already holds a heap-allocated ticket, it frees the old ticket without clearing it. The previous ticket remains in freed heap memory.
When wolfSSL_DupSessionEx copies a session over one that already holds a heap-allocated ticket, the old ticket buffer is freed or reallocated without being cleared on every path. The previous ticket remains in freed heap memory.
wolfSSL_FreeSession clears the master secret and session id before freeing a session but releases the heap-allocated session ticket and TLS 1.3 ticket nonce without clearing them. EvictSessionFromCache has the same gap. Ticket material remains in freed heap memory.
During a session cache lookup, wolfSSL_GetSessionFromCache frees the destination session's existing heap-allocated ticket without clearing it before it installs a preallocated buffer. The previous ticket remains in freed heap memory on the resumption path.
ForceZero, the helper wolfSSL uses to wipe secrets, depends on the WC_BARRIER_DATA macro to stop the compiler from deleting its stores. Without GNU inline assembly that macro only evaluates the pointer and touches an unrelated volatile local, so the wipe can legally be removed and secrets can remain in memory.
In the fastmath backend, fp_clear wipes an integer's digits with the hardened force-zero routine only in FIPS builds. Other builds use a plain memset with no barrier, which an optimizing compiler is allowed to remove. The main key-free paths wipe their secrets separately, so the exposure is limited.
In the heap math backend, mp_clear on non-FIPS builds zeroes only the digits currently in use, with plain stores and no barrier, and then frees the buffer. A compiler may remove the stores, and digits beyond the in-use count are never cleared. The main key-free paths wipe their secrets separately.
In non-FIPS builds, sp_clear zeroes only the digits a big integer currently uses, with plain stores and no compiler barrier. Digits above the used count can keep residue of earlier values, and an optimizer may drop the stores. The library's own private-key teardowns use a separate full-buffer wipe.
In builds with WOLFSSL_TI_CRYPT, wc_AesFree is an empty function. The TI key setup copies the raw AES key into the Aes context, so the key stays in memory after the context is freed. The generic implementation clears the same context with ForceZero.
In builds with WOLFSSL_TI_CRYPT, wc_Des3Free is an empty function. The TI key setup copies the raw 24-byte Triple-DES key into the Des3 context, so the key stays in memory after the context is freed. The generic implementation clears the same context with ForceZero.
When the SRP password is set before the username, wolfSSL_CTX_set_srp_password keeps a cleartext copy on the heap in the WOLFSSL_CTX. All three paths that release that copy free it without overwriting it, so the password stays in freed memory.
// No embargoed advisories.