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-06-20 05:49 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)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2024:2693 0 None None None 2024-05-07 15:47:44 UTC
Red Hat Product Errata RHSA-2024:2694 0 None None None 2024-05-07 15:44:52 UTC
Red Hat Product Errata RHSA-2024:3998 0 None None None 2024-06-20 05:49:53 UTC

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]

Comment 6 errata-xmlrpc 2024-05-07 15:44:47 UTC
This issue has been addressed in the following products:

  Red Hat JBoss Core Services

Via RHSA-2024:2694 https://access.redhat.com/errata/RHSA-2024:2694

Comment 7 errata-xmlrpc 2024-05-07 15:47:40 UTC
This issue has been addressed in the following products:

  JBoss Core Services on RHEL 7
  JBoss Core Services for RHEL 8

Via RHSA-2024:2693 https://access.redhat.com/errata/RHSA-2024:2693

Comment 9 errata-xmlrpc 2024-06-20 05:49:50 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

Via RHSA-2024:3998 https://access.redhat.com/errata/RHSA-2024:3998


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