Vulnerability · Published Jul 14, 2025 · Assigned by redhat
CVE-2025-7519Polkit: xml policy file with a large number of nested elements may lead to out-of-bounds write
Medium 6.7
In plain English
A medium-severity out-of-bounds write in polkit. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 13% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | policykit-1 | no fix listed | DEBIAN-CVE-2025-7519 |
| Debian:13 | policykit-1 | no fix listed | DEBIAN-CVE-2025-7519 |
| Debian:14 | policykit-1 | 127-1 | DEBIAN-CVE-2025-7519 |
| Ubuntu:22.04:LTS | policykit-1 | 0.105-33ubuntu0.1 | USN-8173-1 |
| Ubuntu:22.04:LTS | policykit-1 | 0.105-33ubuntu0.1 | UBUNTU-CVE-2025-7519 |
| Ubuntu:24.04:LTS | policykit-1 | 124-2ubuntu1.24.04.3 | USN-8173-1 |
| Ubuntu:24.04:LTS | policykit-1 | 124-2ubuntu1.24.04.3 | UBUNTU-CVE-2025-7519 |
| Ubuntu:25.10 | policykit-1 | 126-2ubuntu0.1 | UBUNTU-CVE-2025-7519 |
| Ubuntu:25.10 | policykit-1 | 126-2ubuntu0.1 | USN-8173-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| polkit | 0 – through 126 | |
| Red Hat | Red Hat Enterprise Linux 10 | see references |
| Red Hat | Red Hat Enterprise Linux 6 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat OpenShift Container Platform 4 | see references |
| Red Hat | Red Hat OpenShift Container Platform 4 | see references |
Weakness: CWE-787 · Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
References
- https://access.redhat.com/security/cve/CVE-2025-7519 vdb-entry, x_refsource_REDHAT
- RHBZ#2379675 issue-tracking, x_refsource_REDHAT
- https://github.com/polkit-org/polkit/commit/107d3801361b9f9084f78710178e683391f1d245
- https://github.com/polkit-org/polkit/pull/570