Pick patch from [1] also mentioned at Debian report in [2]

[1] 
https://gitlab.gnome.org/GNOME/libsoup/-/commit/af4bde990270b825b7d110a495cc65de9e2ec32f
[2] https://security-tracker.debian.org/tracker/CVE-2026-2369

Note: Issue introduced by the fix for CVE-2025-32052.

Signed-off-by: Hitendra Prajapati <[email protected]>
---
 .../libsoup/libsoup-3.4.4/CVE-2026-2369.patch | 32 +++++++++++++++++++
 meta/recipes-support/libsoup/libsoup_3.4.4.bb |  1 +
 2 files changed, 33 insertions(+)
 create mode 100644 
meta/recipes-support/libsoup/libsoup-3.4.4/CVE-2026-2369.patch

diff --git a/meta/recipes-support/libsoup/libsoup-3.4.4/CVE-2026-2369.patch 
b/meta/recipes-support/libsoup/libsoup-3.4.4/CVE-2026-2369.patch
new file mode 100644
index 0000000000..bee8a35323
--- /dev/null
+++ b/meta/recipes-support/libsoup/libsoup-3.4.4/CVE-2026-2369.patch
@@ -0,0 +1,32 @@
+From af4bde990270b825b7d110a495cc65de9e2ec32f Mon Sep 17 00:00:00 2001
+From: Samuel Dainard <>
+Date: Wed, 11 Feb 2026 10:19:04 -0600
+Subject: [PATCH] sniffer: Handle potential underflow
+
+Closes #498
+
+CVE: CVE-2026-2369
+Upstream-Status: Backport 
[https://gitlab.gnome.org/GNOME/libsoup/-/commit/af4bde990270b825b7d110a495cc65de9e2ec32f]
+Signed-off-by: Hitendra Prajapati <[email protected]>
+---
+ libsoup/content-sniffer/soup-content-sniffer.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/libsoup/content-sniffer/soup-content-sniffer.c 
b/libsoup/content-sniffer/soup-content-sniffer.c
+index a5e18d5..594d0bb 100644
+--- a/libsoup/content-sniffer/soup-content-sniffer.c
++++ b/libsoup/content-sniffer/soup-content-sniffer.c
+@@ -524,6 +524,10 @@ sniff_unknown (SoupContentSniffer *sniffer, GBytes 
*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.50.1
+
diff --git a/meta/recipes-support/libsoup/libsoup_3.4.4.bb 
b/meta/recipes-support/libsoup/libsoup_3.4.4.bb
index 8fe3775e1e..15164d940c 100644
--- a/meta/recipes-support/libsoup/libsoup_3.4.4.bb
+++ b/meta/recipes-support/libsoup/libsoup_3.4.4.bb
@@ -52,6 +52,7 @@ SRC_URI = 
"${GNOME_MIRROR}/libsoup/${SHRT_VER}/libsoup-${PV}.tar.xz \
            file://CVE-2025-32049-3.patch \
            file://CVE-2025-32049-4.patch \
            file://CVE-2025-11021.patch \
+           file://CVE-2026-2369.patch \
 "
 SRC_URI[sha256sum] = 
"291c67725f36ed90ea43efff25064b69c5a2d1981488477c05c481a3b4b0c5aa"
 
-- 
2.50.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#238354): 
https://lists.openembedded.org/g/openembedded-core/message/238354
Mute This Topic: https://lists.openembedded.org/mt/119738401/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to