<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Packagekit_Project - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/vendors/packagekit_project/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Sun, 02 Aug 2026 12:42:23 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/vendors/packagekit_project/feed.xml" rel="self" type="application/rss+xml"/><item><title>Local Privilege Escalation in PackageKit via TOCTOU Race Condition</title><link>https://feed.craftedsignal.io/briefs/2026-08-packagekit-lpe/</link><pubDate>Sun, 02 Aug 2026 12:42:23 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-packagekit-lpe/</guid><description>CVE-2026-41651 is a local privilege escalation vulnerability in PackageKit that allows unprivileged users to execute arbitrary packages as root by bypassing PolKit via a TOCTOU race condition.</description><content:encoded><![CDATA[<p>CVE-2026-41651 is a local privilege escalation vulnerability in PackageKit versions 1.0.2 through 1.3.4. The vulnerability arises from a Time-of-check Time-of-use (TOCTOU) race condition within the D-Bus transaction handler, specifically in <code>src/pk-transaction.c</code>. An unprivileged local user can exploit three chained bugs: unconditional flag overwrites, a flawed state-machine guard, and late flag reads during transaction dispatch. By utilizing the <code>PK_TRANSACTION_FLAG_SIMULATE</code> flag, an attacker can bypass PolKit authorization checks. This allows a local attacker to install arbitrary packages as root, ultimately facilitating the creation of SUID binaries for full system compromise. The vulnerability affects major Linux distributions, including Ubuntu, Debian, Fedora, and RockyLinux, provided the <code>packagekitd</code> service is active.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>The attacker initiates a D-Bus transaction with the PackageKit daemon, setting the transaction state to NEW.</li>
<li>The attacker sends an <code>InstallFiles()</code> request with the <code>PK_TRANSACTION_FLAG_SIMULATE</code> flag, causing the daemon to skip PolKit authorization checks.</li>
<li>The daemon moves the transaction to a READY state and queues it as a GLib idle event.</li>
<li>The attacker sends a second <code>InstallFiles()</code> request on the same transaction using their intended malicious payload.</li>
<li>The daemon's flawed state-machine guard rejects the second state transition but fails to roll back the malicious flags and file paths overwritten in the previous step.</li>
<li>When the GLib idle event fires, <code>pk_transaction_run()</code> is invoked, reading the attacker's corrupted flags and path instead of the authorized ones.</li>
<li>The backend processes the malicious package as root, executing its post-installation script.</li>
<li>The post-installation script creates a SUID binary (e.g., <code>/tmp/.suid_bash</code>), which the attacker executes to gain root-level privileges.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation results in full local root privilege escalation. The vulnerability affects a wide range of Linux distributions including Ubuntu, Debian, Fedora, and RockyLinux. Any local user with an active session can exploit this to achieve persistence or system-wide compromise, impacting the integrity and availability of the affected host.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade PackageKit to version 1.3.5 or higher immediately.</li>
<li>If an upgrade is not feasible, mask the PackageKit service using <code>systemctl mask packagekit</code> to prevent the vulnerable daemon from running.</li>
<li>Audit <code>/tmp</code> and similar temporary directories for unexpected SUID binaries, specifically looking for files created by <code>dpkg</code> or unauthorized installation processes.</li>
<li>Monitor for the presence of unusual <code>.deb</code> packages being processed by <code>packagekitd</code> in environments where package management activity is typically restricted.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>privilege-escalation</category><category>linux</category><category>cve-2026-41651</category></item></channel></rss>