REDHAT-BUG-2529206: Use After Free
When performing transfers via libcurl’s multi interface, pooled TLS connections can outlive their originating easy handles. In OpenSSL 3 provider configurations, libcurl attaches an allocated library context to the easy handle's state and passes it to OpenSSL without acquiring an ownership reference; destroying the easy handle prematurely frees this context while the active connection retains a dangling pointer, leading to a heap-use-after-free upon subsequent I/O or post-handshake operations.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using libcurl's multi interface with pooled TLS connections are exposed when using an OpenSSL 3 provider configuration. The issue depends on a TLS connection surviving after the easy handle that created it is destroyed.
What sequence is required to trigger the use-after-free?
An application must destroy an originating easy handle while its pooled TLS connection remains active. Subsequent I/O or post-handshake operations on that connection can then access the freed OpenSSL library context.
Are applications using libcurl's multi interface affected by default?
The available information identifies OpenSSL 3 provider configurations as a condition for exposure. It does not establish whether this configuration is enabled by default in a particular curl, libcurl, or operating-system build.
How can I assess whether an application is affected?
Review whether the application uses libcurl multi transfers and connection pooling, destroys easy handles before associated TLS connections are no longer reusable, and runs with an OpenSSL 3 provider configuration. Affected behavior may manifest during later connection I/O or post-handshake processing.