{"id":"CVE-2026-5460","published":"2026-04-09T23:29:27Z","modified":"2026-04-10T13:51:18Z","title":"Heap Use-After-Free in PQC Hybrid KeyShare Error Cleanup in wolfSSL TLS 1.3","vendor":"wolfSSL","product":"wolfSSL","tier":"tail","description":{"text":"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 TLSX_KeyShare_ProcessPqcHybridClient() in src/tls.c, the inner function TLSX_KeyShare_ProcessPqcClient_ex() frees a KyberKey object upon encountering an error. The caller then invokes TLSX_KeyShare_FreeAll(), which attempts to call ForceZero() on the already-freed KyberKey, resulting in writes of zero bytes over freed heap memory.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0022,"percentile":0.12796,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://github.com/wolfssl/wolfssl/pull/10092","tags":[]}],"priority":{"score":7.0,"factors":[{"name":"EPSS percentile","points":2.56},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"wolfssl","affectedVersions":[{"vendor":"wolfSSL","product":"wolfSSL","versions":["< 5.9.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-10T13:51:11.637858Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-21240","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-wolfssl-cve-2026-5460","children":[{"from":"CVE-2026-5460","to":"CVE-2026-7531","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"This is an incomplete-fix follow-up to CVE-2026-5460 (released in 5.9.1): a malicious TLS 1.3 server sending a truncated PQC hybrid KeyShare can still trigger the error cleanup path to operate on freed memory.","from":"CVE.org","in":"CVE-2026-7531"},{"kind":"similar","provenance":"machine","score":0.38,"basis":"same product + CWE + description similarity"}]}]}}