CVEfocus › CVE database › CVE-2026-41651

CVE-2026-41651PackageKit vulnerable to TOCTOU Race on Transaction Flags leads to arbitrary package…

CVSS 8.8 HighEPSS 0.2% (higher than 6% of CVEs)Published 2026-04-22Updated 2026-07-15Assigner: GitHub_M

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.

CWE-367

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

48Fixed
3Fix pending
17Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04packagekitFixed1.3.4-3ubuntu1UBUNTU-CVE-2026-41651
Ubuntu 25.10packagekitFixed1.3.1-1ubuntu1.1UBUNTU-CVE-2026-41651
Ubuntu 24.04packagekitFixed1.2.8-2ubuntu1.5UBUNTU-CVE-2026-41651
Ubuntu 22.04packagekitFixed1.2.5-2ubuntu3.1UBUNTU-CVE-2026-41651
Ubuntu 20.04packagekitFix pending1.1.13-2ubuntu1.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2026-41651
Ubuntu 18.04packagekitFix pending1.1.9-1ubuntu2.18.04.6+esm1 (Ubuntu Pro)UBUNTU-CVE-2026-41651
Ubuntu 16.04packagekitFix pending0.8.17-4ubuntu6~gcc5.4ubuntu1.5+esm1 (Ubuntu Pro)UBUNTU-CVE-2026-41651
Debian 14packagekitFixed1.3.5-1DEBIAN-CVE-2026-41651
Debian 13packagekitFixed1.3.1-1+deb13u1DEBIAN-CVE-2026-41651
Debian 12packagekitFixed1.2.6-5+deb12u1DEBIAN-CVE-2026-41651
Red Hat Enterprise Linux 10PackageKitFixed0:1.2.8-8.el10_2RHSA-2026:19141
Red Hat Enterprise Linux 10PackageKit-command-not-foundFixed0:1.2.8-8.el10_2RHSA-2026:19141
Red Hat Enterprise Linux 10PackageKit-glibFixed0:1.2.8-8.el10_2RHSA-2026:19141
Red Hat Enterprise Linux 10PackageKit-glib-develFixed0:1.2.8-8.el10_2RHSA-2026:19141
Red Hat Enterprise Linux 10PackageKit-gstreamer-pluginFixed0:1.2.8-8.el10_2RHSA-2026:19141
Red Hat Enterprise Linux 10PackageKit-gtk3-moduleFixed0:1.2.8-8.el10_2RHSA-2026:19141
Red Hat Enterprise Linux 9PackageKitFixed0:1.2.6-2.el9_7RHSA-2026:19354
Red Hat Enterprise Linux 9PackageKit-command-not-foundFixed0:1.2.6-2.el9_7RHSA-2026:19354
Red Hat Enterprise Linux 9PackageKit-glibFixed0:1.2.6-2.el9_7RHSA-2026:19354
Red Hat Enterprise Linux 9PackageKit-glib-develFixed0:1.2.6-2.el9_8RHSA-2026:11504
Red Hat Enterprise Linux 9PackageKit-gstreamer-pluginFixed0:1.2.6-2.el9_7RHSA-2026:19354
Red Hat Enterprise Linux 9PackageKit-gtk3-moduleFixed0:1.2.6-2.el9_7RHSA-2026:19354
Red Hat Enterprise Linux 8PackageKitFixed0:1.1.12-8.el8_10RHSA-2026:11635
Red Hat Enterprise Linux 8PackageKit-command-not-foundFixed0:1.1.12-8.el8_10RHSA-2026:11635
Red Hat Enterprise Linux 8PackageKit-cronFixed0:1.1.12-8.el8_10RHSA-2026:11635
Red Hat Enterprise Linux 8PackageKit-glibFixed0:1.1.12-8.el8_10RHSA-2026:11635
Red Hat Enterprise Linux 8PackageKit-glib-develFixed0:1.1.12-8.el8_10RHSA-2026:11635
Red Hat Enterprise Linux 8PackageKit-gstreamer-pluginFixed0:1.1.12-8.el8_10RHSA-2026:11635
Red Hat Enterprise Linux 8PackageKit-gtk3-moduleFixed0:1.1.12-8.el8_10RHSA-2026:11635
Red Hat Enterprise Linux 7compat-libpackagekit-glib2-16Not affected
Red Hat Enterprise Linux 6PackageKitNot affected
Red Hat Enterprise Linux 6PackageKit-backend-develNot affected
Red Hat Enterprise Linux 6PackageKit-browser-pluginNot affected
Red Hat Enterprise Linux 6PackageKit-command-not-foundNot affected
Red Hat Enterprise Linux 6PackageKit-cronNot affected
Red Hat Enterprise Linux 6PackageKit-debug-installNot affected
Red Hat Enterprise Linux 6PackageKit-device-rebindNot affected
Red Hat Enterprise Linux 6PackageKit-docsNot affected
Red Hat Enterprise Linux 6PackageKit-glibNot affected
Red Hat Enterprise Linux 6PackageKit-glib-develNot affected
Red Hat Enterprise Linux 6PackageKit-gstreamer-pluginNot affected
Red Hat Enterprise Linux 6PackageKit-gtk-moduleNot affected
Red Hat Enterprise Linux 6PackageKit-qtNot affected
Red Hat Enterprise Linux 6PackageKit-qt-develNot affected
Red Hat Enterprise Linux 6PackageKit-yumNot affected
Red Hat Enterprise Linux 6PackageKit-yum-pluginNot affected
AlmaLinux 10PackageKitFixed1.2.8-8.el10_2ALSA-2026:19141
AlmaLinux 10PackageKit-command-not-foundFixed1.2.8-8.el10_2ALSA-2026:19141
AlmaLinux 10PackageKit-glibFixed1.2.8-8.el10_2ALSA-2026:19141
AlmaLinux 10PackageKit-glib-develFixed1.2.8-8.el10_2ALSA-2026:19141
AlmaLinux 10PackageKit-gstreamer-pluginFixed1.2.8-8.el10_2ALSA-2026:19141
AlmaLinux 10PackageKit-gtk3-moduleFixed1.2.8-8.el10_2ALSA-2026:19141
AlmaLinux 9PackageKitFixed1.2.6-2.el9_8ALSA-2026:11504
AlmaLinux 9PackageKit-command-not-foundFixed1.2.6-2.el9_8ALSA-2026:11504
AlmaLinux 9PackageKit-glibFixed1.2.6-2.el9_7ALSA-2026:19354
AlmaLinux 9PackageKit-glib-develFixed1.2.6-2.el9_8ALSA-2026:11504
AlmaLinux 9PackageKit-gstreamer-pluginFixed1.2.6-2.el9_8ALSA-2026:11504
AlmaLinux 9PackageKit-gtk3-moduleFixed1.2.6-2.el9_8ALSA-2026:11504
AlmaLinux 8PackageKitFixed1.1.12-8.el8_10ALSA-2026:11635
AlmaLinux 8PackageKit-command-not-foundFixed1.1.12-8.el8_10ALSA-2026:11635
AlmaLinux 8PackageKit-cronFixed1.1.12-8.el8_10ALSA-2026:11635
AlmaLinux 8PackageKit-glibFixed1.1.12-8.el8_10ALSA-2026:11635
AlmaLinux 8PackageKit-glib-develFixed1.1.12-8.el8_10ALSA-2026:11635
AlmaLinux 8PackageKit-gstreamer-pluginFixed1.1.12-8.el8_10ALSA-2026:11635
AlmaLinux 8PackageKit-gtk3-moduleFixed1.1.12-8.el8_10ALSA-2026:11635
Rocky Linux 10PackageKitFixed0:1.2.8-8.el10RLSA-2026:19141
Rocky Linux 9PackageKitFixed0:1.2.6-2.el9_7RLSA-2026:19354
Rocky Linux 8PackageKitFixed0:1.1.12-8.el8_10RLSA-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.

References

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.