mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
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>
This commit is contained in:
committed by
Steve Sakoman
parent
4976dc40af
commit
c2489908d7
@@ -0,0 +1,30 @@
|
|||||||
|
From f182429e5b1fc034050510da20c93256c4fa9652 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Patrick Griffis <pgriffis@igalia.com>
|
||||||
|
Date: Sat, 16 Nov 2024 12:07:30 -0600
|
||||||
|
Subject: [PATCH] Fix heap buffer overflow in soup_content_sniffer_sniff
|
||||||
|
|
||||||
|
Co-Author: Ar Jun <pkillarjun@protonmail.com>
|
||||||
|
|
||||||
|
Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libsoup/-/commit/f182429e5b1fc034050510da20c93256c4fa9652]
|
||||||
|
CVE: CVE-2025-32052
|
||||||
|
Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
|
||||||
|
---
|
||||||
|
libsoup/content-sniffer/soup-content-sniffer.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/libsoup/content-sniffer/soup-content-sniffer.c b/libsoup/content-sniffer/soup-content-sniffer.c
|
||||||
|
index de0985eac..b62e48889 100644
|
||||||
|
--- a/libsoup/content-sniffer/soup-content-sniffer.c
|
||||||
|
+++ b/libsoup/content-sniffer/soup-content-sniffer.c
|
||||||
|
@@ -524,7 +524,7 @@ sniff_unknown (SoupContentSniffer *sniffer, GBytes *buffer,
|
||||||
|
guint index_pattern = 0;
|
||||||
|
gboolean skip_row = FALSE;
|
||||||
|
|
||||||
|
- while ((index_stream < resource_length) &&
|
||||||
|
+ while ((index_stream < resource_length - 1) &&
|
||||||
|
(index_pattern <= type_row->pattern_length)) {
|
||||||
|
/* Skip insignificant white space ("WS" in the spec) */
|
||||||
|
if (type_row->pattern[index_pattern] == ' ') {
|
||||||
|
--
|
||||||
|
GitLab
|
||||||
|
|
||||||
@@ -33,6 +33,7 @@ SRC_URI = "${GNOME_MIRROR}/libsoup/${SHRT_VER}/libsoup-${PV}.tar.xz \
|
|||||||
file://CVE-2025-2784-1.patch \
|
file://CVE-2025-2784-1.patch \
|
||||||
file://CVE-2025-2784-2.patch \
|
file://CVE-2025-2784-2.patch \
|
||||||
file://CVE-2025-32050.patch \
|
file://CVE-2025-32050.patch \
|
||||||
|
file://CVE-2025-32052.patch \
|
||||||
"
|
"
|
||||||
SRC_URI[sha256sum] = "ebdf90cf3599c11acbb6818a9d9e3fc9d2c68e56eb829b93962972683e1bf7c8"
|
SRC_URI[sha256sum] = "ebdf90cf3599c11acbb6818a9d9e3fc9d2c68e56eb829b93962972683e1bf7c8"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user