Skip to content

Commit a811cf2

Browse files
authored
Patch libsoup for CVE-2025-32053 [Medium] (#13407)
1 parent 00880a7 commit a811cf2

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

SPECS/libsoup/CVE-2025-32053.patch

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
From eaed42ca8d40cd9ab63764e3d63641180505f40a Mon Sep 17 00:00:00 2001
2+
From: Ar Jun <[email protected]>
3+
Date: Mon, 18 Nov 2024 14:59:51 -0600
4+
Subject: [PATCH] Fix heap buffer overflow in
5+
soup-content-sniffer.c:sniff_feed_or_html()
6+
7+
Upstream patch reference: https://gitlab.gnome.org/GNOME/libsoup/-/commit/eaed42ca8d40cd9ab63764e3d63641180505f40a
8+
---
9+
libsoup/content-sniffer/soup-content-sniffer.c | 4 ++--
10+
1 file changed, 2 insertions(+), 2 deletions(-)
11+
12+
diff --git a/libsoup/content-sniffer/soup-content-sniffer.c b/libsoup/content-sniffer/soup-content-sniffer.c
13+
index b62e4888..5a181ff1 100644
14+
--- a/libsoup/content-sniffer/soup-content-sniffer.c
15+
+++ b/libsoup/content-sniffer/soup-content-sniffer.c
16+
@@ -641,7 +641,7 @@ skip_insignificant_space (const char *resource, int *pos, int resource_length)
17+
(resource[*pos] == '\x0D')) {
18+
*pos = *pos + 1;
19+
20+
- if (*pos > resource_length)
21+
+ if (*pos >= resource_length)
22+
return TRUE;
23+
}
24+
25+
@@ -704,7 +704,7 @@ sniff_feed_or_html (SoupContentSniffer *sniffer, GBytes *buffer)
26+
do {
27+
pos++;
28+
29+
- if (pos > resource_length)
30+
+ if ((pos + 1) > resource_length)
31+
goto text_html;
32+
} while (resource[pos] != '>');
33+
34+
--
35+
GitLab
36+

SPECS/libsoup/libsoup.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Summary: libsoup HTTP client/server library
33
Name: libsoup
44
Version: %{BaseVersion}.4
5-
Release: 5%{?dist}
5+
Release: 6%{?dist}
66
License: GPLv2
77
Vendor: Microsoft Corporation
88
Distribution: Mariner
@@ -24,6 +24,7 @@ Patch8: CVE-2025-32050.patch
2424
Patch9: CVE-2025-32051.patch
2525
Patch10: CVE-2025-46420.patch
2626
Patch11: CVE-2025-46421.patch
27+
Patch12: CVE-2025-32053.patch
2728

2829
BuildRequires: meson
2930
BuildRequires: autogen
@@ -135,6 +136,9 @@ find %{buildroot} -type f -name "*.la" -delete -print
135136
%defattr(-,root,root)
136137

137138
%changelog
139+
* Wed 07 2025 Bhagyashri Pathak <[email protected]> - 3.0.4-6
140+
- Patche for CVE-2025-32053
141+
138142
* Sun May 04 2025 Kshitiz Godara <[email protected]> - 3.0.4-5
139143
- Added patch for CVE-2025-2784 CVE-2025-32052 CVE-2025-32050 CVE-2025-32051 CVE-2025-46420 CVE-2025-46421
140144

0 commit comments

Comments
 (0)