Skip to content

Known exploited

CVE-2021-4034 on Ubuntu 20.04 LTS: affected packages and fixed versions

4 packages on Ubuntu 20.04 LTS are affected by CVE-2021-4034 (Red Hat Polkit Out-of-Bounds Read and Write Vulnerability). A host is fixed once the package is at the version below or newer.

This vulnerability is known to be exploited. CISA added it to its catalog on June 27, 2022, with a remediation date of July 18, 2022 for US federal agencies. It has been used in ransomware campaigns.

Affected packages

PackageFixed inSeverityAdvisory
gir1.2-polkit-1.0 0.105-26ubuntu1.2 High USN-5252-1
libpolkit-agent-1-0 0.105-26ubuntu1.2 High USN-5252-1
libpolkit-gobject-1-0 0.105-26ubuntu1.2 High USN-5252-1
policykit-1 0.105-26ubuntu1.2 High USN-5252-1

Check a host

Show the installed versions and compare with the table above:

dpkg-query -W -f='${Package} ${Version}\n' gir1.2-polkit-1.0 libpolkit-agent-1-0 libpolkit-gobject-1-0 policykit-1

Update to the fixed build:

sudo apt-get update && sudo apt-get install --only-upgrade gir1.2-polkit-1.0 libpolkit-agent-1-0 libpolkit-gobject-1-0 policykit-1

The fixed version may look older than the upstream release that fixed the bug. Ubuntu 20.04 LTS carries the fix in the version it already ships.

What it is

A local privilege escalation vulnerability was found on polkit's pkexec utility. The pkexec application is a setuid tool designed to allow unprivileged users to run commands as privileged users according predefined policies. The current version of pkexec doesn't handle the calling parameters count correctly and ends trying to execute environment variables as commands. An attacker can leverage this by crafting environment variables in such a way it'll induce pkexec to execute arbitrary code. When successfully executed the attack can cause a local privilege escalation given unprivileged users administrative rights on the target machine.

CVE-2021-4034 on other releases

Know which of your hosts are affected

SysWard's agent reports the packages installed on each server and matches them against each distribution's own security data, so you see which hosts still have a vulnerable build, and can patch them from the same screen. Free for five servers.

Get started free Check one server now, no signup