Skip to content

Commit f5305ed

Browse files
Patch libsoup for CVE-2025-4948
1 parent ee84d60 commit f5305ed

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

SPECS/libsoup/CVE-2025-4948.patch

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
From cec5cbbc2619712b4e81e9e5dee095b3b0307d59 Mon Sep 17 00:00:00 2001
2+
From: Azure Linux Security Servicing Account
3+
4+
Date: Fri, 18 Jul 2025 19:09:46 +0000
5+
Subject: [PATCH] Fix CVE CVE-2025-4948 in libsoup
6+
7+
Upstream Patch Reference: https://gitlab.gnome.org/GNOME/libsoup/-/merge_requests/463.patch
8+
---
9+
libsoup/soup-multipart.c | 2 +-
10+
1 file changed, 1 insertion(+), 1 deletion(-)
11+
12+
diff --git a/libsoup/soup-multipart.c b/libsoup/soup-multipart.c
13+
index 102ce37..a587fe7 100644
14+
--- a/libsoup/soup-multipart.c
15+
+++ b/libsoup/soup-multipart.c
16+
@@ -204,7 +204,7 @@ soup_multipart_new_from_message (SoupMessageHeaders *headers,
17+
*/
18+
part_body = g_bytes_new_from_bytes (body, // FIXME
19+
split - body_data,
20+
- end - 2 - split);
21+
+ end - 2 >= split ? end - 2 - split : 0);
22+
g_ptr_array_add (multipart->bodies, part_body);
23+
24+
start = end;
25+
--
26+
2.45.4
27+

SPECS/libsoup/libsoup.spec

Lines changed: 5 additions & 1 deletion
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: 7%{?dist}
7+
Release: 8%{?dist}
88
License: GPLv2
99
Vendor: Microsoft Corporation
1010
Distribution: Azure Linux
@@ -65,6 +65,7 @@ Patch15: CVE-2025-46421.patch
6565
Patch16: CVE-2025-32053.patch
6666
Patch17: CVE-2025-4476.patch
6767
Patch18: CVE-2025-32907.patch
68+
Patch19: CVE-2025-4948.patch
6869

6970
%description
7071
libsoup is HTTP client/server library for GNOME
@@ -132,6 +133,9 @@ find %{buildroot} -type f -name "*.la" -delete -print
132133
%defattr(-,root,root)
133134

134135
%changelog
136+
* Fri Jul 18 2025 Azure Linux Security Servicing Account <[email protected]> - 3.4.4-8
137+
- Patch for CVE-2025-4948
138+
135139
* Fri Jun 13 2025 Kevin Lockwood <[email protected]> - 3.4.4-7
136140
- Add patch for CVE-2025-4476
137141
- Add patch for CVE-2025-32907

0 commit comments

Comments
 (0)