diff options
author | Peter Marko <peter.marko@siemens.com> | 2024-08-04 19:46:54 +0200 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2024-08-10 06:34:25 -0700 |
commit | a00452347586e270aadf957ef565a60eeabc1572 (patch) | |
tree | 19d51aca8e078d7795adcfbc1f116e5171ba6b9e | |
parent | 6ced2e7ca3b58130154035ad61685cd222909680 (diff) | |
download | poky-a00452347586e270aadf957ef565a60eeabc1572.tar.gz |
curl: Patch CVE-2024-6197
Picked commit per https://curl.se/docs/CVE-2024-6197.html
(From OE-Core rev: 0f172ed0c94d287c96ec465e4724c8b47f846a4c)
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | meta/recipes-support/curl/curl/CVE-2024-6197.patch | 24 | ||||
-rw-r--r-- | meta/recipes-support/curl/curl_8.7.1.bb | 1 |
2 files changed, 25 insertions, 0 deletions
diff --git a/meta/recipes-support/curl/curl/CVE-2024-6197.patch b/meta/recipes-support/curl/curl/CVE-2024-6197.patch new file mode 100644 index 0000000000..0622e70dc8 --- /dev/null +++ b/meta/recipes-support/curl/curl/CVE-2024-6197.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | From 3a537a4db9e65e545ec45b1b5d5575ee09a2569d Mon Sep 17 00:00:00 2001 | ||
2 | From: z2_ <88509734+z2-2z@users.noreply.github.com> | ||
3 | Date: Fri, 28 Jun 2024 14:45:47 +0200 | ||
4 | Subject: [PATCH] x509asn1: remove superfluous free() | ||
5 | |||
6 | CVE: CVE-2024-6197 | ||
7 | Upstream-Status: Backport [https://github.com/curl/curl/commit/3a537a4db9e65e545ec45b1b5d5575ee09a2569d.patch] | ||
8 | Signed-off-by: Peter Marko <peter.marko@siemens.com> | ||
9 | --- | ||
10 | lib/vtls/x509asn1.c | 1 - | ||
11 | 1 file changed, 1 deletion(-) | ||
12 | |||
13 | diff --git a/lib/vtls/x509asn1.c b/lib/vtls/x509asn1.c | ||
14 | index f71ab0b90a5931..1bc4243ddae343 100644 | ||
15 | --- a/lib/vtls/x509asn1.c | ||
16 | +++ b/lib/vtls/x509asn1.c | ||
17 | @@ -393,7 +393,6 @@ utf8asn1str(struct dynbuf *to, int type, const char *from, const char *end) | ||
18 | if(wc >= 0x00000800) { | ||
19 | if(wc >= 0x00010000) { | ||
20 | if(wc >= 0x00200000) { | ||
21 | - free(buf); | ||
22 | /* Invalid char. size for target encoding. */ | ||
23 | return CURLE_WEIRD_SERVER_REPLY; | ||
24 | } | ||
diff --git a/meta/recipes-support/curl/curl_8.7.1.bb b/meta/recipes-support/curl/curl_8.7.1.bb index 3fdad6a4cf..136782ffec 100644 --- a/meta/recipes-support/curl/curl_8.7.1.bb +++ b/meta/recipes-support/curl/curl_8.7.1.bb | |||
@@ -15,6 +15,7 @@ SRC_URI = " \ | |||
15 | file://run-ptest \ | 15 | file://run-ptest \ |
16 | file://disable-tests \ | 16 | file://disable-tests \ |
17 | file://no-test-timeout.patch \ | 17 | file://no-test-timeout.patch \ |
18 | file://CVE-2024-6197.patch \ | ||
18 | " | 19 | " |
19 | SRC_URI[sha256sum] = "6fea2aac6a4610fbd0400afb0bcddbe7258a64c63f1f68e5855ebc0c659710cd" | 20 | SRC_URI[sha256sum] = "6fea2aac6a4610fbd0400afb0bcddbe7258a64c63f1f68e5855ebc0c659710cd" |
20 | 21 | ||