Skip to content

CVE-2026-41651 PackageKit vulnerable to TOCTOU Race on Transaction Flags leads to arbitrary package installation as root

HighCVSS 8.8 EPSS 0.56% PoC
Published
Updated
Exploit status
Proof-of-concept only
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

Description

PackageKit is a a D-Bus abstraction layer that allows the user to manage packages in a secure way using a cross-distro, cross-architecture API. PackageKit between and including versions 1.0.2 and 1.3.4 is vulnerable to a time-of-check time-of-use (TOCTOU) race condition on transaction flags that allows unprivileged users to install packages as root and thus leads to a local privilege escalation. This is patched in version 1.3.5.

A local unprivileged user can install arbitrary RPM packages as root, including executing RPM scriptlets, without authentication. The vulnerability is a TOCTOU race condition on transaction->cached_transaction_flags combined with a silent state-machine guard that discards illegal backward transitions while leaving corrupted flags in place. Three bugs exist in src/pk-transaction.c:

  1. Unconditional flag overwrite (line 4036): InstallFiles() writes caller-supplied flags to transaction->cached_transaction_flags without checking whether the transaction has already been authorized/started. A second call blindly overwrites the flags even while the transaction is RUNNING.
  2. Silent state-transition rejection (lines 873–882): pk_transaction_set_state() silently discards backward state transitions (e.g. RUNNING → WAITING_FOR_AUTH) but the flag overwrite at step 1 already happened. The transaction continues running with corrupted flags.
  3. Late flag read at execution time (lines 2273–2277): The scheduler's idle callback reads cached_transaction_flags at dispatch time, not at authorization time. If flags were overwritten between authorization and execution, the backend sees the attacker's flags.

Upgrade path

32 packages: 31 fixed.

PackageAffectedFixed inStatus
debian/packagekit(Debian 12) < 1.2.6-5+deb12u1; = 1.2.6-5 1.2.6-5+deb12u1 Fixed
debian/packagekit(Debian 13) < 1.3.1-1+deb13u1; = 1.3.1-1 1.3.1-1+deb13u1 Fixed
debian/packagekit(Debian 14) < 1.3.5-1; = 1.3.1-1; = 1.3.2-1; = 1.3.3-1 +2 more 1.3.5-1 Fixed
packagekit project packagekit >= 1.0.2, < 1.3.5 1.3.5 Fixed
redhat enterprise linux < 0:1.1.12-8.el8_10; < 0:1.2.6-2.el9_7; < 0:1.2.6-2.el9_8; < 0:1.2.8-8.el10_2 +2 more 0:1.1.12-8.el8_10, 0:1.2.6-2.el9_7, 0:1.2.6-2.el9_8, 0:1.2.8-8.el10_2 Fixed
redhat enterprise linux eus < 0:1.2.8-8.el10_0.1 0:1.2.8-8.el10_0.1 Fixed
redhat rhel aus < 0:1.1.12-6.el8_4.1; < 0:1.1.12-6.el8_6.1 0:1.1.12-6.el8_4.1, 0:1.1.12-6.el8_6.1 Fixed
redhat rhel e4s < 0:1.1.12-6.el8_6.1; < 0:1.1.12-6.el8_8.1; < 0:1.2.4-2.el9_0.1; < 0:1.2.4-2.el9_2.1 0:1.1.12-6.el8_6.1, 0:1.1.12-6.el8_8.1, 0:1.2.4-2.el9_0.1, 0:1.2.4-2.el9_2.1 Fixed
redhat rhel els < 0:1.1.10-2.el7_9.1 0:1.1.10-2.el7_9.1 Fixed
redhat rhel eus < 0:1.2.6-1.el9_4.1; < 0:1.2.6-1.el9_6.1 0:1.2.6-1.el9_4.1, 0:1.2.6-1.el9_6.1 Fixed
redhat rhel eus long life < 0:1.1.12-6.el8_4.1 0:1.1.12-6.el8_4.1 Fixed
redhat rhel tus < 0:1.1.12-6.el8_6.1; < 0:1.1.12-6.el8_8.1 0:1.1.12-6.el8_6.1, 0:1.1.12-6.el8_8.1 Fixed
redhat/PackageKit(Red Hat enterprise_linux 10.2) < 1.2.8-8.el10_2 1.2.8-8.el10_2 Fixed
redhat/PackageKit(Red Hat enterprise_linux 8) < 1.1.12-8.el8_10 1.1.12-8.el8_10 Fixed
redhat/PackageKit(Red Hat enterprise_linux 9) < 1.2.6-2.el9_7; < 1.2.6-2.el9_8 1.2.6-2.el9_7, 1.2.6-2.el9_8 Fixed
redhat/PackageKit(Red Hat enterprise_linux_eus 10.0) < 1.2.8-8.el10_0.1 1.2.8-8.el10_0.1 Fixed
redhat/PackageKit(Red Hat rhel_aus 8.4) < 1.1.12-6.el8_4.1 1.1.12-6.el8_4.1 Fixed
redhat/PackageKit(Red Hat rhel_aus 8.6) < 1.1.12-6.el8_6.1 1.1.12-6.el8_6.1 Fixed
redhat/PackageKit(Red Hat rhel_e4s 8.6) < 1.1.12-6.el8_6.1 1.1.12-6.el8_6.1 Fixed
redhat/PackageKit(Red Hat rhel_e4s 8.8) < 1.1.12-6.el8_8.1 1.1.12-6.el8_8.1 Fixed
redhat/PackageKit(Red Hat rhel_e4s 9.0) < 1.2.4-2.el9_0.1 1.2.4-2.el9_0.1 Fixed
redhat/PackageKit(Red Hat rhel_e4s 9.2) < 1.2.4-2.el9_2.1 1.2.4-2.el9_2.1 Fixed
redhat/PackageKit(Red Hat rhel_els 7) < 1.1.10-2.el7_9.1 1.1.10-2.el7_9.1 Fixed
redhat/PackageKit(Red Hat rhel_eus 9.4) < 1.2.6-1.el9_4.1 1.2.6-1.el9_4.1 Fixed
redhat/PackageKit(Red Hat rhel_eus 9.6) < 1.2.6-1.el9_6.1 1.2.6-1.el9_6.1 Fixed
redhat/PackageKit(Red Hat rhel_eus_long_life 8.4) < 1.1.12-6.el8_4.1 1.1.12-6.el8_4.1 Fixed
redhat/PackageKit(Red Hat rhel_tus 8.6) < 1.1.12-6.el8_6.1 1.1.12-6.el8_6.1 Fixed
redhat/PackageKit(Red Hat rhel_tus 8.8) < 1.1.12-6.el8_8.1 1.1.12-6.el8_8.1 Fixed
ubuntu/packagekit(Ubuntu 22.04) < 1.2.5-2ubuntu3.1 1.2.5-2ubuntu3.1 Fixed
ubuntu/packagekit(Ubuntu 24.04) < 1.2.8-2ubuntu1.5 1.2.8-2ubuntu1.5 Fixed

… and 2 more packages.

Affected products

ProductAffected versionsFixed in
PackageKit = >= 1.0.2, <= 1.3.4 No fix listed
redhat enterprise linux < 0:1.2.8-8.el10_2 0:1.2.8-8.el10_2
redhat enterprise linux eus < 0:1.2.8-8.el10_0.1 0:1.2.8-8.el10_0.1
redhat rhel els < 0:1.1.10-2.el7_9.1 0:1.1.10-2.el7_9.1
redhat enterprise linux < 0:1.1.12-8.el8_10 0:1.1.12-8.el8_10
redhat rhel aus < 0:1.1.12-6.el8_4.1 0:1.1.12-6.el8_4.1
redhat rhel eus long life < 0:1.1.12-6.el8_4.1 0:1.1.12-6.el8_4.1
redhat rhel aus < 0:1.1.12-6.el8_6.1 0:1.1.12-6.el8_6.1
redhat rhel tus < 0:1.1.12-6.el8_6.1 0:1.1.12-6.el8_6.1
redhat rhel e4s < 0:1.1.12-6.el8_6.1 0:1.1.12-6.el8_6.1
redhat rhel tus < 0:1.1.12-6.el8_8.1 0:1.1.12-6.el8_8.1
redhat rhel e4s < 0:1.1.12-6.el8_8.1 0:1.1.12-6.el8_8.1
redhat enterprise linux < 0:1.2.6-2.el9_7 0:1.2.6-2.el9_7
redhat enterprise linux < 0:1.2.6-2.el9_8 0:1.2.6-2.el9_8
redhat rhel e4s < 0:1.2.4-2.el9_0.1 0:1.2.4-2.el9_0.1
redhat rhel e4s < 0:1.2.4-2.el9_2.1 0:1.2.4-2.el9_2.1
redhat rhel eus < 0:1.2.6-1.el9_4.1 0:1.2.6-1.el9_4.1
redhat rhel eus < 0:1.2.6-1.el9_6.1 0:1.2.6-1.el9_6.1
redhat enterprise linux = 6 No fix listed
redhat enterprise linux = 7 No fix listed
debian/packagekit(Debian:12) < 1.2.6-5+deb12u1 1.2.6-5+deb12u1
debian/packagekit(Debian:14) < 1.3.5-1 1.3.5-1
debian/packagekit(Debian:13) < 1.3.1-1+deb13u1 1.3.1-1+deb13u1
redhat/PackageKit(Red Hat:enterprise_linux:10.2) < 1.2.8-8.el10_2 1.2.8-8.el10_2
redhat/PackageKit(Red Hat:enterprise_linux_eus:10.0) < 1.2.8-8.el10_0.1 1.2.8-8.el10_0.1
Show 26 more
ProductAffected versionsFixed in
redhat/PackageKit(Red Hat:rhel_els:7) < 1.1.10-2.el7_9.1 1.1.10-2.el7_9.1
redhat/PackageKit(Red Hat:enterprise_linux:8) < 1.1.12-8.el8_10 1.1.12-8.el8_10
redhat/PackageKit(Red Hat:rhel_aus:8.4) < 1.1.12-6.el8_4.1 1.1.12-6.el8_4.1
redhat/PackageKit(Red Hat:rhel_eus_long_life:8.4) < 1.1.12-6.el8_4.1 1.1.12-6.el8_4.1
redhat/PackageKit(Red Hat:rhel_aus:8.6) < 1.1.12-6.el8_6.1 1.1.12-6.el8_6.1
redhat/PackageKit(Red Hat:rhel_tus:8.6) < 1.1.12-6.el8_6.1 1.1.12-6.el8_6.1
redhat/PackageKit(Red Hat:rhel_e4s:8.6) < 1.1.12-6.el8_6.1 1.1.12-6.el8_6.1
redhat/PackageKit(Red Hat:rhel_tus:8.8) < 1.1.12-6.el8_8.1 1.1.12-6.el8_8.1
redhat/PackageKit(Red Hat:rhel_e4s:8.8) < 1.1.12-6.el8_8.1 1.1.12-6.el8_8.1
redhat/PackageKit(Red Hat:enterprise_linux:9) < 1.2.6-2.el9_7 1.2.6-2.el9_7
redhat/PackageKit(Red Hat:enterprise_linux:9) < 1.2.6-2.el9_8 1.2.6-2.el9_8
redhat/PackageKit(Red Hat:rhel_e4s:9.0) < 1.2.4-2.el9_0.1 1.2.4-2.el9_0.1
redhat/PackageKit(Red Hat:rhel_e4s:9.2) < 1.2.4-2.el9_2.1 1.2.4-2.el9_2.1
redhat/PackageKit(Red Hat:rhel_eus:9.4) < 1.2.6-1.el9_4.1 1.2.6-1.el9_4.1
redhat/PackageKit(Red Hat:rhel_eus:9.6) < 1.2.6-1.el9_6.1 1.2.6-1.el9_6.1
ubuntu/packagekit(Ubuntu:22.04) < 1.2.5-2ubuntu3.1 1.2.5-2ubuntu3.1
ubuntu/packagekit(Ubuntu:24.04) < 1.2.8-2ubuntu1.5 1.2.8-2ubuntu1.5
ubuntu/packagekit(Ubuntu:26.04) < 1.3.4-3ubuntu1 1.3.4-3ubuntu1
packagekit project packagekit >= 1.0.2, < 1.3.5 1.3.5
debian/packagekit(Debian:12) = 1.2.6-5 No fix listed
debian/packagekit(Debian:13) = 1.3.1-1 No fix listed
debian/packagekit(Debian:14) = 1.3.1-1 No fix listed
debian/packagekit(Debian:14) = 1.3.2-1 No fix listed
debian/packagekit(Debian:14) = 1.3.3-1 No fix listed
debian/packagekit(Debian:14) = 1.3.4-1 No fix listed
debian/packagekit(Debian:14) = 1.3.4-3 No fix listed

References