Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
In static-memory builds with WOLFSSL_TICKET_NONCE_MALLOC, a TLS 1.3 ticket nonce longer than the inline buffer is allocated from the connection's memory pool and stored in the session cache, which later frees it with a NULL heap hint. A server that sends a long nonce makes the client pass a pool-interior pointer to the system allocator when the entry is evicted.
In static-memory builds, wolfSSL frees a connection's own heap blocks with the heap of the WOLFSSL_CTX attached at teardown, not the heap that allocated them. When an SNI callback moves the connection to a CTX with a different heap through wolfSSL_set_SSL_CTX, static-pool blocks are handed to the wrong allocator.
When a session with an oversized ticket is added to the session cache, wolfSSL allocates the temporary ticket buffer with a NULL heap hint but one error path frees it with the session's static-pool hint. In static-memory builds the system-heap block is linked into the pool's free list.
When a session cache entry is overwritten, wolfSSL frees the old entry's dynamically allocated TLS 1.3 ticket nonce with the heap hint of the connection doing the overwrite, not the one that allocated it. In static-memory builds that mix heap hints over the shared cache, the buffer goes to the wrong allocator.
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.
// No embargoed advisories.