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.
Workaround:
The product writes data past the end, or before the beginning, of the intended buffer.
Link | Tags |
---|---|
https://access.redhat.com/security/cve/CVE-2025-7519 | vendor advisory vdb entry |
https://bugzilla.redhat.com/show_bug.cgi?id=2379675 | issue tracking |
https://github.com/polkit-org/polkit/commit/107d3801361b9f9084f78710178e683391f1d245 | patch |
https://github.com/polkit-org/polkit/pull/570 | patch |