---
title: "wolfSSL TLS 1.3: use-after-free in PQC hybrid key-share error path (CVE-2026-5460)"
url: "https://pqt-19a6ffd695e12a.pages.dev/feed/2026-04-09-wolfssl-tls-1-3-use-after-free-in-pqc-hybrid-key/"
date: "2026-04-09"
classification: "Implementation vulnerability · Demonstrated"
action: "Patch"
affects: ["X25519MLKEM768"]
site: "PQ Tracker, maintained by zkSecurity"
reviewed: "2026-11-25"
license: "https://creativecommons.org/licenses/by/4.0/"
---

# wolfSSL TLS 1.3: use-after-free in PQC hybrid key-share error path (CVE-2026-5460)

2026-04-09 · Implementation vulnerability · Demonstrated · Action: patch

A malicious TLS 1.3 server sending a truncated PQC hybrid KeyShare could make a wolfSSL client's error-cleanup path write zeros over an already freed ML-KEM key object. It was fixed in wolfSSL 5.9.1; the fix was incomplete and a follow-up (CVE-2026-7531) was fixed in 5.9.2. This is a memory-safety bug in the hybrid key-share parser; no key compromise is described.

- Affects: [X25519MLKEM768](https://pqt-19a6ffd695e12a.pages.dev/algorithms/hybrid-tls-x25519mlkem768/)

## Sources

- [CVE-2026-5460 record](https://www.cve.org/CVERecord?id=CVE-2026-5460)
- [CVE-2026-7531 record (incomplete-fix follow-up)](https://www.cve.org/CVERecord?id=CVE-2026-7531)
- [wolfSSL security vulnerabilities page](https://www.wolfssl.com/docs/security-vulnerabilities/)

## Related entries

- 2026-09-29 · Implementation vulnerability · Demonstrated · Action: patch · [russh hybrid ML-KEM-768+X25519 accepted an all-zero X25519 key (CVE-2026-102824)](https://pqt-19a6ffd695e12a.pages.dev/feed/2026-09-29-russh-hybrid-ml-kem-768-x25519-accepted-an-all-z/)
- 2026-08 · Standards action · [RFC 10024 published: hybrid ECDHE-MLKEM key agreement for TLS 1.3](https://pqt-19a6ffd695e12a.pages.dev/feed/2026-08-rfc-10024-published-hybrid-ecdhe-mlkem-key-agree/)
- 2026-07 · Standards action · [RFC 9954 published: Hybrid Key Exchange in TLS 1.3 (design document)](https://pqt-19a6ffd695e12a.pages.dev/feed/2026-07-rfc-9954-published-hybrid-key-exchange-in-tls-1/)
- 2026-03-13 · Implementation vulnerability · Demonstrated · Action: patch · [OpenSSL TLS 1.3 server could skip X25519MLKEM768 for a classical group (CVE-2026-2673)](https://pqt-19a6ffd695e12a.pages.dev/feed/2026-03-13-openssl-tls-1-3-server-could-skip-x25519mlkem768/)
