{"id":"CVE-2026-78422","published":"2026-08-31T14:14:13Z","modified":"2026-09-01T14:46:42Z","title":"zbus_polkit: polkit authorization bypass via PID reuse due to incorrect D-Bus type for the subject UID","vendor":"z-galaxy","product":"zbus_polkit","tier":"tail","description":{"text":"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.\n\nConsequently, 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.\n\nThis issue affects zbus_polkit before 5.1.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00125,"percentile":0.02246,"provenance":"source"},"cwes":[{"id":"CWE-686","name":"Function Call With Incorrect Argument Type"},{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"references":[{"url":"https://github.com/z-galaxy/zbus_polkit/pull/101","tags":["patch"]},{"url":"https://bugzilla.suse.com/show_bug.cgi?id=1277659","tags":["issue-tracking"]}],"priority":{"score":5.6,"factors":[{"name":"EPSS percentile","points":0.45},{"name":"CVSS severity","points":5.11}]},"vendorSlug":"z-galaxy","affectedVersions":[{"vendor":"z-galaxy","product":"zbus_polkit","versions":["< 5.1.0"]}],"capec":[{"id":"CAPEC-29","name":"Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions"},{"id":"CAPEC-233","name":"Privilege Escalation"},{"id":"CAPEC-151","name":"Identity Spoofing"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-09-01T14:46:34.448488Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"zbus_polkit","vulnerableRanges":[">=0.0.0-0, <5.1.0"],"patched":["5.1.0"],"from":["RUSTSEC-2026-0278"],"provenance":"source"}],"summary":{"text":"The zbus_polkit crate's Subject::new_for_owner() encodes the UID of a unix-process polkit subject as an unsigned 32-bit integer where the polkit Authority interface expects a signed 32-bit integer, so polkit silently ignores the supplied UID and looks up the owner from the PID in /proc, which is open to a time-of-check/time-of-use race. An unprivileged local attacker who can make an authorized process terminate and then get their own process assigned the same PID can be authorized under that process's identity, bypassing the polkit check for actions they are not entitled to perform.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:12Z"},"euvd":{"id":"EUVD-2026-68593","exploited":false,"provenance":"source"}}