RUSTSEC-2026-0278

Source
https://rustsec.org/advisories/RUSTSEC-2026-0278
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0278.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2026-0278
Aliases
Published
2026-08-31T12:00:00Z
Modified
2026-09-02T09:15:02.887263895Z
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`: authorization bypass via PID reuse
Details

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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / zbus_polkit

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
5.1.0

Ecosystem specific

{
    "affects": {
        "arch": [],
        "functions": [
            "zbus_polkit::Subject::new_for_owner"
        ],
        "os": []
    },
    "affected_functions": null
}

Database specific

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"
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0278.json"
informational
null
categories
[
    "privilege-escalation"
]