Bug 2270498 (CVE-2024-2398)

Summary: CVE-2024-2398 curl: HTTP/2 push headers memory-leak
Product: [Other] Security Response Reporter: Patrick Del Bello <pdelbell>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aarif, agarcial, ahrabovs, aoconnor, aprice, asegurap, aucunnin, bdettelb, caswilli, crizzo, csutherl, dfreiber, dkuc, doconnor, drow, fjansen, gsuckevi, hhorak, hkataria, jburrell, jclere, jdobes, jmigacz, jmitchel, jorton, jsamir, jsherril, jtanner, jvasik, kaycoth, kholdawa, kshier, lcouzens, luhliari, luizcosta, mpierce, mskarbek, mstoklus, nweather, oezr, orabin, pjindal, plodge, psampaio, psegedy, rblanco, security-response-team, sidakwo, stcannon, sthirugn, szappis, teagle, vkrizan, vkumar, vmugicag, xiaoxwan, yguenane, zzhou
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2270503, 2271824, 2271825    
Bug Blocks: 2270489    

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

Comment 10 errata-xmlrpc 2024-08-19 07:00:00 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

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

Comment 11 errata-xmlrpc 2024-08-20 18:15:08 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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

Comment 12 errata-xmlrpc 2024-09-26 13:28:45 UTC
This issue has been addressed in the following products:

  Service Interconnect 1.4 for RHEL 9

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

Comment 13 errata-xmlrpc 2024-09-30 10:26:10 UTC
This issue has been addressed in the following products:

  Service Interconnect 1 for RHEL 9

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