CVE-2026-78422 · suse
zbus_polkit: polkit authorization bypass via PID reuse due to incorrect D-Bus type for the subject UID
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.
Published 2026-08-31, last changed 2026-09-01. Weakness: CWE-367, CWE-686.
How to fix
Upgrade to a fixed version: zbus_polkit 5.1.0 (crates.io). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Timeline
| 2026-08-31 | Published |
| 2026-08-31 | Package advisory RUSTSEC-2026-0278 |
| 2026-09-01 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 0.13% |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| RUSTSEC-2026-0278 | zbus_polkit (crates.io) | 5.1.0 |
Also known as: RUSTSEC-2026-0278
Credited: Ilya Zlobintsev (finder)
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-59676 | 2026-07-23 | 5.8 | Local File Deletion Attack Vector in rm_rf() in seunshare |
| CVE-2026-41045 | 2026-06-22 | 7 | Weak polkit authentication check in qSnapper |
| CVE-2026-41051 | 2026-05-13 | 5.1 | csync2 uses insecure temporary directories when compiled with C99 or later |
| CVE-2026-25704 | 2026-03-30 | 5.8 | Incomplete privilege drop for com.system76.CosmicGreeter.GetUserData |
| CVE-2025-46805 | 2025-05-26 | 5.7 | Screen has a TOCTOU race potentially allowing to send SIGHUP, SIGCONT to privileged processes when installed setuid-root |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2026-78422, or call /api/v1/vulnerabilities/CVE-2026-78422. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.