CVE-2026-5460: Heap Use-After-Free in PQC Hybrid KeyShare Error Cleanup in wolfSSL TLS 1.3
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 TLSXKeyShareFreeAll(), which attempts to call ForceZero() on the already-freed KyberKey, resulting in writes of zero bytes over freed heap memory.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
alpine/wolfsslto a version that resolves this vulnerability.Fixed in 5.9.1-r0 - Upgrade
Upgrade
debian/wolfsslto a version that resolves this vulnerability.Fixed in 5.9.2-1.2
Event History
Frequently Asked Questions
What is the severity of CVE-2026-5460?
CVE-2026-5460 is considered a high severity vulnerability due to the potential for exploitation through a heap use-after-free condition.
How do I fix CVE-2026-5460?
To fix CVE-2026-5460, update to the latest version of wolfSSL where the vulnerability has been addressed.
What type of vulnerability is CVE-2026-5460?
CVE-2026-5460 is classified as a heap use-after-free vulnerability affecting the PQC hybrid KeyShare processing in wolfSSL.
When was CVE-2026-5460 published?
CVE-2026-5460 was published on an unspecified date, but it's crucial to check for the most recent updates and patches provided by wolfSSL.
Which versions of wolfSSL are affected by CVE-2026-5460?
CVE-2026-5460 affects versions of wolfSSL that implement TLS 1.3 with PQC hybrid KeyShare processing.