CSIRT-CAN – Centro de Respuesta a Incidentes de Seguridad de Canarias

Pack2TheRoot: The Linux Vulnerability That Can Grant Root Access to Local Users

News image

A high-severity vulnerability in PackageKit, present in multiple Linux distributions, allows a local user without privileges to install packages as root and escalate to full system control.

PackageKit acts as an abstraction layer for package management in Linux. Instead of each application having to communicate directly with apt, dnf, rpm, or other package managers, PackageKit offers a common interface, used especially by graphical software installation and update tools.

The Linux community has received a new security alert following the publication of Pack2TheRoot, a vulnerability affecting PackageKit, a component used by several distributions to manage software packages across different systems.

The important distinction is that this vulnerability alone does not allow remote control of any Linux machine exposed to the internet. The attacker first needs local access to the system. Even so, once inside, the impact can be critical: going from a regular user to full system administrator.

The vulnerability is related to a race condition known as TOCTOU, short for time-of-check to time-of-use. Simply put, the system checks an operation at a specific time, but before executing it, the internal state changes.

The National Vulnerability Database describes CVE-2026-41651 as a race condition in PackageKit transaction flags. The flaw allows unprivileged users to install packages as root, leading to local privilege escalation.

The vulnerability affects PackageKit versions 1.0.2 through 1.3.4 and is patched in 1.3.5.

INCIBE-CERT has also published an advisory on the vulnerability, classifying it as high importance and recommending updating PackageKit to version 1.3.5 or higher. 

In its advisory, INCIBE lists affected resources with PackageKit versions 0.8.1 through 1.3.4, inclusive. Deutsche Telekom warns that simply checking if the process is running is insufficient, as PackageKit can be activated on demand via D-Bus. 

Therefore, they recommend verifying that the package is installed and checking the version against the vulnerable range.

The good news is that fixes already exist. The bad news is that PackageKit is present in many installations and may not always be on administrators' radar. 

Checking the installed version, applying official updates, and prioritizing multi-user systems should be the immediate response.