A heap use-after-free exists in wolfSSL's TLS 1.3 post-quantum cryptography (PQC) hybrid KeyShare processing. In the error handling path of TLSXKeyShareProcessPqcHybridClient() in src/tls.c, the inner function TLSXKeyShareProcessPqcClientex() frees a KyberKey object upon encountering an error. The caller then invokes TLSXKeyShare_FreeAll(), which attempts to call ForceZero() on the already-freed KyberKey, resulting in writes of zero bytes over freed heap memory.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5460.json",
"cwe_ids": [
"CWE-416"
],
"cna_assigner": "wolfSSL"
}{
"cpe": "cpe:2.3:a:wolfssl:wolfssl:*:*:*:*:*:*:*:*",
"source": [
"AFFECTED_FIELD",
"CPE_RANGE"
],
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "5.9.1"
}
]
}