diff options
| author | Vijay Anusuri <vanusuri@mvista.com> | 2025-06-13 11:14:51 +0530 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-06-20 08:06:29 -0700 |
| commit | c2489908d764a8e784cd65800e46b45b1f40fe1b (patch) | |
| tree | 6f497f05fe235c52cb076433e902ad8c55871d5d | |
| parent | 4976dc40af52e4d60d94e3c9edace3122edda97a (diff) | |
| download | poky-c2489908d764a8e784cd65800e46b45b1f40fe1b.tar.gz | |
libsoup: Fix CVE-2025-32052
Upstream-Status: Backport
[https://gitlab.gnome.org/GNOME/libsoup/-/commit/f182429e5b1fc034050510da20c93256c4fa9652]
(From OE-Core rev: f1e94b33fac8a1587aacfee13935587dfc6c147a)
Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
| -rw-r--r-- | meta/recipes-support/libsoup/libsoup/CVE-2025-32052.patch | 30 | ||||
| -rw-r--r-- | meta/recipes-support/libsoup/libsoup_3.0.7.bb | 1 |
2 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-support/libsoup/libsoup/CVE-2025-32052.patch b/meta/recipes-support/libsoup/libsoup/CVE-2025-32052.patch new file mode 100644 index 0000000000..fca43e24ac --- /dev/null +++ b/meta/recipes-support/libsoup/libsoup/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/content-sniffer/soup-content-sniffer.c | ||
| 18 | +++ b/libsoup/content-sniffer/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_3.0.7.bb b/meta/recipes-support/libsoup/libsoup_3.0.7.bb index 27aab1468f..26fe52937b 100644 --- a/meta/recipes-support/libsoup/libsoup_3.0.7.bb +++ b/meta/recipes-support/libsoup/libsoup_3.0.7.bb | |||
| @@ -33,6 +33,7 @@ SRC_URI = "${GNOME_MIRROR}/libsoup/${SHRT_VER}/libsoup-${PV}.tar.xz \ | |||
| 33 | file://CVE-2025-2784-1.patch \ | 33 | file://CVE-2025-2784-1.patch \ |
| 34 | file://CVE-2025-2784-2.patch \ | 34 | file://CVE-2025-2784-2.patch \ |
| 35 | file://CVE-2025-32050.patch \ | 35 | file://CVE-2025-32050.patch \ |
| 36 | file://CVE-2025-32052.patch \ | ||
| 36 | " | 37 | " |
| 37 | SRC_URI[sha256sum] = "ebdf90cf3599c11acbb6818a9d9e3fc9d2c68e56eb829b93962972683e1bf7c8" | 38 | SRC_URI[sha256sum] = "ebdf90cf3599c11acbb6818a9d9e3fc9d2c68e56eb829b93962972683e1bf7c8" |
| 38 | 39 | ||
