Skip to content
Heist/ feed
Back to feed
High

rust-zbus-polkit — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-78422

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.

Products
rust-zbus-polkit
Affected versions
5.0.0-1
Fixed versions
Not specified
CVEs
CVE-2026-78422
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:19 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-78422

core-osv · Original source

Published 31 Aug 2026, 15:17 UTC

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.

osv:UBUNTU-CVE-2026-78422

rust-zbus-polkit

Fixed versions: Not specified

Complete source record
{
  "id": "8edd4e2c161ea878c83b395d42cd95f514864f40ac7e9f7f7364dbcc98a82384",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-78422",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-78422",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-78422",
    "products": [
      {
        "name": {
          "value": "rust-zbus-polkit",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.0.0-1",
            "evidence": "/affected/0/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-78422",
      "aliases": [
        "UBUNTU-CVE-2026-78422"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-zbus-polkit",
            "purl": "pkg:deb/ubuntu/rust-zbus-polkit?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "5.0.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-78422.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-zbus-polkit-dev",
                "binary_version": "5.0.0-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:01:08.723886444Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-78422"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-78422",
        "https://www.cve.org/CVERecord?id=CVE-2026-78422",
        "https://github.com/z-galaxy/zbus_polkit/pull/101",
        "https://bugzilla.suse.com/show_bug.cgi?id=1277659"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-78422",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 361064,
  "published_at": "2026-08-31T15:17:00+00:00"
}