Skip to contentSkip to conversation

gstd: Upgrade to 0.16.0 release

PATCH New Colin McAllister 1 participant 2 messages Jun 16

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 gstd: Upgrade to 0.16.0 release

See change notes [1]

Removed exec_prefix from paths passed to rmdir because prefix is no longer used for runstatedir and logstatedir (See meson chagnes in commit b2ca22b).

Upgraded libsoup-2.4 dependency to libsoup 3.

[1] https://github.com/RidgeRun/gstd-1.x/releases/tag/v0.16.0

---
 .../recipes-multimedia/gstreamer-1.0/gstd_git.bb     | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
meta-multimedia/recipes-multimedia/gstreamer-1.0/gstd_git.bb +6 -6
index d068d66bb6..0b79f5be4d 100644
@@ -5,15 +5,15 @@ SECTION = "multimedia"
 LICENSE = "LGPL-2.1-or-later"
 LIC_FILES_CHKSUM = "file://COPYING;md5=c71b653a0f608a58cdc5693ae57126bc"
 
-DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad gstreamer1.0-rtsp-server json-glib libdaemon libsoup-2.4 jansson"
+DEPENDS = "gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad gstreamer1.0-rtsp-server json-glib libdaemon libsoup jansson"
 
 SRCBRANCH ?= "master"
-SRCREV = "dac03d5e4102080a8f3ef274a6a6583455962095"
+SRCREV = "d3e1daefb999c3ba0f4fcc4744b53aab2aaa5f2d"
 SRC_URI = "git://[email protected]/RidgeRun/gstd-1.x.git;protocol=https;branch=${SRCBRANCH} \
            file://0001-gstd-Remove-redundant-rpaths.patch"
 
 # Remove the +really when upstream version is > 1.0
-PV = "1.0+really0.15.2"
+PV = "1.0+really0.16.0"
 
 GTKDOC_MESON_OPTION = "enable-gtk-doc"
 
@@ -24,9 +24,9 @@ GTKDOC_ENABLED = "False"
 inherit meson pkgconfig gettext gtk-doc python3native python3-dir python3targetconfig
 
 do_install:append() {
-        rmdir ${D}${exec_prefix}${localstatedir}/run/${BPN} ${D}${exec_prefix}${localstatedir}/run \
-              ${D}${exec_prefix}${localstatedir}/log/${BPN} ${D}${exec_prefix}${localstatedir}/log \
-              ${D}${exec_prefix}${localstatedir}
+        rmdir ${D}${localstatedir}/run/${BPN} ${D}${localstatedir}/run \
+              ${D}${localstatedir}/log/${BPN} ${D}${localstatedir}/log \
+              ${D}${localstatedir}
         rm -f ${D}${bindir}/gst-client ${D}${bindir}/gstd-client
         if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
                 install -d ${D}${sysconfdir}/tmpfiles.d
Signature · 1 line
2.54.0
#1 lore raw

PATCH 2/2 libsoup-2.4: Remove recipe

Libsoup-2.4 has been deprecated and is no longer receiving support or security fixes. The recipe can be removed now that no recipes in meta-openembedded depend on it.

---
 .../libsoup-2.4/0001-CVE-2025-32911.patch     |  74 ------
 ...ild-with-libxml2-2.12.0-and-clang-17.patch |  44 ----
 ...-Fix-possibly-uninitialized-warnings.patch |  43 ----
 ...-http-and-https-aliases-support-test.patch | 145 -----------
 .../libsoup/libsoup-2.4/CVE-2024-52530.patch  | 150 ------------
 .../libsoup-2.4/CVE-2024-52531-1.patch        |  39 ---
 .../libsoup-2.4/CVE-2024-52531-2.patch        | 133 ----------
 .../libsoup-2.4/CVE-2024-52532-1.patch        |  37 ---
 .../libsoup-2.4/CVE-2024-52532-2.patch        |  43 ----
 .../libsoup-2.4/CVE-2024-52532-3.patch        |  48 ----
 .../libsoup/libsoup-2.4/CVE-2025-14523.patch  |  52 ----
 .../libsoup/libsoup-2.4/CVE-2025-2784.patch   |  56 -----
 .../libsoup-2.4/CVE-2025-32049-1.patch        | 229 ------------------
 .../libsoup-2.4/CVE-2025-32049-2.patch        | 131 ----------
 .../libsoup/libsoup-2.4/CVE-2025-32050.patch  |  29 ---
 .../libsoup/libsoup-2.4/CVE-2025-32052.patch  |  32 ---
 .../libsoup/libsoup-2.4/CVE-2025-32053.patch  |  39 ---
 .../libsoup/libsoup-2.4/CVE-2025-32906.patch  |  71 ------
 .../libsoup/libsoup-2.4/CVE-2025-32907.patch  |  39 ---
 .../libsoup/libsoup-2.4/CVE-2025-32909.patch  |  38 ---
 .../libsoup-2.4/CVE-2025-32910-1.patch        |  32 ---
 .../libsoup-2.4/CVE-2025-32910-2.patch        |  94 -------
 .../libsoup-2.4/CVE-2025-32910-3.patch        |  28 ---
 .../libsoup/libsoup-2.4/CVE-2025-32912.patch  |  32 ---
 .../libsoup/libsoup-2.4/CVE-2025-32914.patch  |  35 ---
 .../libsoup/libsoup-2.4/CVE-2025-4476.patch   |  38 ---
 .../libsoup/libsoup-2.4/CVE-2025-46420.patch  |  61 -----
 .../libsoup/libsoup-2.4/CVE-2025-46421.patch  |  47 ----
 .../libsoup/libsoup-2.4/CVE-2025-4945.patch   | 117 ---------
 .../libsoup/libsoup-2.4/CVE-2025-4948.patch   |  38 ---
 .../libsoup/libsoup-2.4/CVE-2025-4969.patch   |  37 ---
 .../libsoup/libsoup-2.4/CVE-2026-1467.patch   | 151 ------------
 .../libsoup/libsoup-2.4/CVE-2026-1539.patch   |  31 ---
 .../libsoup/libsoup-2.4/CVE-2026-1760.patch   | 153 ------------
 .../libsoup/libsoup-2.4/CVE-2026-1761.patch   |  36 ---
 .../libsoup/libsoup-2.4/CVE-2026-1801.patch   | 126 ----------
 .../libsoup/libsoup-2.4/CVE-2026-2369.patch   |  33 ---
 .../libsoup/libsoup-2.4/CVE-2026-2443.patch   | 135 -----------
 .../libsoup/libsoup-2.4_2.74.3.bb             |  97 --------
 39 files changed, 2793 deletions(-)
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/0001-CVE-2025-32911.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/0001-Fix-build-with-libxml2-2.12.0-and-clang-17.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/0001-Fix-possibly-uninitialized-warnings.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/0001-Remove-http-and-https-aliases-support-test.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2024-52530.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2024-52531-1.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2024-52531-2.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2024-52532-1.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2024-52532-2.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2024-52532-3.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-14523.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-2784.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32049-1.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32049-2.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32050.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32052.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32053.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32906.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32907.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32909.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32910-1.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32910-2.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32910-3.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32912.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32914.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-4476.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-46420.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-46421.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-4945.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-4948.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-4969.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2026-1467.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2026-1539.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2026-1760.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2026-1761.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2026-1801.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2026-2369.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2026-2443.patch
 delete mode 100644 meta-oe/recipes-support/libsoup/libsoup-2.4_2.74.3.bb
meta-oe/recipes-support/libsoup/libsoup-2.4/0001-CVE-2025-32911.patch deleted +0 -74
deleted file mode 100644
index d75594bb4f..0000000000
@@ -1,74 +0,0 @@
-From 52c5859b82fe79f2c32d883e048d218e0d7f2182 Mon Sep 17 00:00:00 2001
-From: Changqing Li <[email protected]>
-Date: Wed, 30 Apr 2025 14:59:55 +0800
-Subject: [PATCH] CVE-2025-32911
-
-CVE: CVE-2025-32911 CVE-2025-32913
-Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libsoup/-/merge_requests/422/commits]
-
-Signed-off-by: Changqing Li <[email protected]>
----
- libsoup/soup-message-headers.c | 13 +++++++++----
- tests/header-parsing-test.c    | 15 +++++++++++++++
- 2 files changed, 24 insertions(+), 4 deletions(-)
-
-diff --git a/libsoup/soup-message-headers.c b/libsoup/soup-message-headers.c
-index 39ad14a..78b2455 100644
---- a/libsoup/soup-message-headers.c
-+++ b/libsoup/soup-message-headers.c
-@@ -1454,10 +1454,15 @@ soup_message_headers_get_content_disposition (SoupMessageHeaders  *hdrs,
- 	 */
- 	if (params && g_hash_table_lookup_extended (*params, "filename",
- 						    &orig_key, &orig_value)) {
--		char *filename = strrchr (orig_value, '/');
--
--		if (filename)
--			g_hash_table_insert (*params, g_strdup (orig_key), filename + 1);
-+                if (orig_value) {
-+                        char *filename = strrchr (orig_value, '/');
-+
-+                        if (filename)
-+                                g_hash_table_insert (*params, g_strdup (orig_key), g_strdup(filename + 1));
-+                } else {
-+                        /* filename with no value isn't valid. */
-+                        g_hash_table_remove (*params, "filename");
-+                }
- 	}
- 	return TRUE;
- }
-diff --git a/tests/header-parsing-test.c b/tests/header-parsing-test.c
-index 946f118..752196e 100644
---- a/tests/header-parsing-test.c
-+++ b/tests/header-parsing-test.c
-@@ -1034,6 +1034,7 @@ do_param_list_tests (void)
- #define RFC5987_TEST_HEADER_FALLBACK "attachment; filename*=Unknown''t%FF%FF%FFst.txt; filename=\"test.txt\""
- #define RFC5987_TEST_HEADER_NO_TYPE  "filename=\"test.txt\""
- #define RFC5987_TEST_HEADER_NO_TYPE_2  "filename=\"test.txt\"; foo=bar"
-+#define RFC5987_TEST_HEADER_EMPTY_FILENAME ";filename"
- 
- static void
- do_content_disposition_tests (void)
-@@ -1133,6 +1134,20 @@ do_content_disposition_tests (void)
- 	g_assert_cmpstr (filename, ==, RFC5987_TEST_FALLBACK_FILENAME);
-         parameter2 = g_hash_table_lookup (params, "foo");
-         g_assert_cmpstr (parameter2, ==, "bar");
-+	g_hash_table_destroy (params);
-+
-+	 /* Empty filename */
-+	soup_message_headers_clear (hdrs);
-+	soup_message_headers_append (hdrs, "Content-Disposition",
-+								 RFC5987_TEST_HEADER_EMPTY_FILENAME);
-+	if (!soup_message_headers_get_content_disposition (hdrs,
-+													   &disposition,
-+													   &params)) {
-+			soup_test_assert (FALSE, "empty filename decoding FAILED");
-+			return;
-+	}
-+	g_free (disposition);
-+	g_assert_false (g_hash_table_contains (params, "filename"));
- 	g_hash_table_destroy (params);
- 
- 	soup_message_headers_free (hdrs);
--- 
-2.34.1
-
meta-oe/recipes-support/libsoup/libsoup-2.4/0001-Fix-build-with-libxml2-2.12.0-and-clang-17.patch deleted +0 -44

44 lines not on this page · raw message

meta-oe/recipes-support/libsoup/libsoup-2.4/0001-Fix-possibly-uninitialized-warnings.patch deleted +0 -43

43 lines not on this page · raw message

meta-oe/recipes-support/libsoup/libsoup-2.4/0001-Remove-http-and-https-aliases-support-test.patch deleted +0 -145

145 lines not on this page · raw message

meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2024-52530.patch deleted +0 -150

150 lines not on this page · raw message

meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2024-52531-1.patch deleted +0 -39
deleted file mode 100644
index 9de0310c8d..0000000000
@@ -1,39 +0,0 @@
-From 8331e681c85c3b1893d8d5193783f631bfc07acb Mon Sep 17 00:00:00 2001
-From: Changqing Li <[email protected]>
-Date: Fri, 16 May 2025 13:42:08 +0800
-Subject: [PATCH] tests: Add test for passing invalid UTF-8 to
- soup_header_parse_semi_param_list()
-
-CVE: CVE-2024-52531
-Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libsoup/-/merge_requests/407/diffs?commit_id=825fda3425546847b42ad5270544e9388ff349fe]
-
-Signed-off-by: Changqing Li <[email protected]>
----
- tests/header-parsing-test.c | 11 +++++++++++
- 1 file changed, 11 insertions(+)
-
-diff --git a/tests/header-parsing-test.c b/tests/header-parsing-test.c
-index b811115..cfcc003 100644
---- a/tests/header-parsing-test.c
-+++ b/tests/header-parsing-test.c
-@@ -836,6 +836,17 @@ static struct ParamListTest {
- 	    { "filename", "t\xC3\xA9st.txt" },
- 	  },
- 	},
-+
-+/* This tests invalid UTF-8 data which *should* never be passed here but it was designed to be robust against it. */
-+	{ TRUE,
-+	  "invalid*=\x69\x27\x27\x93\x93\x93\x93\xff\x61\x61\x61\x61\x61\x61\x61\x62\x63\x64\x65\x0a; filename*=iso-8859-1''\x69\x27\x27\x93\x93\x93\x93\xff\x61\x61\x61\x61\x61\x61\x61\x62\x63\x64\x65\x0a; foo",
-+	   {
-+		{ "filename", "i''\302\223\302\223\302\223\302\223\303\277aaaaaaabcde" },
-+		{ "invalid", "\302\223\302\223\302\223\302\223\303\277aaaaaaabcde" },
-+		{ "foo", NULL },
-+	   },
-+	}
-+
- };
- static const int num_paramlisttests = G_N_ELEMENTS (paramlisttests);
- 
--- 
-2.34.1
-
meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2024-52531-2.patch deleted +0 -133

133 lines not on this page · raw message

meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2024-52532-1.patch deleted +0 -37
deleted file mode 100644
index cb1f096110..0000000000
@@ -1,37 +0,0 @@
-From a693d49bff058fc20a448dc4e7d324ff0dc6597e Mon Sep 17 00:00:00 2001
-From: Ignacio Casal Quinteiro <[email protected]>
-Date: Wed, 11 Sep 2024 11:52:11 +0200
-Subject: [PATCH 1/3] websocket: process the frame as soon as we read data
-
-Otherwise we can enter in a read loop because we were not
-validating the data until the all the data was read.
-
-Fixes #391
-
-CVE: CVE-2024-52532
-Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libsoup/-/commit/6adc0e3eb74c257ed4e2a23eb4b2774fdb0d67be#f1d67ca0386b145ea201cf88d27f72724d7c6715]
-
-Signed-off-by: Changqing Li <[email protected]>
----
- libsoup/soup-websocket-connection.c | 5 ++---
- 1 file changed, 2 insertions(+), 3 deletions(-)
-
-diff --git a/libsoup/soup-websocket-connection.c b/libsoup/soup-websocket-connection.c
-index a4095e1..65c1492 100644
---- a/libsoup/soup-websocket-connection.c
-+++ b/libsoup/soup-websocket-connection.c
-@@ -1140,9 +1140,8 @@ soup_websocket_connection_read (SoupWebsocketConnection *self)
- 		}
- 
- 		pv->incoming->len = len + count;
--	} while (count > 0);
--
--	process_incoming (self);
-+		process_incoming (self);
-+	} while (count > 0 && !pv->close_sent && !pv->io_closing);
- 
- 	if (end) {
- 		if (!pv->close_sent || !pv->close_received) {
--- 
-2.34.1
-
meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2024-52532-2.patch deleted +0 -43

43 lines not on this page · raw message

meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2024-52532-3.patch deleted +0 -48

48 lines not on this page · raw message

meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-14523.patch deleted +0 -52

52 lines not on this page · raw message

meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-2784.patch deleted +0 -56

56 lines not on this page · raw message

meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32049-1.patch deleted +0 -229

229 lines not on this page · raw message

meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32049-2.patch deleted +0 -131

131 lines not on this page · raw message

meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32050.patch deleted +0 -29
deleted file mode 100644
index c032846ef0..0000000000
@@ -1,29 +0,0 @@
-From 5709dfffb6fdc5b66ce001bf82a755ad8ad1d992 Mon Sep 17 00:00:00 2001
-From: Patrick Griffis <[email protected]>
-Date: Mon, 28 Oct 2024 12:29:48 -0500
-Subject: [PATCH] Fix using int instead of size_t for strcspn return
-
-CVE: CVE-2025-32050
-Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libsoup/-/commit/9bb0a55de55c6940ced811a64fbca82fe93a9323]
-
-Signed-off-by: Changqing Li <[email protected]>
----
- libsoup/soup-headers.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/libsoup/soup-headers.c b/libsoup/soup-headers.c
-index 9707ca0..67905b2 100644
---- a/libsoup/soup-headers.c
-+++ b/libsoup/soup-headers.c
-@@ -902,7 +902,7 @@ append_param_quoted (GString    *string,
- 		     const char *name,
- 		     const char *value)
- {
--	int len;
-+	gsize len;
- 
- 	g_string_append (string, name);
- 	g_string_append (string, "=\"");
--- 
-2.34.1
-
meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32052.patch deleted +0 -32
deleted file mode 100644
index 34bc8113a4..0000000000
@@ -1,32 +0,0 @@
-From f4a67a9a3033586edaee715d40d5992e02d32893 Mon Sep 17 00:00:00 2001
-From: Patrick Griffis <[email protected]>
-Date: Sat, 16 Nov 2024 12:07:30 -0600
-Subject: [PATCH] Fix heap buffer overflow in soup_content_sniffer_sniff
-
-Co-Author: Ar Jun <[email protected]>
-
-CVE: CVE-2025-32052
-Upstream-Status: Backport
-[https://gitlab.gnome.org/GNOME/libsoup/-/commit/f182429e5b1fc034050510da20c93256c4fa9652#500da7cfde649872c49169be34b03a1c42a53ddb]
-
-Signed-off-by: Changqing Li <[email protected]>
----
- libsoup/soup-content-sniffer.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/libsoup/soup-content-sniffer.c b/libsoup/soup-content-sniffer.c
-index 9554636..eac9e7b 100644
---- a/libsoup/soup-content-sniffer.c
-+++ b/libsoup/soup-content-sniffer.c
-@@ -504,7 +504,7 @@ sniff_unknown (SoupContentSniffer *sniffer, SoupBuffer *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] == ' ') {
--- 
-2.34.1
-
meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32053.patch deleted +0 -39
deleted file mode 100644
index 0d829d6200..0000000000
@@ -1,39 +0,0 @@
-From d9bcffd6cd5e8ec32889a594f7348d67a5101b3a Mon Sep 17 00:00:00 2001
-From: Changqing Li <[email protected]>
-Date: Mon, 12 May 2025 13:58:42 +0800
-Subject: [PATCH] Fix heap buffer overflow in
- soup-content-sniffer.c:sniff_feed_or_html()
-
-CVE: CVE-2025-32053
-Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libsoup/-/commit/eaed42ca8d40cd9ab63764e3d63641180505f40a]
-
-Signed-off-by: Changqing Li <[email protected]>
----
- libsoup/soup-content-sniffer.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/libsoup/soup-content-sniffer.c b/libsoup/soup-content-sniffer.c
-index 967ec61..5f2896e 100644
---- a/libsoup/soup-content-sniffer.c
-+++ b/libsoup/soup-content-sniffer.c
-@@ -620,7 +620,7 @@ skip_insignificant_space (const char *resource, int *pos, int resource_length)
- 	       (resource[*pos] == '\x0D')) {
- 		*pos = *pos + 1;
- 
--		if (*pos > resource_length)
-+		if (*pos >= resource_length)
- 			return TRUE;
- 	}
- 
-@@ -682,7 +682,7 @@ sniff_feed_or_html (SoupContentSniffer *sniffer, SoupBuffer *buffer)
- 		do {
- 			pos++;
- 
--			if (pos > resource_length)
-+			if ((pos + 1) > resource_length)
- 				goto text_html;
- 		} while (resource[pos] != '>');
- 
--- 
-2.34.1
-
meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32906.patch deleted +0 -71

71 lines not on this page · raw message

meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32907.patch deleted +0 -39
deleted file mode 100644
index 41dd3ff3f4..0000000000
@@ -1,39 +0,0 @@
-From 8158b4084dcba2a233dfcb7359c53ab2840148f7 Mon Sep 17 00:00:00 2001
-From: Milan Crha <[email protected]>
-Date: Tue, 15 Apr 2025 12:17:39 +0200
-Subject: [PATCH 1/2] soup-message-headers: Correct merge of ranges
-
-It had been skipping every second range, which generated an array
-of a lot of insane ranges, causing large memory usage by the server.
-
-Closes #428
-
-Part-of: <https://gitlab.gnome.org/GNOME/libsoup/-/merge_requests/452>
-
-CVE: CVE-2025-32907
-Upstream-Status: Backport
-[https://gitlab.gnome.org/GNOME/libsoup/-/merge_requests/452/diffs?commit_id=9bb92f7a685e31e10e9e8221d0342280432ce836]
-
-Test part not applied since test codes use some functions not in this
-version
-
-Signed-off-by: Changqing Li <[email protected]>
----
- libsoup/soup-message-headers.c |   1 +
- 1 files changed, 1 insertions(+)
-
-diff --git a/libsoup/soup-message-headers.c b/libsoup/soup-message-headers.c
-index 78b2455..00b9763 100644
---- a/libsoup/soup-message-headers.c
-+++ b/libsoup/soup-message-headers.c
-@@ -1024,6 +1024,7 @@ soup_message_headers_get_ranges_internal (SoupMessageHeaders  *hdrs,
- 			if (cur->start <= prev->end) {
- 				prev->end = MAX (prev->end, cur->end);
- 				g_array_remove_index (array, i);
-+				i--;
- 			}
- 		}
- 	}
--- 
-2.34.1
-
meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32909.patch deleted +0 -38
deleted file mode 100644
index 2f5366348d..0000000000
@@ -1,38 +0,0 @@
-From e6e088e62c10ab91fa2f2ad5c122332aa7cde97c Mon Sep 17 00:00:00 2001
-From: Changqing Li <[email protected]>
-Date: Mon, 12 May 2025 16:55:37 +0800
-Subject: [PATCH] content-sniffer: Handle sniffing resource shorter than
- 4 bytes
-
-CVE: CVE-2025-32909
-Upstream-Status: Backport
-[https://gitlab.gnome.org/GNOME/libsoup/-/commit/ba4c3a6f988beff59e45801ab36067293d24ce92]
-
-Signed-off-by: Changqing Li <[email protected]>
----
- libsoup/soup-content-sniffer.c | 7 ++++++-
- 1 file changed, 6 insertions(+), 1 deletion(-)
-
-diff --git a/libsoup/soup-content-sniffer.c b/libsoup/soup-content-sniffer.c
-index eac9e7b..73d2245 100644
---- a/libsoup/soup-content-sniffer.c
-+++ b/libsoup/soup-content-sniffer.c
-@@ -227,9 +227,14 @@ sniff_mp4 (SoupContentSniffer *sniffer, SoupBuffer *buffer)
- {
- 	const char *resource = (const char *)buffer->data;
- 	guint resource_length = MIN (512, buffer->length);
--	guint32 box_size = *((guint32*)resource);
-+	guint32 box_size;
- 	guint i;
- 
-+	if (resource_length < sizeof (guint32))
-+		return FALSE;
-+
-+	box_size = *((guint32*)resource);
-+
- #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
- 	box_size = ((box_size >> 24) |
- 		    ((box_size << 8) & 0x00FF0000) |
--- 
-2.34.1
-
meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32910-1.patch deleted +0 -32
deleted file mode 100644
index c1dc6860f2..0000000000
@@ -1,32 +0,0 @@
-From a7e711d0f162c6edc8acad2a96981d4890784ea3 Mon Sep 17 00:00:00 2001
-From: Changqing Li <[email protected]>
-Date: Mon, 12 May 2025 17:02:55 +0800
-Subject: [PATCH] auth-digest: Handle missing realm/nonce in authenticate
- header
-
-CVE: CVE-2025-32910
-Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libsoup/-/merge_requests/417/diffs?commit_id=e40df6d48a1cbab56f5d15016cc861a503423cfe]
-
-Signed-off-by: Changqing Li <[email protected]>
----
- libsoup/soup-auth-digest.c |  3 +++
- 1 files changed, 3 insertions(+)
-
-diff --git a/libsoup/soup-auth-digest.c b/libsoup/soup-auth-digest.c
-index e8ba990..0ab3499 100644
---- a/libsoup/soup-auth-digest.c
-+++ b/libsoup/soup-auth-digest.c
-@@ -142,6 +142,9 @@ soup_auth_digest_update (SoupAuth *auth, SoupMessage *msg,
- 	guint qop_options;
- 	gboolean ok = TRUE;
- 
-+	 if (!soup_auth_get_realm (auth))
-+		return FALSE;
-+
- 	g_free (priv->domain);
- 	g_free (priv->nonce);
- 	g_free (priv->opaque);
- 
--- 
-2.34.1
-
meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32910-2.patch deleted +0 -94

94 lines not on this page · raw message

meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32910-3.patch deleted +0 -28
deleted file mode 100644
index bdf4d64ca3..0000000000
@@ -1,28 +0,0 @@
-From 74c95d54fe42041fe161cb74c76d942ffd37a5dd Mon Sep 17 00:00:00 2001
-From: Changqing Li <[email protected]>
-Date: Fri, 16 May 2025 13:21:43 +0800
-Subject: [PATCH] auth-digest: Fix leak
-
-CVE: CVE-2025-32910
-Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libsoup/-/merge_requests/417/diffs?commit_id=ea16eeacb052e423eb5c3b0b705e5eab34b13832]
-
-Signed-off-by: Changqing Li <[email protected]>
----
- libsoup/soup-auth-digest.c | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/libsoup/soup-auth-digest.c b/libsoup/soup-auth-digest.c
-index 10a8591..6d965d2 100644
---- a/libsoup/soup-auth-digest.c
-+++ b/libsoup/soup-auth-digest.c
-@@ -66,6 +66,7 @@ soup_auth_digest_finalize (GObject *object)
- 	g_free (priv->nonce);
- 	g_free (priv->domain);
- 	g_free (priv->cnonce);
-+	g_free (priv->opaque);
- 
- 	memset (priv->hex_urp, 0, sizeof (priv->hex_urp));
- 	memset (priv->hex_a1, 0, sizeof (priv->hex_a1));
--- 
-2.34.1
-
meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32912.patch deleted +0 -32
deleted file mode 100644
index b3ce9d8bc3..0000000000
@@ -1,32 +0,0 @@
-From 0984dddb11daf14fdf5ca24077cd0ebda796439a Mon Sep 17 00:00:00 2001
-From: Changqing Li <[email protected]>
-Date: Fri, 16 May 2025 13:25:32 +0800
-Subject: [PATCH] auth-digest: Handle missing nonce
-
-CVE: CVE-2025-32912
-Upstream-Status: Backport
-[https://gitlab.gnome.org/GNOME/libsoup/-/commit/cd077513f267e43ce4b659eb18a1734d8a369992?merge_request_iid=434
-https://gitlab.gnome.org/GNOME/libsoup/-/commit/910ebdcd3dd82386717a201c13c834f3a63eed7f]
-
-Signed-off-by: Changqing Li <[email protected]>
----
- libsoup/soup-auth-digest.c | 2 +-
- 1 files changed, 1 insertions(+), 1 deletion(-)
-
-diff --git a/libsoup/soup-auth-digest.c b/libsoup/soup-auth-digest.c
-index 6d965d2..f1621ec 100644
---- a/libsoup/soup-auth-digest.c
-+++ b/libsoup/soup-auth-digest.c
-@@ -156,7 +156,7 @@ soup_auth_digest_update (SoupAuth *auth, SoupMessage *msg,
- 	guint qop_options;
- 	gboolean ok = TRUE;
- 
--	 if (!soup_auth_get_realm (auth))
-+	if (!soup_auth_get_realm (auth) || !g_hash_table_lookup (auth_params, "nonce"))
- 		return FALSE;
- 
- 	g_free (priv->domain);
-
--- 
-2.34.1
-
meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-32914.patch deleted +0 -35
deleted file mode 100644
index 9f3bb21a25..0000000000
@@ -1,35 +0,0 @@
-From ac844b9fc7945c38ea21fb7cf1a49a5c226d7c9c Mon Sep 17 00:00:00 2001
-From: Changqing Li <[email protected]>
-Date: Mon, 12 May 2025 16:17:20 +0800
-Subject: [PATCH] Resolve "(CVE-2025-32914) (#YWH-PGM9867-23) OOB Read on
- libsoup through function "soup_multipart_new_from_message" in
- soup-multipart.c leads to crash or exit of process"
-
-CVE: CVE-2025-32914
-Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libsoup/-/merge_requests/450/diffs?commit_id=5bfcf8157597f2d327050114fb37ff600004dbcf]
-
-Test code are not added since some functions not aligned with version
-2.74.3
-
-Signed-off-by: Changqing Li <[email protected]>
----
- libsoup/soup-multipart.c |  2 +-
- 1 files changed, 1 insertions(+), 1 deletion(-)
-
-diff --git a/libsoup/soup-multipart.c b/libsoup/soup-multipart.c
-index a7e550f..dd93973 100644
---- a/libsoup/soup-multipart.c
-+++ b/libsoup/soup-multipart.c
-@@ -181,7 +181,7 @@ soup_multipart_new_from_message (SoupMessageHeaders *headers,
- 			return NULL;
- 		}
- 
--		split = strstr (start, "\r\n\r\n");
-+		split = g_strstr_len (start, body_end - start, "\r\n\r\n");
- 		if (!split || split > end) {
- 			soup_multipart_free (multipart);
- 			soup_buffer_free (flattened);
- 
--- 
-2.34.1
-
meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-4476.patch deleted +0 -38
deleted file mode 100644
index 874f62e7ad..0000000000
@@ -1,38 +0,0 @@
-From 52a0f9234d384b9dab368835b22e5a5a01542168 Mon Sep 17 00:00:00 2001
-From: Changqing Li <[email protected]>
-Date: Fri, 16 May 2025 14:16:10 +0800
-Subject: [PATCH] auth-digest: fix crash in
- soup_auth_digest_get_protection_space()
-
-We need to validate the Domain parameter in the WWW-Authenticate header.
-
-Unfortunately this crash only occurs when listening on default ports 80
-and 443, so there's no good way to test for this. The test would require
-running as root.
-
-Fixes #440
-
-CVE: CVE-2025-4476
-Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libsoup/-/commit/e64c221f9c7d09b48b610c5626b3b8c400f0907c?merge_request_iid=457]
-
-Signed-off-by: Changqing Li <[email protected]>
----
- libsoup/soup-auth-digest.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/libsoup/soup-auth-digest.c b/libsoup/soup-auth-digest.c
-index f1621ec..a2dc560 100644
---- a/libsoup/soup-auth-digest.c
-+++ b/libsoup/soup-auth-digest.c
-@@ -229,7 +229,7 @@ soup_auth_digest_get_protection_space (SoupAuth *auth, SoupURI *source_uri)
- 			uri = soup_uri_new (d);
- 			if (uri && uri->scheme == source_uri->scheme &&
- 			    uri->port == source_uri->port &&
--			    !strcmp (uri->host, source_uri->host))
-+			    !g_strcmp0 (uri->host, source_uri->host))
- 				dir = g_strdup (uri->path);
- 			else
- 				dir = NULL;
--- 
-2.34.1
-
meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-46420.patch deleted +0 -61

61 lines not on this page · raw message

meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-46421.patch deleted +0 -47

47 lines not on this page · raw message

meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-4945.patch deleted +0 -117

117 lines not on this page · raw message

meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-4948.patch deleted +0 -38
deleted file mode 100644
index b15b8c763d..0000000000
@@ -1,38 +0,0 @@
-From dfdc9b3cc73e6fe88cc12792ba00e14642572339 Mon Sep 17 00:00:00 2001
-From: Milan Crha <[email protected]>
-Date: Thu, 15 May 2025 17:49:11 +0200
-Subject: [PATCH] soup-multipart: Verify boundary limits for multipart body
-
-It could happen that the boundary started at a place which resulted into
-a negative number, which in an unsigned integer is a very large value.
-Check the body size is not a negative value before setting it.
-
-Closes https://gitlab.gnome.org/GNOME/libsoup/-/issues/449
-
-Part-of: <https://gitlab.gnome.org/GNOME/libsoup/-/merge_requests/463>
-
-CVE: CVE-2025-4948
-Upstream-Status: Backport
-[https://gitlab.gnome.org/GNOME/libsoup/-/merge_requests/463/diffs?commit_id=f2f28afe0b3b2b3009ab67d6874457ec6bac70c0]
-
-Signed-off-by: Changqing Li <[email protected]>
----
- libsoup/soup-multipart.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/libsoup/soup-multipart.c b/libsoup/soup-multipart.c
-index dd93973..ce2fc10 100644
---- a/libsoup/soup-multipart.c
-+++ b/libsoup/soup-multipart.c
-@@ -214,7 +214,7 @@ soup_multipart_new_from_message (SoupMessageHeaders *headers,
- 		 */
- 		part_body = soup_buffer_new_subbuffer (flattened,
- 						       split - flattened->data,
--						       end - 2 - split);
-+						       end - 2 >= split ? end - 2 - split : 0);
- 		g_ptr_array_add (multipart->bodies, part_body);
- 
- 		start = end;
--- 
-2.34.1
-
meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2025-4969.patch deleted +0 -37
deleted file mode 100644
index 7bc3e8da99..0000000000
@@ -1,37 +0,0 @@
-From a7d0c58608ed830bedfb6b92aea11e00feb55aa9 Mon Sep 17 00:00:00 2001
-From: Milan Crha <[email protected]>
-Date: Mon, 19 May 2025 17:48:27 +0200
-Subject: [PATCH] soup-multipart: Verify array bounds before accessing its
- members
-
-The boundary could be at a place which, calculated, pointed
-before the beginning of the array. Check the bounds, to avoid
-read out of the array bounds.
-
-Closes https://gitlab.gnome.org/GNOME/libsoup/-/issues/447
-
-CVE: CVE-2025-4969
-Upstream-Status: Backport
-[https://gitlab.gnome.org/GNOME/libsoup/-/merge_requests/467/diffs?commit_id=b5b4dd10d4810f0c87b4eaffe88504f06e502f33]
-
-Signed-off-by: Changqing Li <[email protected]>
----
- libsoup/soup-multipart.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/libsoup/soup-multipart.c b/libsoup/soup-multipart.c
-index ce2fc10..a29cdf0 100644
---- a/libsoup/soup-multipart.c
-+++ b/libsoup/soup-multipart.c
-@@ -108,7 +108,7 @@ find_boundary (const char *start, const char *end,
- 			continue;
- 
- 		/* Check that it's at start of line */
--		if (!(b == start || (b[-1] == '\n' && b[-2] == '\r')))
-+		if (!(b == start || (b - start >= 2 && b[-1] == '\n' && b[-2] == '\r')))
- 			continue;
- 
- 		/* Check for "--" or "\r\n" after boundary */
--- 
-2.34.1
-
meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2026-1467.patch deleted +0 -151

151 lines not on this page · raw message

meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2026-1539.patch deleted +0 -31
deleted file mode 100644
index c6b813a98f..0000000000
@@ -1,31 +0,0 @@
-From 285faea567e1e2a95226201175dbf745a64a2439 Mon Sep 17 00:00:00 2001
-From: Changqing Li <[email protected]>
-Date: Fri, 20 Mar 2026 15:04:22 +0800
-Subject: [PATCH 4/4] Also remove Proxy-Authorization header on cross origin
- redirect
-
-Closes #489
-
-Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libsoup/-/commit/98c1285d9d78662c38bf14b4a128af01ccfdb446]
-CVE: CVE-2026-1539
-
-Signed-off-by: Changqing Li <[email protected]>
----
- libsoup/soup-session.c | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c
-index cc0d04c..0361856 100644
---- a/libsoup/soup-session.c
-+++ b/libsoup/soup-session.c
-@@ -1190,6 +1190,7 @@ soup_session_redirect_message (SoupSession *session, SoupMessage *msg)
- 	/* Strip all credentials on cross-origin redirect. */
- 	if (!soup_uri_host_equal (soup_message_get_uri (msg), new_uri)) {
- 		soup_message_headers_remove (msg->request_headers, "Authorization");
-+		soup_message_headers_remove (msg->request_headers, "Proxy-Authorization");
- 		soup_message_set_auth (msg, NULL);
- 	}
- 
--- 
-2.34.1
-
meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2026-1760.patch deleted +0 -153

153 lines not on this page · raw message

meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2026-1761.patch deleted +0 -36
deleted file mode 100644
index 573e3e1dd0..0000000000
@@ -1,36 +0,0 @@
-From 07757b7feacfc660c6c463ff2b773c13bc42d2c9 Mon Sep 17 00:00:00 2001
-From: Changqing Li <[email protected]>
-Date: Thu, 19 Mar 2026 17:21:32 +0800
-Subject: [PATCH 3/4] multipart: check length of bytes read
- soup_filter_input_stream_read_until()
-
-We do make sure the read length is smaller than the buffer length when
-the boundary is not found, but we should do the same when the boundary
-is found.
-
-Spotted in #YWH-PGM9867-149
-Closes #493
-
-Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libsoup/-/commit/cfa9d90d1a5c274233554a264c56551c13d6a6f0]
-CVE: CVE-2026-1761
-
-Signed-off-by: Changqing Li <[email protected]>
----
- libsoup/soup-filter-input-stream.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/libsoup/soup-filter-input-stream.c b/libsoup/soup-filter-input-stream.c
-index 2c30bf9..c34510b 100644
---- a/libsoup/soup-filter-input-stream.c
-+++ b/libsoup/soup-filter-input-stream.c
-@@ -272,6 +272,6 @@ soup_filter_input_stream_read_until (SoupFilterInputStream  *fstream,
- 	if (eof && !*got_boundary)
- 		read_length = MIN (fstream->priv->buf->len, length);
- 	else
--		read_length = p - buf;
-+		read_length = MIN ((gsize)(p - buf), length);
- 	return read_from_buf (fstream, buffer, read_length);
- }
--- 
-2.34.1
-
meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2026-1801.patch deleted +0 -126

126 lines not on this page · raw message

meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2026-2369.patch deleted +0 -33
deleted file mode 100644
index 814672caca..0000000000
@@ -1,33 +0,0 @@
-From 5c4e65fd99ff4e3ae76c7985c5e160bb07ea0f92 Mon Sep 17 00:00:00 2001
-From: Changqing Li <[email protected]>
-Date: Wed, 25 Mar 2026 11:24:36 +0800
-Subject: [PATCH] sniffer: Handle potential underflow
-
-Closes #498
-
-Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libsoup/-/commit/b91bbd7d7888c85b17a8b33173caa806dff51681]
-CVE: CVE-2026-2369
-
-Signed-off-by: Changqing Li <[email protected]>
----
- libsoup/soup-content-sniffer.c | 4 ++++
- 1 file changed, 4 insertions(+)
-
-diff --git a/libsoup/soup-content-sniffer.c b/libsoup/soup-content-sniffer.c
-index 3edc568..b091bca 100644
---- a/libsoup/soup-content-sniffer.c
-+++ b/libsoup/soup-content-sniffer.c
-@@ -504,6 +504,10 @@ sniff_unknown (SoupContentSniffer *sniffer, SoupBuffer *buffer,
- 		if (!sniff_scriptable && type_row->scriptable)
- 			continue;
- 
-+		/* Ensure we have data to sniff - prevents underflow in resource_length - 1 */
-+		if (resource_length == 0)
-+			continue;
-+
- 		if (type_row->has_ws) {
- 			guint index_stream = 0;
- 			guint index_pattern = 0;
--- 
-2.34.1
-
meta-oe/recipes-support/libsoup/libsoup-2.4/CVE-2026-2443.patch deleted +0 -135

135 lines not on this page · raw message

meta-oe/recipes-support/libsoup/libsoup-2.4_2.74.3.bb deleted +0 -97

97 lines not on this page · raw message

Signature · 1 line
2.54.0