Bug 2526327 (CVE-2026-78422) - CVE-2026-78422 zbus_polkit: zbus_polkit: Privilege escalation via PID reuse due to incorrect D-Bus type handling
Summary: CVE-2026-78422 zbus_polkit: zbus_polkit: Privilege escalation via PID reuse d...
Keywords:
Status: NEW
Alias: CVE-2026-78422
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2526475 2526476 2526477 2526479
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-31 14:32 UTC by OSIDB Bzimport
Modified: 2026-08-31 19:37 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-31 14:32:01 UTC
Subject::new_for_owner() in the zbus_polkit crate encodes the uid entry of a unix-process polkit subject as an unsigned 32-bit integer (D-Bus type u), whereas the org.freedesktop.PolicyKit1.Authority interface specifies a signed 32-bit integer (D-Bus type i). Because of this type mismatch, polkit silently discards the caller-supplied UID and instead determines the subject's owner itself by looking up the PID in /proc, a lookup that is inherently subject to a time-of-check/time-of-use race.

Consequently, an application that passes a UID obtained from a trustworthy source — for example SO_PEERCRED Unix socket peer credentials — in order to defend against PID reuse receives no protection, and the supplied UID has no effect on the authorization decision. A local unprivileged attacker who can cause an authorized process to terminate and then win the race to have their own process assigned the same PID can be authorized under the identity of the terminated process, bypassing the polkit authorization check and performing actions the attacker is not entitled to.

This issue affects zbus_polkit before 5.1.0.


Note You need to log in before you can comment on or make changes to this bug.