diff options
| author | Changqing Li <changqing.li@windriver.com> | 2025-06-06 14:49:53 +0800 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-06-13 08:58:00 -0700 |
| commit | df0e54f6ab6ca6397bbbf98d7a7dd04d57624118 (patch) | |
| tree | 1a8fbc507656b4d8e0c9aa581993003ce3af9a8a /meta | |
| parent | d81430958eeaeebc2bbfb00aa79de81a5588d0f5 (diff) | |
| download | poky-df0e54f6ab6ca6397bbbf98d7a7dd04d57624118.tar.gz | |
libsoup: fix CVE-2025-32052
Refer:
https://gitlab.gnome.org/GNOME/libsoup/-/issues/425
(From OE-Core rev: 9a8a5072969a326e296d840296cb475fb3c0e2ff)
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-support/libsoup/libsoup-3.4.4/CVE-2025-32052.patch | 31 | ||||
| -rw-r--r-- | meta/recipes-support/libsoup/libsoup_3.4.4.bb | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-support/libsoup/libsoup-3.4.4/CVE-2025-32052.patch b/meta/recipes-support/libsoup/libsoup-3.4.4/CVE-2025-32052.patch new file mode 100644 index 0000000000..78b712070b --- /dev/null +++ b/meta/recipes-support/libsoup/libsoup-3.4.4/CVE-2025-32052.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | From 779bcb279b1dc4eb8bcb22c5e727b1174630c3fc Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Patrick Griffis <pgriffis@igalia.com> | ||
| 3 | Date: Sat, 16 Nov 2024 12:07:30 -0600 | ||
| 4 | Subject: [PATCH] Fix heap buffer overflow in soup_content_sniffer_sniff | ||
| 5 | |||
| 6 | Co-Author: Ar Jun <pkillarjun@protonmail.com> | ||
| 7 | |||
| 8 | CVE: CVE-2025-32052 | ||
| 9 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libsoup/-/commit/f182429e5b1fc034050510da20c93256c4fa9652] | ||
| 10 | |||
| 11 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
| 12 | --- | ||
| 13 | libsoup/content-sniffer/soup-content-sniffer.c | 2 +- | ||
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 15 | |||
| 16 | diff --git a/libsoup/content-sniffer/soup-content-sniffer.c b/libsoup/content-sniffer/soup-content-sniffer.c | ||
| 17 | index 23d5aaa..aeee2e2 100644 | ||
| 18 | --- a/libsoup/content-sniffer/soup-content-sniffer.c | ||
| 19 | +++ b/libsoup/content-sniffer/soup-content-sniffer.c | ||
| 20 | @@ -529,7 +529,7 @@ sniff_unknown (SoupContentSniffer *sniffer, GBytes *buffer, | ||
| 21 | guint index_pattern = 0; | ||
| 22 | gboolean skip_row = FALSE; | ||
| 23 | |||
| 24 | - while ((index_stream < resource_length) && | ||
| 25 | + while ((index_stream < resource_length - 1) && | ||
| 26 | (index_pattern <= type_row->pattern_length)) { | ||
| 27 | /* Skip insignificant white space ("WS" in the spec) */ | ||
| 28 | if (type_row->pattern[index_pattern] == ' ') { | ||
| 29 | -- | ||
| 30 | 2.34.1 | ||
| 31 | |||
diff --git a/meta/recipes-support/libsoup/libsoup_3.4.4.bb b/meta/recipes-support/libsoup/libsoup_3.4.4.bb index ff0ae0afad..e7dccb6380 100644 --- a/meta/recipes-support/libsoup/libsoup_3.4.4.bb +++ b/meta/recipes-support/libsoup/libsoup_3.4.4.bb | |||
| @@ -37,6 +37,7 @@ SRC_URI = "${GNOME_MIRROR}/libsoup/${SHRT_VER}/libsoup-${PV}.tar.xz \ | |||
| 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 | file://CVE-2025-32053.patch \ |
| 40 | file://CVE-2025-32052.patch \ | ||
| 40 | " | 41 | " |
| 41 | SRC_URI[sha256sum] = "291c67725f36ed90ea43efff25064b69c5a2d1981488477c05c481a3b4b0c5aa" | 42 | SRC_URI[sha256sum] = "291c67725f36ed90ea43efff25064b69c5a2d1981488477c05c481a3b4b0c5aa" |
| 42 | 43 | ||
