Name | CVE-2024-6197 |
Description | 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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Debian Bugs | 1076996 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
curl (PTS) | jessie, jessie (lts) | 7.38.0-4+deb8u28 | fixed |
| stretch (security) | 7.52.1-5+deb9u16 | fixed |
| stretch (lts), stretch | 7.52.1-5+deb9u22 | fixed |
| buster, buster (lts) | 7.64.0-4+deb10u10 | fixed |
| buster (security) | 7.64.0-4+deb10u9 | fixed |
| bullseye | 7.74.0-1.3+deb11u13 | fixed |
| bullseye (security) | 7.74.0-1.3+deb11u11 | fixed |
| bookworm | 7.88.1-10+deb12u7 | fixed |
| bookworm (security) | 7.88.1-10+deb12u5 | fixed |
| trixie, sid | 8.9.1-2 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|
curl | source | jessie | (not affected) | | | |
curl | source | stretch | (not affected) | | | |
curl | source | buster | (not affected) | | | |
curl | source | bullseye | (not affected) | | | |
curl | source | bookworm | (not affected) | | | |
curl | source | (unstable) | 8.9.0-1 | | | 1076996 |
Notes
[bookworm] - curl <not-affected> (Vulnerable code introduced later)
[bullseye] - curl <not-affected> (Vulnerable code introduced later)
https://curl.se/docs/CVE-2024-6197.html
Introduced in: https://github.com/curl/curl/commit/623c3a8fa0bdb2751f14b3741760d81910b7ec64 (curl-8_6_0)
Fixed by: https://github.com/curl/curl/commit/3a537a4db9e65e545ec45b1b5d5575ee09a2569d (curl-8_9_0)
[buster] - curl <not-affected> (Vulnerable code introduced later)
[stretch] - curl <not-affected> (Vulnerable code introduced later)
[jessie] - curl <not-affected> (Vulnerable code introduced later)