REDHAT-BUG-2550692: Use After Free

Published Oct 13, 2026
·
Updated

FTP wildcard write callback mixup =================================

Project curl Security Advisory, October 14 2026 Permalink

VULNERABILITY -------------

When an FTP wildcard LIST operation fails, libcurl omits the restoration path meant for successful listings, leaving the write callback set to the internal listing parser and the write callback data pointing directly to the easy handle. Subsequent reuse of this handle triggers an immediate crash, and cloning it via curleasyduphandle() copies this corrupted state into the duplicate. If the original handle is subsequently freed, executing a transfer on the cloned handle causes a heap use-after-free read against the dangling handle reference; alternatively, reusing the original or cloned handle while reconfiguring only CURLOPTWRITEDATA (and omitting CURLOPTWRITEFUNCTION) results in type confusion, forcing the internal parser to interpret incoming server response bytes into memory at the application-supplied write data pointer.

INFO ----

This flaw needs CURLOPTFTPWILDCARD enabled to trigger.

The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2026-92388 to this issue.

CWE-416: Use After Free

Severity: Low

This bug is considered a C mistake (likely to have been avoided had we not been using C).

AFFECTED VERSIONS -----------------

- Affected versions: curl 7.21.0 to and including 8.22.0 - Not affected versions: curl < 7.21.0 and >= 8.23.0 - Introduced-in: https://github.com/curl/curl/commit/0825cd80a62c21725fb

libcurl is used by many applications, but not always advertised as such!

This flaw does not affect the curl command line tool.

SOLUTION --------

- Fixed-in: https://github.com/curl/curl/commit/ba8f8a7f27a5c5e19e4ef212 and https://github.com/curl/curl/commit/b85acacec9b38442741bb019bc9

RECOMMENDATIONS ---------------

A - Upgrade curl to version 8.23.0

B - Apply the patch to your local version

C - Never reuse easy handles for or after FTP wildcard matches

TIMELINE --------

This issue was reported to the curl project on September 11, 2026.

curl 8.23.0 was released on October 14, 2026, coordinated with the publication of this advisory.

CREDITS -------

- Reported-by: Joshua Rogers (Aisle Research) - Patched-by: Daniel Stenberg

Thanks a lot!

Affected Software

1 affected component
curl libcurl>=7.21.0<=8.22.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade curl to a version that resolves this vulnerability.

    Fixed in 8.23.0
  2. Compensating control

    Never reuse easy handles for or after FTP wildcard matches.

Event History

Oct 13, 2026
Data Sourced
via Red Hat·04:55 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications are exposed only if they enable CURLOPT_FTP_WILDCARD and an FTP wildcard LIST operation fails. The vulnerable state is reached when the affected easy handle is subsequently reused or duplicated.

2

What can happen after a failed wildcard LIST operation?

Reusing the original handle can cause an immediate crash. Duplicating the handle copies the corrupted callback state; if the original is then freed, a transfer using the duplicate can perform a heap use-after-free read.

3

Are there additional unsafe reuse patterns to check for?

Yes. Reusing the original or cloned handle while setting CURLOPT_WRITEDATA without also setting CURLOPT_WRITEFUNCTION can cause type confusion, causing the internal listing parser to process server response bytes using the application-supplied write-data pointer.

4

What can be done if patching is not immediately possible?

Disable CURLOPT_FTP_WILDCARD where possible. If wildcard LIST operations are required, avoid reusing or duplicating handles after a failed wildcard LIST operation, and do not change only CURLOPT_WRITEDATA on such handles without also setting CURLOPT_WRITEFUNCTION.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203