ubuntu-cve-2026-41651
Vulnerability from osv_ubuntu
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.
{
"affected": [
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "gir1.2-packagekitglib-1.0",
"binary_version": "0.8.17-4ubuntu6~gcc5.4ubuntu1.5+esm1"
},
{
"binary_name": "gstreamer1.0-packagekit",
"binary_version": "0.8.17-4ubuntu6~gcc5.4ubuntu1.5+esm1"
},
{
"binary_name": "libpackagekit-glib2-16",
"binary_version": "0.8.17-4ubuntu6~gcc5.4ubuntu1.5+esm1"
},
{
"binary_name": "packagekit",
"binary_version": "0.8.17-4ubuntu6~gcc5.4ubuntu1.5+esm1"
},
{
"binary_name": "packagekit-backend-aptcc",
"binary_version": "0.8.17-4ubuntu6~gcc5.4ubuntu1.5+esm1"
},
{
"binary_name": "packagekit-backend-smart",
"binary_version": "0.8.17-4ubuntu6~gcc5.4ubuntu1.5+esm1"
},
{
"binary_name": "packagekit-docs",
"binary_version": "0.8.17-4ubuntu6~gcc5.4ubuntu1.5+esm1"
},
{
"binary_name": "packagekit-gtk3-module",
"binary_version": "0.8.17-4ubuntu6~gcc5.4ubuntu1.5+esm1"
},
{
"binary_name": "packagekit-tools",
"binary_version": "0.8.17-4ubuntu6~gcc5.4ubuntu1.5+esm1"
},
{
"binary_name": "python3-packagekit",
"binary_version": "0.8.17-4ubuntu6~gcc5.4ubuntu1.5+esm1"
}
],
"priority_reason": "Local privilege escalation to the root user."
},
"package": {
"ecosystem": "Ubuntu:Pro:16.04:LTS",
"name": "packagekit",
"purl": "pkg:deb/ubuntu/packagekit@0.8.17-4ubuntu6~gcc5.4ubuntu1.5+esm1?arch=source\u0026distro=esm-infra/xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.8.17-4ubuntu6~gcc5.4ubuntu1.5+esm1"
}
],
"type": "ECOSYSTEM"
}
],
"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",
"0.8.17-4ubuntu6~gcc5.4ubuntu1.5"
]
},
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "gir1.2-packagekitglib-1.0",
"binary_version": "1.1.9-1ubuntu2.18.04.6+esm1"
},
{
"binary_name": "gstreamer1.0-packagekit",
"binary_version": "1.1.9-1ubuntu2.18.04.6+esm1"
},
{
"binary_name": "libpackagekit-glib2-18",
"binary_version": "1.1.9-1ubuntu2.18.04.6+esm1"
},
{
"binary_name": "packagekit",
"binary_version": "1.1.9-1ubuntu2.18.04.6+esm1"
},
{
"binary_name": "packagekit-command-not-found",
"binary_version": "1.1.9-1ubuntu2.18.04.6+esm1"
},
{
"binary_name": "packagekit-docs",
"binary_version": "1.1.9-1ubuntu2.18.04.6+esm1"
},
{
"binary_name": "packagekit-gtk3-module",
"binary_version": "1.1.9-1ubuntu2.18.04.6+esm1"
},
{
"binary_name": "packagekit-tools",
"binary_version": "1.1.9-1ubuntu2.18.04.6+esm1"
}
],
"priority_reason": "Local privilege escalation to the root user."
},
"package": {
"ecosystem": "Ubuntu:Pro:18.04:LTS",
"name": "packagekit",
"purl": "pkg:deb/ubuntu/packagekit@1.1.9-1ubuntu2.18.04.6+esm1?arch=source\u0026distro=esm-infra/bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.1.9-1ubuntu2.18.04.6+esm1"
}
],
"type": "ECOSYSTEM"
}
],
"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",
"1.1.9-1ubuntu2.18.04.4",
"1.1.9-1ubuntu2.18.04.5",
"1.1.9-1ubuntu2.18.04.6"
]
},
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "gir1.2-packagekitglib-1.0",
"binary_version": "1.1.13-2ubuntu1.1+esm1"
},
{
"binary_name": "gstreamer1.0-packagekit",
"binary_version": "1.1.13-2ubuntu1.1+esm1"
},
{
"binary_name": "libpackagekit-glib2-18",
"binary_version": "1.1.13-2ubuntu1.1+esm1"
},
{
"binary_name": "packagekit",
"binary_version": "1.1.13-2ubuntu1.1+esm1"
},
{
"binary_name": "packagekit-command-not-found",
"binary_version": "1.1.13-2ubuntu1.1+esm1"
},
{
"binary_name": "packagekit-docs",
"binary_version": "1.1.13-2ubuntu1.1+esm1"
},
{
"binary_name": "packagekit-gtk3-module",
"binary_version": "1.1.13-2ubuntu1.1+esm1"
},
{
"binary_name": "packagekit-tools",
"binary_version": "1.1.13-2ubuntu1.1+esm1"
}
],
"priority_reason": "Local privilege escalation to the root user."
},
"package": {
"ecosystem": "Ubuntu:Pro:20.04:LTS",
"name": "packagekit",
"purl": "pkg:deb/ubuntu/packagekit@1.1.13-2ubuntu1.1+esm1?arch=source\u0026distro=esm-infra/focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.1.13-2ubuntu1.1+esm1"
}
],
"type": "ECOSYSTEM"
}
],
"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"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "gir1.2-packagekitglib-1.0",
"binary_version": "1.2.5-2ubuntu3.1"
},
{
"binary_name": "gstreamer1.0-packagekit",
"binary_version": "1.2.5-2ubuntu3.1"
},
{
"binary_name": "libpackagekit-glib2-18",
"binary_version": "1.2.5-2ubuntu3.1"
},
{
"binary_name": "packagekit",
"binary_version": "1.2.5-2ubuntu3.1"
},
{
"binary_name": "packagekit-command-not-found",
"binary_version": "1.2.5-2ubuntu3.1"
},
{
"binary_name": "packagekit-docs",
"binary_version": "1.2.5-2ubuntu3.1"
},
{
"binary_name": "packagekit-gtk3-module",
"binary_version": "1.2.5-2ubuntu3.1"
},
{
"binary_name": "packagekit-tools",
"binary_version": "1.2.5-2ubuntu3.1"
}
],
"priority_reason": "Local privilege escalation to the root user."
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "packagekit",
"purl": "pkg:deb/ubuntu/packagekit@1.2.5-2ubuntu3.1?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.2.5-2ubuntu3.1"
}
],
"type": "ECOSYSTEM"
}
],
"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",
"1.2.5-2ubuntu3"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "gir1.2-packagekitglib-1.0",
"binary_version": "1.2.8-2ubuntu1.5"
},
{
"binary_name": "gstreamer1.0-packagekit",
"binary_version": "1.2.8-2ubuntu1.5"
},
{
"binary_name": "libpackagekit-glib2-18",
"binary_version": "1.2.8-2ubuntu1.5"
},
{
"binary_name": "packagekit",
"binary_version": "1.2.8-2ubuntu1.5"
},
{
"binary_name": "packagekit-command-not-found",
"binary_version": "1.2.8-2ubuntu1.5"
},
{
"binary_name": "packagekit-docs",
"binary_version": "1.2.8-2ubuntu1.5"
},
{
"binary_name": "packagekit-gtk3-module",
"binary_version": "1.2.8-2ubuntu1.5"
},
{
"binary_name": "packagekit-tools",
"binary_version": "1.2.8-2ubuntu1.5"
}
],
"priority_reason": "Local privilege escalation to the root user."
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "packagekit",
"purl": "pkg:deb/ubuntu/packagekit@1.2.8-2ubuntu1.5?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.2.8-2ubuntu1.5"
}
],
"type": "ECOSYSTEM"
}
],
"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",
"1.2.8-2ubuntu1",
"1.2.8-2ubuntu1.1",
"1.2.8-2ubuntu1.2",
"1.2.8-2ubuntu1.4"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "gir1.2-packagekitglib-1.0",
"binary_version": "1.3.1-1ubuntu1.1"
},
{
"binary_name": "gstreamer1.0-packagekit",
"binary_version": "1.3.1-1ubuntu1.1"
},
{
"binary_name": "libpackagekit-glib2-18",
"binary_version": "1.3.1-1ubuntu1.1"
},
{
"binary_name": "packagekit",
"binary_version": "1.3.1-1ubuntu1.1"
},
{
"binary_name": "packagekit-command-not-found",
"binary_version": "1.3.1-1ubuntu1.1"
},
{
"binary_name": "packagekit-docs",
"binary_version": "1.3.1-1ubuntu1.1"
},
{
"binary_name": "packagekit-gtk3-module",
"binary_version": "1.3.1-1ubuntu1.1"
},
{
"binary_name": "packagekit-tools",
"binary_version": "1.3.1-1ubuntu1.1"
}
],
"priority_reason": "Local privilege escalation to the root user."
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "packagekit",
"purl": "pkg:deb/ubuntu/packagekit@1.3.1-1ubuntu1.1?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.3.1-1ubuntu1.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.3.0-3build1",
"1.3.1-1",
"1.3.1-1ubuntu1"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "gir1.2-packagekitglib-1.0",
"binary_version": "1.3.4-3ubuntu1"
},
{
"binary_name": "gstreamer1.0-packagekit",
"binary_version": "1.3.4-3ubuntu1"
},
{
"binary_name": "libpackagekit-glib2-18",
"binary_version": "1.3.4-3ubuntu1"
},
{
"binary_name": "packagekit",
"binary_version": "1.3.4-3ubuntu1"
},
{
"binary_name": "packagekit-command-not-found",
"binary_version": "1.3.4-3ubuntu1"
},
{
"binary_name": "packagekit-docs",
"binary_version": "1.3.4-3ubuntu1"
},
{
"binary_name": "packagekit-gtk3-module",
"binary_version": "1.3.4-3ubuntu1"
}
],
"priority_reason": "Local privilege escalation to the root user."
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "packagekit",
"purl": "pkg:deb/ubuntu/packagekit@1.3.4-3ubuntu1?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.3.4-3ubuntu1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.3.1-1",
"1.3.2-1",
"1.3.3-1",
"1.3.4-1",
"1.3.4-3"
]
}
],
"aliases": [],
"details": "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-\u003ecached_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-\u003ecached_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\u2013882): `pk_transaction_set_state()` silently discards backward state transitions (e.g. `RUNNING` \u2192 `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\u20132277): The scheduler\u0027s 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\u0027s flags.",
"id": "UBUNTU-CVE-2026-41651",
"modified": "2026-06-30T16:20:59Z",
"published": "2026-04-23T00:00:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2026-41651"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-41651"
},
{
"type": "REPORT",
"url": "https://lists.freedesktop.org/archives/packagekit/2026-April/026513.html"
},
{
"type": "REPORT",
"url": "https://github.com/PackageKit/PackageKit/security/advisories/GHSA-f55j-vvr9-69xv"
},
{
"type": "REPORT",
"url": "https://github.security.telekom.com/2026/04/pack2theroot-linux-local-privilege-escalation.html"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-8195-1"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-8195-2"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-8195-3"
}
],
"related": [
"USN-8195-1",
"USN-8195-2",
"USN-8195-3"
],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "high",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2026-41651"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.