Skip to content

Commit 6ec72b3

Browse files
[AutoPR- Security] Patch polkit for CVE-2025-7519 [MEDIUM] (#14325)
1 parent 862cd3d commit 6ec72b3

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 56e9d27e620a0f60d7490ebf3fc2766b39209a1c Mon Sep 17 00:00:00 2001
2+
From: Azure Linux Security Servicing Account
3+
4+
Date: Thu, 17 Jul 2025 06:41:24 +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,12 +1,13 @@
11
Summary: A toolkit for defining and handling authorizations.
22
Name: polkit
33
Version: 123
4-
Release: 2%{?dist}
4+
Release: 3%{?dist}
55
Group: Applications/System
66
Vendor: Microsoft Corporation
77
License: GPLv2+
88
URL: https://gitlab.freedesktop.org/polkit/polkit
99
Source0: https://gitlab.freedesktop.org/polkit/polkit/-/archive/%{version}/polkit-%{version}.tar.gz
10+
Patch0: CVE-2025-7519.patch
1011
Distribution: Azure Linux
1112
BuildRequires: duktape-devel
1213
BuildRequires: expat-devel
@@ -123,6 +124,9 @@ fi
123124

124125

125126
%changelog
127+
* Thu Jul 17 2025 Azure Linux Security Servicing Account <[email protected]> - 123-3
128+
- Patch for CVE-2025-7519
129+
126130
* Thu Feb 01 2024 Dan Streetman <[email protected]> - 123-2
127131
- workaround "circular dependencies" from build tooling
128132

0 commit comments

Comments
 (0)