Skip to content
Memory corruption Write-up Advanced

Security Advisory Critical Linux Vulnerability

A memory-corruption bug in Polkit's pkexec function allows any unprivileged user to gain full root privileges on a vulnerable Linux host. The flaw has existed for 12 years and affects most Linux distributions.

Ty Mezquita — CyberHoot Follow

Published on systemweakness.com

Polkit (formerly PolicyKit) provides an organized way for non-privileged processes to communicate with privileged processes and can be used to execute commands with elevated privileges using the command pkexec, followed by the command intended to be executed (with root permission). This vulnerability essentially…

Ty Mezquita — CyberHoot, on systemweakness.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a memory-corruption bug in pkexec's handling of arguments, though the text does not specify the exact coding mistake.

Impact

Any unprivileged user could gain full root privileges on default installations of CentOS, Debian, Fedora, and Ubuntu, and other distributions are likely vulnerable.

What the attacker needed

Local access to a vulnerable Linux host; unprivileged user account

The fix

The vulnerability was fixed by patches released by Linux distributions; if patching is not possible, removing the SUID bit from pkexec is a temporary workaround.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This is a flaw in a Linux program called pkexec that normally helps run commands with higher permissions. Because of a mistake in how it handles memory, a normal user can trick it into giving them full control of the computer, like an administrator. The problem was hidden for many years and is now fixed in most Linux versions.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Ty Mezquita — CyberHoot

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.