diff options
| author | Changqing Li <changqing.li@windriver.com> | 2025-06-06 14:49:52 +0800 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-06-13 08:58:00 -0700 |
| commit | d81430958eeaeebc2bbfb00aa79de81a5588d0f5 (patch) | |
| tree | d3eea23f9a1778c0f4f720d24c5eef15b2a8399e | |
| parent | a435aee8070c81d95bc798f0866f40c8b6092a5e (diff) | |
| download | poky-d81430958eeaeebc2bbfb00aa79de81a5588d0f5.tar.gz | |
libsoup-2.4: fix CVE-2025-32052
Refer:
https://gitlab.gnome.org/GNOME/libsoup/-/issues/425
(From OE-Core rev: f3890f25cc036fd184578d7b85e6410ee97dc3ad)
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
| -rw-r--r-- | meta/recipes-support/libsoup/libsoup-2.4/CVE-2025-32052.patch | 32 | ||||
| -rw-r--r-- | meta/recipes-support/libsoup/libsoup-2.4_2.74.3.bb | 1 |
2 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-support/libsoup/libsoup-2.4/CVE-2025-32052.patch b/meta/recipes-support/libsoup/libsoup-2.4/CVE-2025-32052.patch new file mode 100644 index 0000000000..34bc8113a4 --- /dev/null +++ b/meta/recipes-support/libsoup/libsoup-2.4/CVE-2025-32052.patch | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | From f4a67a9a3033586edaee715d40d5992e02d32893 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 | ||
| 10 | [https://gitlab.gnome.org/GNOME/libsoup/-/commit/f182429e5b1fc034050510da20c93256c4fa9652#500da7cfde649872c49169be34b03a1c42a53ddb] | ||
| 11 | |||
| 12 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||
| 13 | --- | ||
| 14 | libsoup/soup-content-sniffer.c | 2 +- | ||
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 16 | |||
| 17 | diff --git a/libsoup/soup-content-sniffer.c b/libsoup/soup-content-sniffer.c | ||
| 18 | index 9554636..eac9e7b 100644 | ||
| 19 | --- a/libsoup/soup-content-sniffer.c | ||
| 20 | +++ b/libsoup/soup-content-sniffer.c | ||
| 21 | @@ -504,7 +504,7 @@ sniff_unknown (SoupContentSniffer *sniffer, SoupBuffer *buffer, | ||
| 22 | guint index_pattern = 0; | ||
| 23 | gboolean skip_row = FALSE; | ||
| 24 | |||
| 25 | - while ((index_stream < resource_length) && | ||
| 26 | + while ((index_stream < resource_length - 1) && | ||
| 27 | (index_pattern <= type_row->pattern_length)) { | ||
| 28 | /* Skip insignificant white space ("WS" in the spec) */ | ||
| 29 | if (type_row->pattern[index_pattern] == ' ') { | ||
| 30 | -- | ||
| 31 | 2.34.1 | ||
| 32 | |||
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 9a2778bf92..96bb53a033 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 | |||
| @@ -34,6 +34,7 @@ SRC_URI = "${GNOME_MIRROR}/libsoup/${SHRT_VER}/libsoup-${PV}.tar.xz \ | |||
| 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 | file://CVE-2025-32053.patch \ |
| 37 | file://CVE-2025-32052.patch \ | ||
| 37 | " | 38 | " |
| 38 | SRC_URI[sha256sum] = "e4b77c41cfc4c8c5a035fcdc320c7bc6cfb75ef7c5a034153df1413fa1d92f13" | 39 | SRC_URI[sha256sum] = "e4b77c41cfc4c8c5a035fcdc320c7bc6cfb75ef7c5a034153df1413fa1d92f13" |
| 39 | 40 | ||
