CVE-2026-41651 PackageKit vulnerable to TOCTOU Race on Transaction Flags leads to arbitrary package installation as root
- 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:
- Unconditional flag overwrite (line 4036):
InstallFiles()writes caller-supplied flags totransaction->cached_transaction_flagswithout checking whether the transaction has already been authorized/started. A second call blindly overwrites the flags even while the transaction is RUNNING. - 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. - 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
| Product | Affected versions | Fixed 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
- https://github.com/PackageKit/PackageKit/security/advisories/GHSA-f55j-vvr9-69xv exploit vendor-advisory
- https://github.com/PackageKit/PackageKit/blob/04057883189efa225a7c785591aa87cb299782f8/src/pk-transaction.c#L2273-L2277 product
- https://github.security.telekom.com/2026/04/pack2theroot-linux-local-privilege-escalation.html exploit third-party-advisory
- www.openwall.com mailing-list patch third-party-advisory
- Red Hat CVE page mitigation vdb-entry vendor-advisory
- RHBZ#2460604 issue-tracking
- security.access.redhat.com
- RHSA-2026:22146 patch vendor-advisory
- RHSA-2026:19601 patch vendor-advisory
- RHSA-2026:19141 patch vendor-advisory
- RHSA-2026:11635 patch vendor-advisory
- RHSA-2026:17558 patch vendor-advisory
- RHSA-2026:17561 patch vendor-advisory
- RHSA-2026:17560 patch vendor-advisory
- RHSA-2026:18024 patch vendor-advisory
- RHSA-2026:18036 patch vendor-advisory
- RHSA-2026:19454 patch vendor-advisory
- RHSA-2026:18031 patch vendor-advisory
- RHSA-2026:11504 patch vendor-advisory
- RHSA-2026:19354 patch vendor-advisory
- Debian Security Tracker CVE-2026-41651 vendor-advisory
- www.cve.org
- nvd.nist.gov
- Ubuntu CVE tracker vendor-advisory
- USN-8195-1 vendor-advisory
- USN-8195-2 vendor-advisory
- USN-8195-3 vendor-advisory