JLSEC-2026-2369: In all builds that make use of (D)TLS, including default builds, there is a series of conditional...
In all builds that make use of (D)TLS, including default builds, there is a series of conditional states during the TLS shutdown which could lead to a heap-use-after free. If an application ended up getting a partial wolfSSLread() which is sometimes caused by a small user buffer passed in, then called wolfSSLshutdown for a bidirectional close and attempted to wolfSSLread() again while the peer continues trying to send data during the shutdown it would lead to a state where a potential heap-use-after free happened.
Affected Software
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which applications are exposed to this issue?
Applications using builds with (D)TLS are affected, including default builds. Exploitation depends on the application using wolfSSL_read(), receiving a partial read, initiating a bidirectional wolfSSL_shutdown(), and then calling wolfSSL_read() again while the peer continues sending data.
What does an attacker need to do to trigger the condition?
An attacker needs to be able to act as the TLS peer and continue sending data during shutdown. The application must also follow the specific read-shutdown-read sequence after a partial wolfSSL_read(), which can occur when a small user buffer is used.
How can I determine whether my application may be affected?
Review TLS connection-handling code for calls to wolfSSL_read() after a bidirectional wolfSSL_shutdown(). Prioritize paths where reads can be partial, particularly when small buffers are passed to wolfSSL_read(), and where the peer may continue transmitting during shutdown.