CVE-2025-7519
Medium · 6.7CVSS
6.7
EPSS
0.2%
Published
Jul 14, 2025
CISA due date
—
Cloudanix analysis
A permission-checking tool can crash or be misused if an administrator adds a specially formatted file with too many nested sections.
- Exploitation
- Local Privilege
- Attacker needs
- High Privilege
- Complexity
- Moderate
- Impact
- Full Compromise
- Component
- Application
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Out-of-bounds write triggered when polkit processes an XML policy containing 32 or more levels of nested elements, potentially resulting in crashes or arbitrary code execution.
Why it matters to the business
Vulnerable systems risk service crashes or, with administrative access, full compromise; low exploit probability but high impact if a privileged attacker deploys a malicious policy.
How an attack unfolds
An attacker with high-privilege access creates an XML policy file containing excessive nesting depth, places it in the polkit policy directory, and triggers policy processing to induce the out-of-bounds write.
How to fix it
Upgrade polkit to commit 107d3801361b9f9084f78710178e683391f1d245 or linux-lts (Alpaquita:stream) to 6.6.58-r0 or later.
How to confirm the fix worked
Confirm the installed polkit version or commit hash matches a fixed release; attempt to load a test policy with 32+ nested elements and verify absence of crashes or unexpected behavior.
Typical attack path
- Obtain high-privilege access on the target system
- Craft an XML policy file with 32 or more nested elements
- Write the malicious policy file to the polkit configuration directory
- Trigger policy evaluation to activate the buffer overflow
How to detect it
Review system and application logs for polkit crashes during policy loading; inspect recently modified policy files in configuration directories for unusual XML structure.
What your security team should do
- Apply the listed fixes immediately on all affected systems
- Restrict write access to polkit policy directories to trusted administrators only
- Scan existing policy files for excessive nesting depth
The record
A flaw was found in polkit. When processing an XML policy with 32 or more nested elements in depth, an out-of-bounds write can be triggered. This issue can lead to a crash or other unexpected behavior, and arbitrary code execution is not discarded. To exploit this flaw, a high-privilege account is needed as it's required to place the malicious policy file properly.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | policykit-1 | 0 | No fix |
| Debian:12 | policykit-1 | 0 | No fix |
| Debian:13 | policykit-1 | 0 | No fix |
| Debian:14 | policykit-1 | 0 | No fix |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | polkit | 0 | 121-150500.3.6.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | polkit | 0 | 121-150500.3.6.1 |
| SUSE:Linux Enterprise Micro 5.5 | polkit | 0 | 121-150500.3.6.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP6 | polkit | 0 | 121-150500.3.6.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP7 | polkit | 0 | 121-150500.3.6.1 |
| SUSE:Linux Enterprise Server 15 SP5-LTSS | polkit | 0 | 121-150500.3.6.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP5 | polkit | 0 | 121-150500.3.6.1 |
| openSUSE:Leap 15.6 | polkit | 0 | 121-150500.3.6.1 |
| openSUSE:Tumbleweed | polkit | 0 | 127-3.1 |
Related vulnerabilities
- CVE-2021-4034 A local privilege escalation vulnerability was found on polkit's pkexec utility. Also affects policykit-1
- CVE-2015-3218 The authentication_agent_new function in polkitbackend/polkitbackendinteractiveauthority… Also affects policykit-1
- CVE-2026-4897 A flaw was found in polkit. Also affects polkit
- CVE-2026-78402 Stack-based buffer overflow and out-of-bounds write vulnerability in Thales Sentinel Keys… CWE-787
- CVE-2026-119777 A flaw was found in GStreamer's gst-plugins-bad H.266/VVC parser. CWE-787
- CVE-2026-104065 Scribus before 1.6.7 contains an out-of-bounds write vulnerability in the importdrw… CWE-787
- CVE-2026-104067 Scribus before 1.6.7 contains an out-of-bounds memory access vulnerability in the… CWE-787
- CVE-2026-104066 Scribus before 1.6.7 contains a heap buffer overflow vulnerability in the Mac PICT image… CWE-787