Linux Polkit has been granting root access to unauthorized users for 7 years

linux flaw vulnerability

A flaw in Polkit that has been running on Linux systems for seven years allows underprivileged users to access Root.

linux flaw vulnerability

See more articles from iGuRu.gr when you search for news on Google.

Malicious users can take advantage of a flaw in Polkit and locally bypass the rights of an unauthorized user to gain root access to the Linux system.

Polkit (formerly PolicyKit) is a toolkit for setting and manipulating permissions in Linux distributions and is used to allow unprivileged processes to communicate with privileged processes.

The vulnerability, codenamed CVE-2021-3560 (CVSS score: 7,8), affects polkit versions between 0.113 and 0.118. It was discovered by security researcher Kevin Backhouse, who said the issue was introduced in code first released on November 9, 2013 (!!).

Red Hat's Cedric Buissart reported that Debian-based distributions include polkit 0.105 and are therefore also vulnerable.

RHEL 8, Fedora 21 (or later), Debian "Bullseye" and Ubuntu 20.04 are some of the most popular Linux distributions affected by polkit vulnerabilities. The problem has been mitigated in version 0.119, which was released on June 3rd.

Backhouse said: "Vulnerability is surprisingly easy to exploit. All you need is some commands in the terminal using only standard tools like bash, kill and dbus-send.

"Dbus-send" is a Linux inter-process communication (IPC) mechanism used to send messages to the D-Bus messaging bus, allowing communication between multiple processes running on the same computer at the same time. If someone kills the command, it bypasses the authentication because the polkit handles the abruptly terminated message and treats the request as if it came from a root privileged process (UID 0), thus allowing the request.

Linux users should update their operating system immediately to remedy the potential risk posed by the flaw.


Google preferences

Leave a reply

Your email address will not be published. Required fields are marked *