diff options
-rw-r--r-- | meta/recipes-support/libsoup/libsoup-3.4.4/CVE-2025-32053.patch | 40 | ||||
-rw-r--r-- | meta/recipes-support/libsoup/libsoup_3.4.4.bb | 1 |
2 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-support/libsoup/libsoup-3.4.4/CVE-2025-32053.patch b/meta/recipes-support/libsoup/libsoup-3.4.4/CVE-2025-32053.patch new file mode 100644 index 0000000000..93fa69e06c --- /dev/null +++ b/meta/recipes-support/libsoup/libsoup-3.4.4/CVE-2025-32053.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | From 819dbc0fcf174b8182cdb279f7be15ea1cde649f Mon Sep 17 00:00:00 2001 | ||
2 | From: Ar Jun <pkillarjun@protonmail.com> | ||
3 | Date: Mon, 18 Nov 2024 14:59:51 -0600 | ||
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 | ||
9 | [https://gitlab.gnome.org/GNOME/libsoup/-/commit/eaed42ca8d40cd9ab63764e3d63641180505f40a] | ||
10 | |||
11 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
12 | --- | ||
13 | libsoup/content-sniffer/soup-content-sniffer.c | 4 ++-- | ||
14 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/libsoup/content-sniffer/soup-content-sniffer.c b/libsoup/content-sniffer/soup-content-sniffer.c | ||
17 | index 2351c3f..23d5aaa 100644 | ||
18 | --- a/libsoup/content-sniffer/soup-content-sniffer.c | ||
19 | +++ b/libsoup/content-sniffer/soup-content-sniffer.c | ||
20 | @@ -646,7 +646,7 @@ skip_insignificant_space (const char *resource, int *pos, int resource_length) | ||
21 | (resource[*pos] == '\x0D')) { | ||
22 | *pos = *pos + 1; | ||
23 | |||
24 | - if (*pos > resource_length) | ||
25 | + if (*pos >= resource_length) | ||
26 | return TRUE; | ||
27 | } | ||
28 | |||
29 | @@ -709,7 +709,7 @@ sniff_feed_or_html (SoupContentSniffer *sniffer, GBytes *buffer) | ||
30 | do { | ||
31 | pos++; | ||
32 | |||
33 | - if (pos > resource_length) | ||
34 | + if ((pos + 1) > resource_length) | ||
35 | goto text_html; | ||
36 | } while (resource[pos] != '>'); | ||
37 | |||
38 | -- | ||
39 | 2.34.1 | ||
40 | |||
diff --git a/meta/recipes-support/libsoup/libsoup_3.4.4.bb b/meta/recipes-support/libsoup/libsoup_3.4.4.bb index 687b14d9d6..ff0ae0afad 100644 --- a/meta/recipes-support/libsoup/libsoup_3.4.4.bb +++ b/meta/recipes-support/libsoup/libsoup_3.4.4.bb | |||
@@ -36,6 +36,7 @@ SRC_URI = "${GNOME_MIRROR}/libsoup/${SHRT_VER}/libsoup-${PV}.tar.xz \ | |||
36 | file://CVE-2025-32908-2.patch \ | 36 | file://CVE-2025-32908-2.patch \ |
37 | file://CVE-2025-32907-1.patch \ | 37 | file://CVE-2025-32907-1.patch \ |
38 | file://CVE-2025-32907-2.patch \ | 38 | file://CVE-2025-32907-2.patch \ |
39 | file://CVE-2025-32053.patch \ | ||
39 | " | 40 | " |
40 | SRC_URI[sha256sum] = "291c67725f36ed90ea43efff25064b69c5a2d1981488477c05c481a3b4b0c5aa" | 41 | SRC_URI[sha256sum] = "291c67725f36ed90ea43efff25064b69c5a2d1981488477c05c481a3b4b0c5aa" |
41 | 42 | ||