CVE-2026-41651
CVE-2026-41651 · PackageKit vulnerable to TOCTOU Race on Transaction Flags leads to arbitrary package installation as root
CVSS 8.8 · High · EPSS 0.2% · Public exploit · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- packagekitNo fix published
- packagekit Debian 12Update to 1.2.6-5+deb12u1
- packagekit Debian 13Update to 1.3.1-1+deb13u1
- packagekit Debian 14Update to 1.3.5-1
- and 7 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="packagekit"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Fixes in distributions
- SUSE-SU-2026:5144-1 · SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS, SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS, SUSE Linux Enterprise Server 15 SP5-LTSS, SUSE Linux Enterprise Server for SAP Applications 15 SP5 ·
- RHSA-2026:22146 · Red Hat rhel els 7 ·
- RLSA-2026:19141 · Rocky Linux 10 ·
- RHSA-2026:19601 · Red Hat enterprise linux eus 10.0 ·
- RHSA-2026:19454 · Red Hat rhel eus 9.4 appstream, Red Hat rhel eus 9.4 crb ·
- RHSA-2026:19354 · Red Hat Enterprise Linux 9 appstream, Red Hat Enterprise Linux 9 crb ·
- RHSA-2026:19141 · Red Hat Enterprise Linux 10.2 ·
- RLSA-2026:19354 · Rocky Linux 9 ·
- RHSA-2026:18036 · Red Hat rhel e4s 9.2 appstream ·
- RHSA-2026:18031 · Red Hat rhel eus 9.6 appstream, Red Hat rhel eus 9.6 crb ·
- ALSA-2026:19141 · AlmaLinux 10 ·
- ALSA-2026:19354 · AlmaLinux 9 ·
- RHSA-2026:18024 · Red Hat rhel e4s 9.0 appstream ·
- RHSA-2026:17561 · Red Hat rhel aus 8.6 appstream, Red Hat rhel e4s 8.6 appstream, Red Hat rhel tus 8.6 appstream ·
- RHSA-2026:17558 · Red Hat rhel aus 8.4 appstream, Red Hat rhel eus long life 8.4 appstream ·
- RHSA-2026:17560 · Red Hat rhel e4s 8.8 appstream, Red Hat rhel tus 8.8 appstream ·
- RLSA-2026:11635 · Rocky Linux 8 ·
- RLSA-2026:11504 · Rocky Linux 9 ·
- RHSA-2026:11635 · Red Hat Enterprise Linux 8 appstream, Red Hat Enterprise Linux 8 crb ·
- RHSA-2026:11504 · Red Hat Enterprise Linux 9 appstream, Red Hat Enterprise Linux 9 crb ·
- USN-8195-3 · Ubuntu Pro 16.04 LTS, Ubuntu Pro 18.04 LTS, Ubuntu Pro 20.04 LTS ·
- ALSA-2026:11504 · AlmaLinux 9 ·
- ALSA-2026:11635 · AlmaLinux 8 ·
- openSUSE-SU-2026:10629-1 · openSUSE Tumbleweed ·
- USN-8195-2 · Ubuntu 26.04 LTS ·
- USN-8195-1 · Ubuntu 22.04 LTS, Ubuntu 24.04 LTS, Ubuntu 25.10 ·
- DLA-4545-1 · Debian 11 ·
- DSA-6226-1 · Debian 12, Debian 13 ·
Stack: system
Affected products and versions
packagekit
- Versions
- >= 1.0.2, <= 1.3.4: Affected
No fix published
packagekit Debian 12
- Versions
- 1.2.6-5
- Affected ranges
- ECOSYSTEM: < 1.2.6-5+deb12u1
Update to 1.2.6-5+deb12u1
packagekit Debian 13
- Versions
- 1.3.1-1
- Affected ranges
- ECOSYSTEM: < 1.3.1-1+deb13u1
Update to 1.3.1-1+deb13u1
packagekit Debian 14
- Versions
- 1.3.1-1
- 1.3.2-1
- 1.3.3-1
- 1.3.4-1
- 1.3.4-3
- Affected ranges
- ECOSYSTEM: < 1.3.5-1
Update to 1.3.5-1
packagekit Ubuntu Pro 16.04 LTS
- Versions
- 0.8.17-4ubuntu6~gcc5.3
- 0.8.17-4ubuntu6~gcc5.4ubuntu1
- 0.8.17-4ubuntu6~gcc5.4ubuntu1.1
- 0.8.17-4ubuntu6~gcc5.4ubuntu1.2
- 0.8.17-4ubuntu6~gcc5.4ubuntu1.3
- 0.8.17-4ubuntu6~gcc5.4ubuntu1.4
All versions (7)
- 0.8.17-4ubuntu6~gcc5.4ubuntu1.5
- Affected ranges
- ECOSYSTEM: < 0.8.17-4ubuntu6~gcc5.4ubuntu1.5+esm1
Update to 0.8.17-4ubuntu6~gcc5.4ubuntu1.5+esm1
packagekit Ubuntu Pro 18.04 LTS
- Versions
- 1.1.7-1
- 1.1.9-1
- 1.1.9-1ubuntu1
- 1.1.9-1ubuntu2
- 1.1.9-1ubuntu2.18.04.1
- 1.1.9-1ubuntu2.18.04.3
All versions (9)
- 1.1.9-1ubuntu2.18.04.4
- 1.1.9-1ubuntu2.18.04.5
- 1.1.9-1ubuntu2.18.04.6
- Affected ranges
- ECOSYSTEM: < 1.1.9-1ubuntu2.18.04.6+esm1
Update to 1.1.9-1ubuntu2.18.04.6+esm1
packagekit Ubuntu Pro 20.04 LTS
- Versions
- 1.1.12-5ubuntu4
- 1.1.13-1
- 1.1.13-2
- 1.1.13-2build1
- 1.1.13-2ubuntu1
- 1.1.13-2ubuntu1.1
- Affected ranges
- ECOSYSTEM: < 1.1.13-2ubuntu1.1+esm1
Update to 1.1.13-2ubuntu1.1+esm1
packagekit Ubuntu 22.04 LTS
- Versions
- 1.2.2-2ubuntu3
- 1.2.4-1ubuntu1
- 1.2.4-1ubuntu2
- 1.2.5-1ubuntu1
- 1.2.5-2ubuntu1
- 1.2.5-2ubuntu2
All versions (7)
- 1.2.5-2ubuntu3
- Affected ranges
- ECOSYSTEM: < 1.2.5-2ubuntu3.1
Update to 1.2.5-2ubuntu3.1
packagekit Ubuntu 24.04 LTS
- Versions
- 1.2.7-1
- 1.2.8-1
- 1.2.8-1build1
- 1.2.8-2
- 1.2.8-2build2
- 1.2.8-2build3
All versions (10)
- 1.2.8-2ubuntu1
- 1.2.8-2ubuntu1.1
- 1.2.8-2ubuntu1.2
- 1.2.8-2ubuntu1.4
- Affected ranges
- ECOSYSTEM: < 1.2.8-2ubuntu1.5
Update to 1.2.8-2ubuntu1.5
packagekit Ubuntu 25.10
- Versions
- 1.3.0-3build1
- 1.3.1-1
- 1.3.1-1ubuntu1
- Affected ranges
- ECOSYSTEM: < 1.3.1-1ubuntu1.1
Update to 1.3.1-1ubuntu1.1
packagekit Ubuntu 26.04 LTS
- Versions
- 1.3.1-1
- 1.3.2-1
- 1.3.3-1
- 1.3.4-1
- 1.3.4-3
- Affected ranges
- ECOSYSTEM: < 1.3.4-3ubuntu1
Update to 1.3.4-3ubuntu1
Original sources
- 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
- http://www.openwall.com/lists/oss-security/2026/04/22/6
- https://access.redhat.com/security/cve/CVE-2026-41651
- https://bugzilla.redhat.com/show_bug.cgi?id=2460604
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41651.json
- https://access.redhat.com/errata/RHSA-2026:22146
- https://access.redhat.com/errata/RHSA-2026:19601
- https://access.redhat.com/errata/RHSA-2026:19141
- https://access.redhat.com/errata/RHSA-2026:11635
- https://access.redhat.com/errata/RHSA-2026:17558
- https://access.redhat.com/errata/RHSA-2026:17561
- https://access.redhat.com/errata/RHSA-2026:17560
- https://access.redhat.com/errata/RHSA-2026:18024
- https://access.redhat.com/errata/RHSA-2026:18036
- https://access.redhat.com/errata/RHSA-2026:19454
- https://access.redhat.com/errata/RHSA-2026:18031
- https://access.redhat.com/errata/RHSA-2026:11504
- https://access.redhat.com/errata/RHSA-2026:19354
- https://nvd.nist.gov/vuln/detail/CVE-2026-41651