Bug 2580372

Summary: CVE-2026-92391 rust: curl: curl_mime_free stack overflow by recursion [fedora-all]
Product: [Fedora] Fedora Reporter: Avinash Hanwate <ahanwate>
Component: rustAssignee: Rust SIG <rust-sig>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: amulhern, decathorpe, igor.raits, jchecahi, jistone, paumurph, rust-sig
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["c471e557-d2f0-402d-b6f9-b46aad08e259"]}
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-11-21 15:30:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2449640, 2550708    

Description Avinash Hanwate 2026-11-21 11:22:45 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

curl_mime_free stack overflow by recursion
==========================================

Project curl Security Advisory, October 14 2026
[Permalink](https://curl.se/docs/CVE-2026-92391.html)

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

A deeply nested multipart MIME structure constructed via the public API causes
a stack overflow in libcurl during normal cleanup operations. An excessive
recursion depth within `curl_mime_free` leads to unbounded stack frame
allocation during structure traversal, ultimately crashing the host process.

INFO
----

Normal mime setups typically contain a few parts up to extreme cases of
hundreds. This flaw needs thousands to trigger, the exact amount depending on
your system and configuration.

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

CWE-674: Uncontrolled Recursion

Severity: Low

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

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

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/d7546809d5bd548b69ec49fca2

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

 A - Upgrade curl to version 8.23.0

 B - Apply the patch to your local version

 C - Avoid the MIME API

TIMELINE
--------

This issue was reported to the curl project on September 12, 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!

Comment 1 Fabio Valentini 2026-11-21 15:30:51 UTC
This package does not include curl, it links dynamically to the system libcurl via the "curl" crate that provides Rust bindings for libcurl. If this package is affected is affected by this security issue at all, it needs to be fixed in the "curl" package itself.