Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
The PEM reader behind PEM_read_bio_X509_CRL and PEM_X509_INFO_read_bio reads one byte after the header delimiter without checking the buffer bound. When the delimiter ends on the last byte of the buffer, which a streaming BIO allows, that byte is written one position past the heap allocation.
In IPv6 builds of the OpenSSL compatibility layer, wolfSSL_BIO_new_accept searches for a colon after the closing bracket of an IPv6 literal and passes the result to atoi without a NULL check. An accept string such as "[::1]" with no port makes the process read through a NULL pointer.
wolfSSL_BIO_new_accept converts its port string with atoi and casts the result to a 16-bit field with no range check. A port string of "-1" becomes 65535 and "70000" becomes 4464, and wolfSSL_BIO_do_accept then binds that port and reports success.
wolfSSL_BIO_set_conn_port rejects a port of zero or below but has no upper bound. A value above 65535 is truncated to 16 bits when stored, so "70000" becomes 4464 and "65536" becomes 0, and the function returns success. A later connect uses the truncated port.
wolfSSL_BIO_do_connect passes a literal timeout of zero to the TCP connect helper, so the library's connect timeout and wolfIO_SetTimeout have no effect on this call. Reads on the resulting socket BIO use a blocking recv with no receive timeout. A destination that accepts and then stays silent holds the calling thread.
The OpenSSL-compatible OCSP request API has no timeout of its own and is non-blocking only if the caller's BIO is. With a blocking socket BIO, wolfSSL_OCSP_REQ_CTX_nbio blocks in the write and then in the HTTP response loops. A responder that sends a partial header and goes silent holds the calling thread indefinitely.
// No embargoed advisories.