diff options
-rw-r--r-- | meta/recipes-support/libsoup/libsoup-2.4/CVE-2025-32053.patch | 39 | ||||
-rw-r--r-- | meta/recipes-support/libsoup/libsoup-2.4_2.74.3.bb | 1 |
2 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-support/libsoup/libsoup-2.4/CVE-2025-32053.patch b/meta/recipes-support/libsoup/libsoup-2.4/CVE-2025-32053.patch new file mode 100644 index 0000000000..0d829d6200 --- /dev/null +++ b/meta/recipes-support/libsoup/libsoup-2.4/CVE-2025-32053.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From d9bcffd6cd5e8ec32889a594f7348d67a5101b3a Mon Sep 17 00:00:00 2001 | ||
2 | From: Changqing Li <changqing.li@windriver.com> | ||
3 | Date: Mon, 12 May 2025 13:58:42 +0800 | ||
4 | Subject: [PATCH] Fix heap buffer overflow in | ||
5 | soup-content-sniffer.c:sniff_feed_or_html() | ||
6 | |||
7 | CVE: CVE-2025-32053 | ||
8 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libsoup/-/commit/eaed42ca8d40cd9ab63764e3d63641180505f40a] | ||
9 | |||
10 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
11 | --- | ||
12 | libsoup/soup-content-sniffer.c | 4 ++-- | ||
13 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
14 | |||
15 | diff --git a/libsoup/soup-content-sniffer.c b/libsoup/soup-content-sniffer.c | ||
16 | index 967ec61..5f2896e 100644 | ||
17 | --- a/libsoup/soup-content-sniffer.c | ||
18 | +++ b/libsoup/soup-content-sniffer.c | ||
19 | @@ -620,7 +620,7 @@ skip_insignificant_space (const char *resource, int *pos, int resource_length) | ||
20 | (resource[*pos] == '\x0D')) { | ||
21 | *pos = *pos + 1; | ||
22 | |||
23 | - if (*pos > resource_length) | ||
24 | + if (*pos >= resource_length) | ||
25 | return TRUE; | ||
26 | } | ||
27 | |||
28 | @@ -682,7 +682,7 @@ sniff_feed_or_html (SoupContentSniffer *sniffer, SoupBuffer *buffer) | ||
29 | do { | ||
30 | pos++; | ||
31 | |||
32 | - if (pos > resource_length) | ||
33 | + if ((pos + 1) > resource_length) | ||
34 | goto text_html; | ||
35 | } while (resource[pos] != '>'); | ||
36 | |||
37 | -- | ||
38 | 2.34.1 | ||
39 | |||
diff --git a/meta/recipes-support/libsoup/libsoup-2.4_2.74.3.bb b/meta/recipes-support/libsoup/libsoup-2.4_2.74.3.bb index c20069edef..9a2778bf92 100644 --- a/meta/recipes-support/libsoup/libsoup-2.4_2.74.3.bb +++ b/meta/recipes-support/libsoup/libsoup-2.4_2.74.3.bb | |||
@@ -33,6 +33,7 @@ SRC_URI = "${GNOME_MIRROR}/libsoup/${SHRT_VER}/libsoup-${PV}.tar.xz \ | |||
33 | file://CVE-2025-32914.patch \ | 33 | file://CVE-2025-32914.patch \ |
34 | file://CVE-2025-4969.patch \ | 34 | file://CVE-2025-4969.patch \ |
35 | file://CVE-2025-32907.patch \ | 35 | file://CVE-2025-32907.patch \ |
36 | file://CVE-2025-32053.patch \ | ||
36 | " | 37 | " |
37 | SRC_URI[sha256sum] = "e4b77c41cfc4c8c5a035fcdc320c7bc6cfb75ef7c5a034153df1413fa1d92f13" | 38 | SRC_URI[sha256sum] = "e4b77c41cfc4c8c5a035fcdc320c7bc6cfb75ef7c5a034153df1413fa1d92f13" |
38 | 39 | ||