CVE-2026-41651PackageKit vulnerable to TOCTOU Race on Transaction Flags leads to arbitrary package…
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.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | packagekit | Fixed | 1.3.4-3ubuntu1 | UBUNTU-CVE-2026-41651 |
| Ubuntu 25.10 | packagekit | Fixed | 1.3.1-1ubuntu1.1 | UBUNTU-CVE-2026-41651 |
| Ubuntu 24.04 | packagekit | Fixed | 1.2.8-2ubuntu1.5 | UBUNTU-CVE-2026-41651 |
| Ubuntu 22.04 | packagekit | Fixed | 1.2.5-2ubuntu3.1 | UBUNTU-CVE-2026-41651 |
| Ubuntu 20.04 | packagekit | Fix pending | 1.1.13-2ubuntu1.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-41651 |
| Ubuntu 18.04 | packagekit | Fix pending | 1.1.9-1ubuntu2.18.04.6+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-41651 |
| Ubuntu 16.04 | packagekit | Fix pending | 0.8.17-4ubuntu6~gcc5.4ubuntu1.5+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-41651 |
| Debian 14 | packagekit | Fixed | 1.3.5-1 | DEBIAN-CVE-2026-41651 |
| Debian 13 | packagekit | Fixed | 1.3.1-1+deb13u1 | DEBIAN-CVE-2026-41651 |
| Debian 12 | packagekit | Fixed | 1.2.6-5+deb12u1 | DEBIAN-CVE-2026-41651 |
| Red Hat Enterprise Linux 10 | PackageKit | Fixed | 0:1.2.8-8.el10_2 | RHSA-2026:19141 |
| Red Hat Enterprise Linux 10 | PackageKit-command-not-found | Fixed | 0:1.2.8-8.el10_2 | RHSA-2026:19141 |
| Red Hat Enterprise Linux 10 | PackageKit-glib | Fixed | 0:1.2.8-8.el10_2 | RHSA-2026:19141 |
| Red Hat Enterprise Linux 10 | PackageKit-glib-devel | Fixed | 0:1.2.8-8.el10_2 | RHSA-2026:19141 |
| Red Hat Enterprise Linux 10 | PackageKit-gstreamer-plugin | Fixed | 0:1.2.8-8.el10_2 | RHSA-2026:19141 |
| Red Hat Enterprise Linux 10 | PackageKit-gtk3-module | Fixed | 0:1.2.8-8.el10_2 | RHSA-2026:19141 |
| Red Hat Enterprise Linux 9 | PackageKit | Fixed | 0:1.2.6-2.el9_7 | RHSA-2026:19354 |
| Red Hat Enterprise Linux 9 | PackageKit-command-not-found | Fixed | 0:1.2.6-2.el9_7 | RHSA-2026:19354 |
| Red Hat Enterprise Linux 9 | PackageKit-glib | Fixed | 0:1.2.6-2.el9_7 | RHSA-2026:19354 |
| Red Hat Enterprise Linux 9 | PackageKit-glib-devel | Fixed | 0:1.2.6-2.el9_8 | RHSA-2026:11504 |
| Red Hat Enterprise Linux 9 | PackageKit-gstreamer-plugin | Fixed | 0:1.2.6-2.el9_7 | RHSA-2026:19354 |
| Red Hat Enterprise Linux 9 | PackageKit-gtk3-module | Fixed | 0:1.2.6-2.el9_7 | RHSA-2026:19354 |
| Red Hat Enterprise Linux 8 | PackageKit | Fixed | 0:1.1.12-8.el8_10 | RHSA-2026:11635 |
| Red Hat Enterprise Linux 8 | PackageKit-command-not-found | Fixed | 0:1.1.12-8.el8_10 | RHSA-2026:11635 |
| Red Hat Enterprise Linux 8 | PackageKit-cron | Fixed | 0:1.1.12-8.el8_10 | RHSA-2026:11635 |
| Red Hat Enterprise Linux 8 | PackageKit-glib | Fixed | 0:1.1.12-8.el8_10 | RHSA-2026:11635 |
| Red Hat Enterprise Linux 8 | PackageKit-glib-devel | Fixed | 0:1.1.12-8.el8_10 | RHSA-2026:11635 |
| Red Hat Enterprise Linux 8 | PackageKit-gstreamer-plugin | Fixed | 0:1.1.12-8.el8_10 | RHSA-2026:11635 |
| Red Hat Enterprise Linux 8 | PackageKit-gtk3-module | Fixed | 0:1.1.12-8.el8_10 | RHSA-2026:11635 |
| Red Hat Enterprise Linux 7 | compat-libpackagekit-glib2-16 | Not affected | ||
| Red Hat Enterprise Linux 6 | PackageKit | Not affected | ||
| Red Hat Enterprise Linux 6 | PackageKit-backend-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | PackageKit-browser-plugin | Not affected | ||
| Red Hat Enterprise Linux 6 | PackageKit-command-not-found | Not affected | ||
| Red Hat Enterprise Linux 6 | PackageKit-cron | Not affected | ||
| Red Hat Enterprise Linux 6 | PackageKit-debug-install | Not affected | ||
| Red Hat Enterprise Linux 6 | PackageKit-device-rebind | Not affected | ||
| Red Hat Enterprise Linux 6 | PackageKit-docs | Not affected | ||
| Red Hat Enterprise Linux 6 | PackageKit-glib | Not affected | ||
| Red Hat Enterprise Linux 6 | PackageKit-glib-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | PackageKit-gstreamer-plugin | Not affected | ||
| Red Hat Enterprise Linux 6 | PackageKit-gtk-module | Not affected | ||
| Red Hat Enterprise Linux 6 | PackageKit-qt | Not affected | ||
| Red Hat Enterprise Linux 6 | PackageKit-qt-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | PackageKit-yum | Not affected | ||
| Red Hat Enterprise Linux 6 | PackageKit-yum-plugin | Not affected | ||
| AlmaLinux 10 | PackageKit | Fixed | 1.2.8-8.el10_2 | ALSA-2026:19141 |
| AlmaLinux 10 | PackageKit-command-not-found | Fixed | 1.2.8-8.el10_2 | ALSA-2026:19141 |
| AlmaLinux 10 | PackageKit-glib | Fixed | 1.2.8-8.el10_2 | ALSA-2026:19141 |
| AlmaLinux 10 | PackageKit-glib-devel | Fixed | 1.2.8-8.el10_2 | ALSA-2026:19141 |
| AlmaLinux 10 | PackageKit-gstreamer-plugin | Fixed | 1.2.8-8.el10_2 | ALSA-2026:19141 |
| AlmaLinux 10 | PackageKit-gtk3-module | Fixed | 1.2.8-8.el10_2 | ALSA-2026:19141 |
| AlmaLinux 9 | PackageKit | Fixed | 1.2.6-2.el9_8 | ALSA-2026:11504 |
| AlmaLinux 9 | PackageKit-command-not-found | Fixed | 1.2.6-2.el9_8 | ALSA-2026:11504 |
| AlmaLinux 9 | PackageKit-glib | Fixed | 1.2.6-2.el9_7 | ALSA-2026:19354 |
| AlmaLinux 9 | PackageKit-glib-devel | Fixed | 1.2.6-2.el9_8 | ALSA-2026:11504 |
| AlmaLinux 9 | PackageKit-gstreamer-plugin | Fixed | 1.2.6-2.el9_8 | ALSA-2026:11504 |
| AlmaLinux 9 | PackageKit-gtk3-module | Fixed | 1.2.6-2.el9_8 | ALSA-2026:11504 |
| AlmaLinux 8 | PackageKit | Fixed | 1.1.12-8.el8_10 | ALSA-2026:11635 |
| AlmaLinux 8 | PackageKit-command-not-found | Fixed | 1.1.12-8.el8_10 | ALSA-2026:11635 |
| AlmaLinux 8 | PackageKit-cron | Fixed | 1.1.12-8.el8_10 | ALSA-2026:11635 |
| AlmaLinux 8 | PackageKit-glib | Fixed | 1.1.12-8.el8_10 | ALSA-2026:11635 |
| AlmaLinux 8 | PackageKit-glib-devel | Fixed | 1.1.12-8.el8_10 | ALSA-2026:11635 |
| AlmaLinux 8 | PackageKit-gstreamer-plugin | Fixed | 1.1.12-8.el8_10 | ALSA-2026:11635 |
| AlmaLinux 8 | PackageKit-gtk3-module | Fixed | 1.1.12-8.el8_10 | ALSA-2026:11635 |
| Rocky Linux 10 | PackageKit | Fixed | 0:1.2.8-8.el10 | RLSA-2026:19141 |
| Rocky Linux 9 | PackageKit | Fixed | 0:1.2.6-2.el9_7 | RLSA-2026:19354 |
| Rocky Linux 8 | PackageKit | Fixed | 0:1.1.12-8.el8_10 | RLSA-2026:11635 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- PackageKit: affected: >= 1.0.2, <= 1.3.4
References
- https://github.com/PackageKit/PackageKit/security/advisories/GHSA-f55j-vvr9-69xv
- https://github.com/PackageKit/PackageKit/blob/04057883189efa225a7c785591aa87cb299782f8/src/pk-transaction.c#L2273-L2277
- https://github.com/PackageKit/PackageKit/blob/04057883189efa225a7c785591aa87cb299782f8/src/pk-transaction.c#L4036
- https://github.com/PackageKit/PackageKit/blob/04057883189efa225a7c785591aa87cb299782f8/src/pk-transaction.c#L873-L882
- https://github.security.telekom.com/2026/04/pack2theroot-linux-local-privilege-escalation.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.