Skip to content

Known exploited

CVE-2021-4034 on SLES 16: affected packages and fixed versions

7 packages on SLES 16 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
libpolkit-agent-1-0 123-160000.2.2 Important none listed
libpolkit-gobject-1-0 123-160000.2.2 Important none listed
pkexec 123-160000.2.2 Important none listed
polkit 123-160000.2.2 Important none listed
polkit-devel 123-160000.2.2 Important none listed
polkit-doc 123-160000.2.2 Important none listed
typelib-1_0-Polkit-1_0 123-160000.2.2 Important none listed

Check a host

Show the installed versions and compare with the table above:

rpm -q libpolkit-agent-1-0 libpolkit-gobject-1-0 pkexec polkit

Update to the fixed build:

sudo zypper refresh && sudo zypper update libpolkit-agent-1-0 libpolkit-gobject-1-0 pkexec polkit

The fixed version may look older than the upstream release that fixed the bug. SLES 16 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