CVE-2026-78422
zbus_polkit: polkit authorization bypass via PID reuse due to incorrect D-Bus type for the subject UID
Description
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.
Severity (CVSS)
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality high, integrity high, availability high: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.12%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 1.03% of all scored CVEs. Scores of 26 Nov 2026.
The assessment of CISA (SSVC, 1 Sep 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
- CWE-686 Function Call With Incorrect Argument Type
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
zbus_polkit
package
zbus_polkit |
affected before 5.1.0
Other versions: unaffected
|
Is my server affected?
Find the installed version of zbus_polkit and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i zbus_polkit
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-78422 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-78422RHEL, Rocky, Alma, Fedora
rpm -q zbus_polkit
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-78422Alpine
apk list --installed | grep -i zbus_polkitWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-78422
trivy image --scanners vuln IMAGE | grep CVE-2026-78422
PatchBrief makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Install the agent.
References
Patches and release notes
- https://github.com/z-galaxy/zbus_polkit/pull/101 github.com · patch
Other references
- https://bugzilla.suse.com/show_bug.cgi?id=1277659 bugzilla.suse.com · issue tracking
Source: the record CVE-2026-78422 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.