Bug 1981460 (CVE-2021-22924)

Summary: CVE-2021-22924 curl: Bad connection reuse due to flawed path name checks
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: amctagga, andrew.slice, anharris, bdettelb, bniver, bodavis, caswilli, csutherl, dbhole, fcanogab, fjansen, flucifre, gmeno, gzaronik, hhorak, hvyas, jclere, jnakfour, jorton, jwon, kanderso, kaycoth, kdudka, krathod, luhliari, lvaleeva, mbenjamin, mhackett, msekleta, mturk, omajid, paul, pjindal, psegedy, rwagner, security-response-team, sostapov, svashisht, szappis, tomckay, vereddy, vmugicag
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: curl 7.78.0 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in libcurl in the way libcurl handles previously used connections without accounting for 'issuer cert' and comparing the involved paths case-insensitively. This flaw allows libcurl to use the wrong connection. The highest threat from this vulnerability is to confidentiality.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-21 18:21:20 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: 1982730, 1982731, 1983586, 1983587, 1983588, 1983589, 1983590, 1984327, 1984716, 1984717, 1990586, 1990587    
Bug Blocks: 1981436    

Description Marian Rehak 2021-07-12 15:27:36 UTC
libcurl keeps previously used connections in a connection pool for subsequent transfers to reuse, if one of them matches the setup. Due to errors in the logic, the config matching function did not take 'issuer cert' into account and it compared the involved paths *case insensitively*, which could lead to libcurl reusing wrong connections. File paths are, or can be, case sensitive on many systems but not all, and can even vary depending on used file systems. The comparison also didn't include the 'issuer cert' which a transfer can set to qualify how to verify the server certificate.

Comment 5 Marian Rehak 2021-07-21 09:14:11 UTC
Created curl tracking bugs for this issue:

Affects: fedora-all [bug 1984327]

Comment 9 Tomas Hoger 2021-08-25 14:19:09 UTC
Upstream advisory:

https://curl.se/docs/CVE-2021-22924.html

Comment 10 errata-xmlrpc 2021-09-21 08:40:45 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2021:3582 https://access.redhat.com/errata/RHSA-2021:3582

Comment 11 Product Security DevOps Team 2021-09-21 18:21:20 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-22924

Comment 13 errata-xmlrpc 2022-04-13 14:29:00 UTC
This issue has been addressed in the following products:

  .NET Core on Red Hat Enterprise Linux

Via RHSA-2022:1354 https://access.redhat.com/errata/RHSA-2022:1354