CVE-2024-6197: freeing stack buffer in utf8asn1str

Published Jul 24, 2024
·
Updated

cURL libcurl is vulnerable to a denial of service, caused by a memory allocation flaw in the utf8asn1str() function in the ASN1 parser. By using a specially crafted TLS certificate, a remote attacker could exploit this vulnerability to cause a denial of service condition.

Other sources

Hackerone: CVE-2024-6197 Freeing stack buffer in utf8asn1str

— Microsoft

libcurl's ASN1 parser has this utf8asn1str() function used for parsing an ASN.1 UTF-8 string. Itcan detect an invalid field and return error. Unfortunately, when doing so it also invokes free() on a 4 byte localstack buffer. Most modern malloc implementations detect this error and immediately abort. Some however accept the input pointer and add that memory to its list of available chunks. This leads to the overwriting of nearby stack memory. The content of the overwrite is decided by the free() implementation; likely to be memory pointers and a set of flags. The most likely outcome of exploting this flaw is a crash, although it cannot be ruled out that more serious results can be had in special circumstances.

— MITRE

Affected Software

37 affected componentsFixes available
Microsoft CBL Mariner 2.0 ARM
Microsoft CBL Mariner 2.0 x64
Microsoft Windows Server 2022, 23H2 Edition
haxx libcurl>=8.6.0<8.9.0
IBM Storage Protect Backup-Archive Client<=8.1.0.0 - 8.1.23.0
Microsoft Windows Server 2019
Microsoft Windows Server 2019
Microsoft Windows 11=23H2
Microsoft Windows 11=23H2
Microsoft Windows 11=22H2
Microsoft Windows 11=22H2
Microsoft Windows 11=24H2
Microsoft Windows 11=24H2
Microsoft Windows 11=21H2
Microsoft Windows 11=21H2
Microsoft Windows Server 2022
Microsoft Windows Server 2022
Microsoft Windows 10=1809
Microsoft Windows 10=1809
Microsoft Windows 10=22H2
Microsoft Windows 10=22H2
Microsoft Windows 10=22H2
Microsoft Windows 10=21H2
Microsoft Windows 10=21H2
Microsoft Windows 10=21H2
debian/curl<8.9.0-1
8.9.0-1
debian/curl<8.9.0-1
8.9.0-1
debian/curl
7.88.1-10+deb12u157.88.1-10+deb12u58.14.1-2+deb13u58.14.1-2+deb13u78.22.0-18.23.0-1
alpine/curl<8.9.0-r0
8.9.0-r0
alpine/curl<8.9.0-r0
8.9.0-r0
alpine/curl<8.9.0-r0
8.9.0-r0
alpine/curl<8.9.0-r0
8.9.0-r0
alpine/curl<8.9.0-r0
8.9.0-r0
alpine/curl<8.9.0-r0
8.9.0-r0
alpine/curl<8.9.0-r0
8.9.0-r0
alpine/curl<8.9.0-r0
8.9.0-r0
alpine/curl<8.9.0-r0
8.9.0-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/curl to a version that resolves this vulnerability.

    Fixed in 8.9.0-r0
  2. Upgrade

    Upgrade debian/curl to a version that resolves this vulnerability.

    Fixed in 8.9.0-1
  3. Upgrade

    Upgrade debian/curl to a version that resolves this vulnerability.

    Fixed in 7.88.1-10+deb12u15Fixed in 7.88.1-10+deb12u5Fixed in 8.14.1-2+deb13u5Fixed in 8.14.1-2+deb13u7Fixed in 8.22.0-1Fixed in 8.23.0-1

Event History

Jul 24, 2024
CVE Published
via MITRE·07:29 AM
Data Sourced
via MITRE·07:29 AM
DescriptionWeakness
Data Sourced
via NVD·08:15 AM
Description
Data Sourced
via OSV·08:15 AM
DescriptionSeverityAffected Software
Data Sourced
via Red Hat·08:21 AM
DescriptionSeverityAffected Software
Aug 1, 2024
Data Sourced
via NVD·02:00 PM
Severity
Aug 26, 2024
Data Sourced
via NVD·03:25 PM
Affected Software
Updated
via NVD·03:25 PM
Severity
Oct 8, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Event
via Microsoft·07:00 AM
News Published
via The Register·11:30 PM
Oct 10, 2024
Updated
via Microsoft·07:00 AM
Description
Oct 18, 2024
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Nov 29, 2024
Updated
via NVD·12:15 PM
Affected Software
Dec 3, 2026
Updated
via OSV·11:32 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2024-6197?

CVE-2024-6197 has a severity rating that classifies it as a denial of service vulnerability.

2

How do I fix CVE-2024-6197?

To fix CVE-2024-6197, apply the relevant patches or updates provided by your operating system vendor or software provider.

3

Which software is affected by CVE-2024-6197?

CVE-2024-6197 affects various versions of Microsoft Windows, Windows Server, cURL, and IBM Storage Protect Backup-Archive Client.

4

Can CVE-2024-6197 be exploited remotely?

Yes, CVE-2024-6197 can be exploited remotely if a specially crafted TLS certificate is used by an attacker.

5

What impact does CVE-2024-6197 have on systems?

The impact of CVE-2024-6197 includes the potential for a denial of service, rendering affected systems unavailable.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203