oesa-2026-2140
Vulnerability from osv_openeuler
PackageKit is a D-Bus abstraction layer that allows the session user to manage packages in a secure way using a cross-distro, cross-architecture API.
Security Fix(es):
PackageKit is 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.(CVE-2026-41651)
| URL | Type | |
|---|---|---|
{
"affected": [
{
"ecosystem_specific": {
"aarch64": [
"PackageKit-1.1.12-11.oe2203sp4.aarch64.rpm",
"PackageKit-command-not-found-1.1.12-11.oe2203sp4.aarch64.rpm",
"PackageKit-debuginfo-1.1.12-11.oe2203sp4.aarch64.rpm",
"PackageKit-debugsource-1.1.12-11.oe2203sp4.aarch64.rpm",
"PackageKit-devel-1.1.12-11.oe2203sp4.aarch64.rpm"
],
"noarch": [
"PackageKit-help-1.1.12-11.oe2203sp4.noarch.rpm"
],
"src": [
"PackageKit-1.1.12-11.oe2203sp4.src.rpm"
],
"x86_64": [
"PackageKit-1.1.12-11.oe2203sp4.x86_64.rpm",
"PackageKit-command-not-found-1.1.12-11.oe2203sp4.x86_64.rpm",
"PackageKit-debuginfo-1.1.12-11.oe2203sp4.x86_64.rpm",
"PackageKit-debugsource-1.1.12-11.oe2203sp4.x86_64.rpm",
"PackageKit-devel-1.1.12-11.oe2203sp4.x86_64.rpm"
]
},
"package": {
"ecosystem": "openEuler:22.03-LTS-SP4",
"name": "PackageKit",
"purl": "pkg:rpm/openEuler/PackageKit\u0026distro=openEuler-22.03-LTS-SP4"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.1.12-11.oe2203sp4"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"ecosystem_specific": {
"aarch64": [
"PackageKit-1.2.8-5.oe2403.aarch64.rpm",
"PackageKit-command-not-found-1.2.8-5.oe2403.aarch64.rpm",
"PackageKit-debuginfo-1.2.8-5.oe2403.aarch64.rpm",
"PackageKit-debugsource-1.2.8-5.oe2403.aarch64.rpm",
"PackageKit-devel-1.2.8-5.oe2403.aarch64.rpm",
"PackageKit-gtk3-module-1.2.8-5.oe2403.aarch64.rpm",
"PackageKit-1.2.8-5.oe2403sp1.aarch64.rpm",
"PackageKit-command-not-found-1.2.8-5.oe2403sp1.aarch64.rpm",
"PackageKit-debuginfo-1.2.8-5.oe2403sp1.aarch64.rpm",
"PackageKit-debugsource-1.2.8-5.oe2403sp1.aarch64.rpm",
"PackageKit-devel-1.2.8-5.oe2403sp1.aarch64.rpm",
"PackageKit-gtk3-module-1.2.8-5.oe2403sp1.aarch64.rpm",
"PackageKit-1.2.8-5.oe2403sp3.aarch64.rpm",
"PackageKit-command-not-found-1.2.8-5.oe2403sp3.aarch64.rpm",
"PackageKit-debuginfo-1.2.8-5.oe2403sp3.aarch64.rpm",
"PackageKit-debugsource-1.2.8-5.oe2403sp3.aarch64.rpm",
"PackageKit-devel-1.2.8-5.oe2403sp3.aarch64.rpm",
"PackageKit-gtk3-module-1.2.8-5.oe2403sp3.aarch64.rpm"
],
"noarch": [
"PackageKit-help-1.2.8-5.oe2403.noarch.rpm",
"PackageKit-help-1.2.8-5.oe2403sp1.noarch.rpm",
"PackageKit-help-1.2.8-5.oe2403sp3.noarch.rpm"
],
"src": [
"PackageKit-1.2.8-5.oe2403.src.rpm",
"PackageKit-1.2.8-5.oe2403sp1.src.rpm",
"PackageKit-1.2.8-5.oe2403sp3.src.rpm"
],
"x86_64": [
"PackageKit-1.2.8-5.oe2403.x86_64.rpm",
"PackageKit-command-not-found-1.2.8-5.oe2403.x86_64.rpm",
"PackageKit-debuginfo-1.2.8-5.oe2403.x86_64.rpm",
"PackageKit-debugsource-1.2.8-5.oe2403.x86_64.rpm",
"PackageKit-devel-1.2.8-5.oe2403.x86_64.rpm",
"PackageKit-gtk3-module-1.2.8-5.oe2403.x86_64.rpm",
"PackageKit-1.2.8-5.oe2403sp1.x86_64.rpm",
"PackageKit-command-not-found-1.2.8-5.oe2403sp1.x86_64.rpm",
"PackageKit-debuginfo-1.2.8-5.oe2403sp1.x86_64.rpm",
"PackageKit-debugsource-1.2.8-5.oe2403sp1.x86_64.rpm",
"PackageKit-devel-1.2.8-5.oe2403sp1.x86_64.rpm",
"PackageKit-gtk3-module-1.2.8-5.oe2403sp1.x86_64.rpm",
"PackageKit-1.2.8-5.oe2403sp3.x86_64.rpm",
"PackageKit-command-not-found-1.2.8-5.oe2403sp3.x86_64.rpm",
"PackageKit-debuginfo-1.2.8-5.oe2403sp3.x86_64.rpm",
"PackageKit-debugsource-1.2.8-5.oe2403sp3.x86_64.rpm",
"PackageKit-devel-1.2.8-5.oe2403sp3.x86_64.rpm",
"PackageKit-gtk3-module-1.2.8-5.oe2403sp3.x86_64.rpm"
]
},
"package": {
"ecosystem": "openEuler:24.03-LTS",
"name": "PackageKit",
"purl": "pkg:rpm/openEuler/PackageKit\u0026distro=openEuler-24.03-LTS"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.2.8-5.oe2403sp3"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"ecosystem_specific": {
"aarch64": [
"PackageKit-1.2.8-5.oe2403sp1.aarch64.rpm",
"PackageKit-command-not-found-1.2.8-5.oe2403sp1.aarch64.rpm",
"PackageKit-debuginfo-1.2.8-5.oe2403sp1.aarch64.rpm",
"PackageKit-debugsource-1.2.8-5.oe2403sp1.aarch64.rpm",
"PackageKit-devel-1.2.8-5.oe2403sp1.aarch64.rpm",
"PackageKit-gtk3-module-1.2.8-5.oe2403sp1.aarch64.rpm"
],
"noarch": [
"PackageKit-help-1.2.8-5.oe2403sp1.noarch.rpm"
],
"src": [
"PackageKit-1.2.8-5.oe2403sp1.src.rpm"
],
"x86_64": [
"PackageKit-1.2.8-5.oe2403sp1.x86_64.rpm",
"PackageKit-command-not-found-1.2.8-5.oe2403sp1.x86_64.rpm",
"PackageKit-debuginfo-1.2.8-5.oe2403sp1.x86_64.rpm",
"PackageKit-debugsource-1.2.8-5.oe2403sp1.x86_64.rpm",
"PackageKit-devel-1.2.8-5.oe2403sp1.x86_64.rpm",
"PackageKit-gtk3-module-1.2.8-5.oe2403sp1.x86_64.rpm"
]
},
"package": {
"ecosystem": "openEuler:24.03-LTS-SP1",
"name": "PackageKit",
"purl": "pkg:rpm/openEuler/PackageKit\u0026distro=openEuler-24.03-LTS-SP1"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.2.8-5.oe2403sp1"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"ecosystem_specific": {
"aarch64": [
"PackageKit-1.2.8-5.oe2403sp3.aarch64.rpm",
"PackageKit-command-not-found-1.2.8-5.oe2403sp3.aarch64.rpm",
"PackageKit-debuginfo-1.2.8-5.oe2403sp3.aarch64.rpm",
"PackageKit-debugsource-1.2.8-5.oe2403sp3.aarch64.rpm",
"PackageKit-devel-1.2.8-5.oe2403sp3.aarch64.rpm",
"PackageKit-gtk3-module-1.2.8-5.oe2403sp3.aarch64.rpm"
],
"noarch": [
"PackageKit-help-1.2.8-5.oe2403sp3.noarch.rpm"
],
"src": [
"PackageKit-1.2.8-5.oe2403sp3.src.rpm"
],
"x86_64": [
"PackageKit-1.2.8-5.oe2403sp3.x86_64.rpm",
"PackageKit-command-not-found-1.2.8-5.oe2403sp3.x86_64.rpm",
"PackageKit-debuginfo-1.2.8-5.oe2403sp3.x86_64.rpm",
"PackageKit-debugsource-1.2.8-5.oe2403sp3.x86_64.rpm",
"PackageKit-devel-1.2.8-5.oe2403sp3.x86_64.rpm",
"PackageKit-gtk3-module-1.2.8-5.oe2403sp3.x86_64.rpm"
]
},
"package": {
"ecosystem": "openEuler:24.03-LTS-SP3",
"name": "PackageKit",
"purl": "pkg:rpm/openEuler/PackageKit\u0026distro=openEuler-24.03-LTS-SP3"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.2.8-5.oe2403sp3"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"ecosystem_specific": {
"aarch64": [
"PackageKit-1.1.12-11.oe2003sp4.aarch64.rpm",
"PackageKit-command-not-found-1.1.12-11.oe2003sp4.aarch64.rpm",
"PackageKit-debuginfo-1.1.12-11.oe2003sp4.aarch64.rpm",
"PackageKit-debugsource-1.1.12-11.oe2003sp4.aarch64.rpm",
"PackageKit-devel-1.1.12-11.oe2003sp4.aarch64.rpm"
],
"noarch": [
"PackageKit-help-1.1.12-11.oe2003sp4.noarch.rpm"
],
"src": [
"PackageKit-1.1.12-11.oe2003sp4.src.rpm"
],
"x86_64": [
"PackageKit-1.1.12-11.oe2003sp4.x86_64.rpm",
"PackageKit-command-not-found-1.1.12-11.oe2003sp4.x86_64.rpm",
"PackageKit-debuginfo-1.1.12-11.oe2003sp4.x86_64.rpm",
"PackageKit-debugsource-1.1.12-11.oe2003sp4.x86_64.rpm",
"PackageKit-devel-1.1.12-11.oe2003sp4.x86_64.rpm"
]
},
"package": {
"ecosystem": "openEuler:20.03-LTS-SP4",
"name": "PackageKit",
"purl": "pkg:rpm/openEuler/PackageKit\u0026distro=openEuler-20.03-LTS-SP4"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.1.12-11.oe2003sp4"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"severity": "High"
},
"details": "PackageKit is a D-Bus abstraction layer that allows the session user to manage packages in a secure way using a cross-distro, cross-architecture API.\r\n\r\nSecurity Fix(es):\n\nPackageKit is 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.\n\nA 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-\u0026gt;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`:\n1. Unconditional flag overwrite (line 4036): `InstallFiles()` writes caller-supplied flags to `transaction-\u0026gt;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.\n2. 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.\n3. Late flag read at execution time (lines 2273\u20132277): The scheduler\u0026apos;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\u0026apos;s flags.(CVE-2026-41651)",
"id": "OESA-2026-2140",
"modified": "2026-08-06T11:11:07Z",
"published": "2026-05-03T11:11:07Z",
"references": [
{
"type": "ADVISORY",
"url": "https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2026-2140"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-41651"
}
],
"schema_version": "1.7.2",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "PackageKit security update",
"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.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.