Skip to content

Commit fda604b

Browse files
[AutoPR- Security] Patch polkit for CVE-2025-7519 [MEDIUM] (#14326)
1 parent 7720333 commit fda604b

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

SPECS/polkit/CVE-2025-7519.patch

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
From 34ccf6c4d7a71872c9a216fde20dedb318a40e9a Mon Sep 17 00:00:00 2001
2+
From: Azure Linux Security Servicing Account
3+
4+
Date: Thu, 17 Jul 2025 06:46:54 +0000
5+
Subject: [PATCH] Fix CVE CVE-2025-7519 in polkit
6+
7+
Upstream Patch Reference: https://github.com/polkit-org/polkit/commit/107d3801361b9f9084f78710178e683391f1d245.patch
8+
---
9+
src/polkitbackend/polkitbackendactionpool.c | 6 ++++++
10+
1 file changed, 6 insertions(+)
11+
12+
diff --git a/src/polkitbackend/polkitbackendactionpool.c b/src/polkitbackend/polkitbackendactionpool.c
13+
index 3894fe9..c9fa23e 100644
14+
--- a/src/polkitbackend/polkitbackendactionpool.c
15+
+++ b/src/polkitbackend/polkitbackendactionpool.c
16+
@@ -672,6 +672,12 @@ _start (void *data, const char *el, const char **attr)
17+
guint num_attr;
18+
ParserData *pd = data;
19+
20+
+ if (pd->stack_depth < 0 || pd->stack_depth >= PARSER_MAX_DEPTH)
21+
+ {
22+
+ g_warning ("XML parsing reached max depth?");
23+
+ goto error;
24+
+ }
25+
+
26+
for (num_attr = 0; attr[num_attr] != NULL; num_attr++)
27+
;
28+
29+
--
30+
2.45.3
31+

SPECS/polkit/polkit.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
Summary: A toolkit for defining and handling authorizations.
22
Name: polkit
33
Version: 0.119
4-
Release: 3%{?dist}
4+
Release: 4%{?dist}
55
Group: Applications/System
66
Vendor: Microsoft Corporation
77
License: GPLv2+
88
URL: https://www.freedesktop.org/software/polkit/docs/latest/polkit.8.html
99
Source0: https://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz
1010
Patch0: CVE-2021-4034.patch
11+
Patch1: CVE-2025-7519.patch
1112
Distribution: Mariner
1213
BuildRequires: autoconf
1314
BuildRequires: expat-devel
@@ -111,6 +112,9 @@ fi
111112
%{_libdir}/pkgconfig/*.pc
112113

113114
%changelog
115+
* Thu Jul 17 2025 Azure Linux Security Servicing Account <[email protected]> - 0.119-4
116+
- Patch for CVE-2025-7519
117+
114118
* Thu Mar 17 2022 Andrew Phelps <[email protected]> - 0.119-3
115119
- Disable documentation
116120

0 commit comments

Comments
 (0)