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_KeySh...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Alpine:v3.23wolfssl |
< 5.9.1-r0→ 5.9.1-r0 |
5.9.1-r0 |
| Alpine:v3.24wolfssl |
< 5.9.1-r0→ 5.9.1-r0 |
5.9.1-r0 |
Original description The description as published by the source.
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.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory security.alpinelinux.org