diff options
| author | Vijay Anusuri <vanusuri@mvista.com> | 2025-06-13 11:14:50 +0530 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-06-20 08:06:29 -0700 |
| commit | 4976dc40af52e4d60d94e3c9edace3122edda97a (patch) | |
| tree | 9267328d3f97c3478ba8922ba1e71a076b7bf0f3 | |
| parent | 8bce7467dc6f2ee68254132fe255a9a2e3df3951 (diff) | |
| download | poky-4976dc40af52e4d60d94e3c9edace3122edda97a.tar.gz | |
libsoup-2.4: Fix CVE-2025-32052
Upstream-Status: Backport
[https://gitlab.gnome.org/GNOME/libsoup/-/commit/f182429e5b1fc034050510da20c93256c4fa9652]
(From OE-Core rev: ab4d381f1cfd8613c23da514a0786a7505579203)
Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
| -rw-r--r-- | meta/recipes-support/libsoup/libsoup-2.4/CVE-2025-32052.patch | 30 | ||||
| -rw-r--r-- | meta/recipes-support/libsoup/libsoup-2.4_2.74.2.bb | 1 |
2 files changed, 31 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..152b70fd9d --- /dev/null +++ b/meta/recipes-support/libsoup/libsoup-2.4/CVE-2025-32052.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From f182429e5b1fc034050510da20c93256c4fa9652 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 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libsoup/-/commit/f182429e5b1fc034050510da20c93256c4fa9652] | ||
| 9 | CVE: CVE-2025-32052 | ||
| 10 | Signed-off-by: Vijay Anusuri <vanusuri@mvista.com> | ||
| 11 | --- | ||
| 12 | libsoup/content-sniffer/soup-content-sniffer.c | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/libsoup/content-sniffer/soup-content-sniffer.c b/libsoup/content-sniffer/soup-content-sniffer.c | ||
| 16 | index de0985eac..b62e48889 100644 | ||
| 17 | --- a/libsoup/soup-content-sniffer.c | ||
| 18 | +++ b/libsoup/soup-content-sniffer.c | ||
| 19 | @@ -524,7 +524,7 @@ sniff_unknown (SoupContentSniffer *sniffer, GBytes *buffer, | ||
| 20 | guint index_pattern = 0; | ||
| 21 | gboolean skip_row = FALSE; | ||
| 22 | |||
| 23 | - while ((index_stream < resource_length) && | ||
| 24 | + while ((index_stream < resource_length - 1) && | ||
| 25 | (index_pattern <= type_row->pattern_length)) { | ||
| 26 | /* Skip insignificant white space ("WS" in the spec) */ | ||
| 27 | if (type_row->pattern[index_pattern] == ' ') { | ||
| 28 | -- | ||
| 29 | GitLab | ||
| 30 | |||
diff --git a/meta/recipes-support/libsoup/libsoup-2.4_2.74.2.bb b/meta/recipes-support/libsoup/libsoup-2.4_2.74.2.bb index 6b227b0503..f9358773e4 100644 --- a/meta/recipes-support/libsoup/libsoup-2.4_2.74.2.bb +++ b/meta/recipes-support/libsoup/libsoup-2.4_2.74.2.bb | |||
| @@ -35,6 +35,7 @@ SRC_URI = "${GNOME_MIRROR}/libsoup/${SHRT_VER}/libsoup-${PV}.tar.xz \ | |||
| 35 | file://CVE-2025-2784-1.patch \ | 35 | file://CVE-2025-2784-1.patch \ |
| 36 | file://CVE-2025-2784-2.patch \ | 36 | file://CVE-2025-2784-2.patch \ |
| 37 | file://CVE-2025-32050.patch \ | 37 | file://CVE-2025-32050.patch \ |
| 38 | file://CVE-2025-32052.patch \ | ||
| 38 | " | 39 | " |
| 39 | SRC_URI[sha256sum] = "f0a427656e5fe19e1df71c107e88dfa1b2e673c25c547b7823b6018b40d01159" | 40 | SRC_URI[sha256sum] = "f0a427656e5fe19e1df71c107e88dfa1b2e673c25c547b7823b6018b40d01159" |
| 40 | 41 | ||
