Bug 2270498 (CVE-2024-2398) - CVE-2024-2398 curl: HTTP/2 push headers memory-leak
Summary: CVE-2024-2398 curl: HTTP/2 push headers memory-leak
Keywords:
Status: NEW
Alias: CVE-2024-2398
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2271825 2270503 2271824
Blocks: 2270489
TreeView+ depends on / blocked
 
Reported: 2024-03-20 15:35 UTC by Patrick Del Bello
Modified: 2024-04-18 08:05 UTC (History)
48 users (show)

Fixed In Version: curl 8.7.0
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in curl. When an application configures libcurl to use HTTP/2 server push and the amount of received headers for the push surpasses the maximum allowed limit, libcurl aborts the server push. When aborting, libcurl does not free all the previously allocated headers, resulting in a memory leak.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Patrick Del Bello 2024-03-20 15:35:48 UTC
When an application tells libcurl it wants to allow HTTP/2 server push, and the amount of received headers for the push surpasses the maximum allowed limit (1000), libcurl aborts the server push. When aborting, libcurl inadvertently does not free all the previously allocated headers and instead leaks the memory.

Further, this error condition fails silently and is therefore not easily detected by an application.

If a server sends many `PUSH_PROMISE` frames with an excessive amount of headers, this can lead to multiple megabytes of memory leaked *per response*.

HTTP/2 server push is a relatively rarely used feature.

Reference:
https://curl.se/docs/CVE-2024-2398.html

Upstream patch:
https://github.com/curl/curl/commit/deca8039991886a559b67bcd6

Comment 3 Guilherme de Almeida Suckevicz 2024-03-27 13:17:20 UTC
Created curl tracking bugs for this issue:

Affects: fedora-all [bug 2271824]


Created mingw-curl tracking bugs for this issue:

Affects: fedora-all [bug 2271825]


Note You need to log in before you can comment on or make changes to this bug.