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

25 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

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
DescriptionSeverityAffected Software
Oct 8, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
News Published
via The Register·11:30 PM
News Published
via The Register·11:33 PM

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

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