Skip to content

Commit f3e5a74

Browse files
[AutoPR- Security] Patch libsoup for CVE-2026-2369 [MEDIUM] (#16286)
Co-authored-by: akhila-guruju <v-guakhila@microsoft.com>
1 parent 3d37143 commit f3e5a74

2 files changed

Lines changed: 37 additions & 2 deletions

File tree

SPECS/libsoup/CVE-2026-2369.patch

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
From db3f4c30a3436d664763b016613c8ac7d586aadb Mon Sep 17 00:00:00 2001
2+
From: Samuel Dainard <>
3+
Date: Wed, 11 Feb 2026 10:19:04 -0600
4+
Subject: [PATCH] sniffer: Handle potential underflow
5+
6+
Closes #498
7+
8+
Signed-off-by: Azure Linux Security Servicing Account <azurelinux-security@microsoft.com>
9+
Upstream-reference: https://gitlab.gnome.org/GNOME/libsoup/-/commit/af4bde990270b825b7d110a495cc65de9e2ec32f.patch
10+
---
11+
libsoup/content-sniffer/soup-content-sniffer.c | 4 ++++
12+
1 file changed, 4 insertions(+)
13+
14+
diff --git a/libsoup/content-sniffer/soup-content-sniffer.c b/libsoup/content-sniffer/soup-content-sniffer.c
15+
index a5e18d5..594d0bb 100644
16+
--- a/libsoup/content-sniffer/soup-content-sniffer.c
17+
+++ b/libsoup/content-sniffer/soup-content-sniffer.c
18+
@@ -524,6 +524,10 @@ sniff_unknown (SoupContentSniffer *sniffer, GBytes *buffer,
19+
if (!sniff_scriptable && type_row->scriptable)
20+
continue;
21+
22+
+ /* Ensure we have data to sniff - prevents underflow in resource_length - 1 */
23+
+ if (resource_length == 0)
24+
+ continue;
25+
+
26+
if (type_row->has_ws) {
27+
guint index_stream = 0;
28+
guint index_pattern = 0;
29+
--
30+
2.45.4
31+

SPECS/libsoup/libsoup.spec

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Summary: libsoup HTTP client/server library
55
Name: libsoup
66
Version: 3.4.4
7-
Release: 13%{?dist}
7+
Release: 14%{?dist}
88
License: GPLv2
99
Vendor: Microsoft Corporation
1010
Distribution: Azure Linux
@@ -77,6 +77,7 @@ Patch27: CVE-2026-1801.patch
7777
Patch28: fix-ssl-test.patch
7878
Patch29: CVE-2026-0716.patch
7979
Patch30: CVE-2026-2443.patch
80+
Patch31: CVE-2026-2369.patch
8081

8182
%description
8283
libsoup is HTTP client/server library for GNOME
@@ -125,7 +126,7 @@ find %{buildroot} -type f -name "*.la" -delete -print
125126

126127
%check
127128
%if 0%{?with_check}
128-
%meson_test
129+
%meson_test --timeout-multiplier 10
129130
%endif
130131

131132
%post -p /sbin/ldconfig
@@ -152,6 +153,9 @@ find %{buildroot} -type f -name "*.la" -delete -print
152153
%defattr(-,root,root)
153154

154155
%changelog
156+
* Wed Mar 25 2026 Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> - 3.4.4-14
157+
- Patch for CVE-2026-2369
158+
155159
* Tue Feb 17 2026 Azure Linux Security Servicing Account <azurelinux-security@microsoft.com> - 3.4.4-13
156160
- Patch for CVE-2026-0716, CVE-2026-2443
157161
- enable ptests and fix ssl-test

0 commit comments

Comments
 (0)