CVE-2026-78422

Source
https://cve.org/CVERecord?id=CVE-2026-78422
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-78422.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-78422
Aliases
Downstream
Published
2026-08-31T14:14:13.558Z
Modified
2026-09-03T03:31:04.063972698Z
Severity
  • 7.3 (High) CVSS_V4 - 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 CVSS Calculator
Summary
zbus_polkit: polkit authorization bypass via PID reuse due to incorrect D-Bus type for the subject UID
Details

Subject::newforowner() 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/78xxx/CVE-2026-78422.json",
    "cna_assigner": "suse",
    "cwe_ids": [
        "CWE-367",
        "CWE-686"
    ]
}
References

Affected packages

Git / github.com/z-galaxy/zbus_polkit

Affected ranges

Type
GIT
Repo
https://github.com/z-galaxy/zbus_polkit
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "source": [
        "AFFECTED_FIELD",
        "DESCRIPTION"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "5.1.0"
        }
    ]
}

Affected versions

zbus_polkit-1.*
zbus_polkit-1.0.0
zbus_polkit-1.0.1
zbus_polkit-1.1.0
zbus_polkit-1.2.0
zbus_polkit-2.*
zbus_polkit-2.0.0-beta.4
zbus_polkit-2.0.0-beta.5
zbus_polkit-2.0.0-beta.6
zbus_polkit-2.0.0-beta.7
zbus_polkit-2.0.0-beta.8
zbus_polkit-2.0.1
zbus_polkit-2.0.2
zbus_polkit-3.*
zbus_polkit-3.0.0
zbus_polkit-3.0.1
zbus_polkit-4.*
zbus_polkit-4.0.0
zbus_polkit-5.*
zbus_polkit-5.0.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-78422.json"