{"id":"CVE-2026-41651","aliases":["CVE-2026-41651"],"related":[],"kind":"vulnerability","state":"published","title":"PackageKit vulnerable to TOCTOU Race on Transaction Flags leads to arbitrary package installation as root","summary":"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.\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->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->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–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.\n3. 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.\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->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->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–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.\n3. 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.","source":"cvelist"},{"lang":"es","text":"PackageKit es una capa de abstracción D-Bus que permite al usuario gestionar paquetes de forma segura utilizando una API multiplataforma y multiarquitectura. PackageKit entre las versiones 1.0.2 y 1.3.4, ambas inclusive, es vulnerable a una condición de carrera de tiempo de verificación a tiempo de uso (TOCTOU) en los indicadores de transacción que permite a los usuarios sin privilegios instalar paquetes como root y, por lo tanto, conduce a una escalada de privilegios local. Esto está parcheado en la versión 1.3.5.\n\nUn usuario local sin privilegios puede instalar paquetes RPM arbitrarios como root, incluyendo la ejecución de scriptlets RPM, sin autenticación. La vulnerabilidad es una condición de carrera TOCTOU en ’transaction  ->  cached_transaction_flags’ combinada con una protección silenciosa de máquina de estados que descarta transiciones inversas ilegales mientras deja los indicadores corruptos en su lugar. Existen tres errores en ’src/pk-transaction.c’:\n1. Sobrescritura incondicional de indicadores (línea 4036): ’InstallFiles()’ escribe los indicadores proporcionados por el llamador en ’transaction  ->  cached_transaction_flags’ sin verificar si la transacción ya ha sido autorizada/iniciada. Una segunda llamada sobrescribe ciegamente los indicadores incluso mientras la transacción está EN EJECUCIÓN.\n2. Rechazo silencioso de transición de estado (líneas 873-882): ’pk_transaction_set_state()’ descarta silenciosamente las transiciones de estado inversas (p. ej., ’RUNNING’ ? ’WAITING_FOR_AUTH’) pero la sobrescritura de indicadores del paso 1 ya ocurrió. La transacción continúa ejecutándose con indicadores corruptos.\n3. Lectura tardía de indicadores en tiempo de ejecución (líneas 2273-2277): La devolución de llamada de inactividad del planificador lee cached_transaction_flags en el momento del despacho, no en el momento de la autorización. Si los indicadores fueron sobrescritos entre la autorización y la ejecución, el backend ve los indicadores del atacante.","source":"nvd"}],"published":"2026-04-22T13:11:40.174Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-367"],"affected":[{"ranges":[{"version":">= 1.0.2, <= 1.3.4","status":"affected"}],"vendor":"PackageKit","product":"PackageKit","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.2.8-8.el10_2","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","package":"PackageKit","cpe":"cpe:/o:redhat:enterprise_linux:10.2","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.2.8-8.el10_0.1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10.0 Extended Update Support","package":"PackageKit","cpe":"cpe:/o:redhat:enterprise_linux_eus:10.0","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.1.10-2.el7_9.1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7 Extended Lifecycle Support","package":"PackageKit","cpe":"cpe:/o:redhat:rhel_els:7","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.1.12-8.el8_10","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","package":"PackageKit","cpe":"cpe:/a:redhat:enterprise_linux:8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.1.12-6.el8_4.1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support","package":"PackageKit","cpe":"cpe:/a:redhat:rhel_aus:8.4","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.1.12-6.el8_4.1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On","package":"PackageKit","cpe":"cpe:/a:redhat:rhel_eus_long_life:8.4","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.1.12-6.el8_6.1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support","package":"PackageKit","cpe":"cpe:/a:redhat:rhel_aus:8.6","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.1.12-6.el8_6.1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.6 Telecommunications Update Service","package":"PackageKit","cpe":"cpe:/a:redhat:rhel_tus:8.6","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.1.12-6.el8_6.1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions","package":"PackageKit","cpe":"cpe:/a:redhat:rhel_e4s:8.6","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.1.12-6.el8_8.1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.8 Telecommunications Update Service","package":"PackageKit","cpe":"cpe:/a:redhat:rhel_tus:8.8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.1.12-6.el8_8.1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions","package":"PackageKit","cpe":"cpe:/a:redhat:rhel_e4s:8.8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.2.6-2.el9_7","fixed":"*","status":"unaffected"},{"type":"rpm","introduced":"0:1.2.6-2.el9_8","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"PackageKit","cpe":"cpe:/a:redhat:enterprise_linux:9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.2.4-2.el9_0.1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions","package":"PackageKit","cpe":"cpe:/a:redhat:rhel_e4s:9.0","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.2.4-2.el9_2.1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions","package":"PackageKit","cpe":"cpe:/a:redhat:rhel_e4s:9.2","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.2.6-1.el9_4.1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9.4 Extended Update Support","package":"PackageKit","cpe":"cpe:/a:redhat:rhel_eus:9.4","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.2.6-1.el9_6.1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9.6 Extended Update Support","package":"PackageKit","cpe":"cpe:/a:redhat:rhel_eus:9.6","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 6","package":"PackageKit","cpe":"cpe:/o:redhat:enterprise_linux:6","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 7","package":"compat-PackageKit08","cpe":"cpe:/o:redhat:enterprise_linux:7","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"1.0.2","fixed":"1.3.5"}],"vendor":"packagekit_project","product":"packagekit","cpe":"cpe:2.3:a:packagekit_project:packagekit:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/PackageKit/PackageKit/security/advisories/GHSA-f55j-vvr9-69xv","tags":["exploit","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/PackageKit/PackageKit/blob/04057883189efa225a7c785591aa87cb299782f8/src/pk-transaction.c#L2273-L2277","tags":["product","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/PackageKit/PackageKit/blob/04057883189efa225a7c785591aa87cb299782f8/src/pk-transaction.c#L4036","tags":["product","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/PackageKit/PackageKit/blob/04057883189efa225a7c785591aa87cb299782f8/src/pk-transaction.c#L873-L882","tags":["product","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.security.telekom.com/2026/04/pack2theroot-linux-local-privilege-escalation.html","tags":["exploit","third-party-advisory","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/04/22/6","tags":["mailing-list","patch","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-41651","tags":["vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2460604","tags":["issue-tracking","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41651.json","tags":["x-sadp-csaf-vex"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:22146","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:19601","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:19141","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:11635","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:17558","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:17561","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:17560","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:18024","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:18036","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:19454","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:18031","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:11504","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:19354","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-05-05T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-41651","url":"https://www.cve.org/CVERecord?id=CVE-2026-41651","licence":"CVE Terms of Use","modified":"2026-07-15T00:58:55.389Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-41651","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41651","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.318Z","epss":{"score":0.00556,"percentile":0.47746,"date":"2026-12-01T12:00:22.000Z"}}