Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
wolfSSL returns decrypted application data through a pointer into its receive buffer. When more input is already buffered and the next record needs a larger buffer, GetInputData_ex() reallocates the buffer without checking for pending plaintext, and the next wolfSSL_read() copies from the freed block.
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.
ShrinkInputBuffer computes the bytes left in the input buffer as a signed value and checks it only against an upper limit. A negative value, which means the cursor is already past the buffered data, is accepted: the dynamic buffer is freed and the 5-byte static buffer is installed with a length of about 4 GB.
// No embargoed advisories.