KeygraphLabs · CVE MCP

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.

CVSS
7.3
high, from the CNA
EPSS
0.09%
percentile 0.44%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

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-31Published
2026-08-31Package advisory RUSTSEC-2026-0278
2026-09-01Record last changed
2026-11-30EPSS when our history starts: 0.13%

Affected packages

AdvisoryPackageFixed in
RUSTSEC-2026-0278zbus_polkit (crates.io)5.1.0

Also known as: RUSTSEC-2026-0278

Credited: Ilya Zlobintsev (finder)

Related

CVEPublishedCVSSSummary
CVE-2026-596762026-07-235.8Local File Deletion Attack Vector in rm_rf() in seunshare
CVE-2026-410452026-06-227Weak polkit authentication check in qSnapper
CVE-2026-410512026-05-135.1csync2 uses insecure temporary directories when compiled with C99 or later
CVE-2026-257042026-03-305.8Incomplete privilege drop for com.system76.CosmicGreeter.GetUserData
CVE-2025-468052025-05-265.7Screen 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.

NVD · CVE.org