Skip to main content

Polkit security vulnerability CVE-2021-4034

ReferenceSeverityDate
CVE-2021-40347.825/01/22

Last Updated: 31/01/22 10:15 AM

tip

Patched packages for Ubuntu and CentOS 7/8 are now available via the ANS Public Mirrors.

Overview

On Tuesday 25th January 2022, a local privilege escalation was discovered in the polkit component in all major Linux distributions. This toolkit is responsible for organising/controlling how non-privileged processes communicate with privileged ones. A vulnerability was discovered in the pbexec command in which a specifically crafted environment variable can be leveraged to execute arbitrary code, leading to a local privilege escalation.

ANS's response

Once patches are available, ANS is encouraging all clients to upgrade polkit to the latest version, applying the appropriate mitigations where upgrade isn't an option. For our part, ANS is currently working through all our systems to be absolutely sure we are protected.

Our support teams are looking at not only updating those products and services managed by ANS, but are also looking into the wider scope of affected applications, with a view to better informing our clients the best mitigation methods with systems they manage.

Identification

Vulnerable versions

warning

For CentOS 6x, Ubuntu 14.04 and 16.04, an Extended Security Maintenance Contract with the vendor is required to obtain the patch for CVE-2021-4034

OSNotes
CentOS 6xVulnerable to CVE-2021-4034
CentOS 7xVulnerable to CVE-2021-4034
CentOS 8xVulnerable to CVE-2021-4034
Ubuntu 14.04Vulnerable to CVE-2021-4034
Ubuntu 16.04Vulnerable to CVE-2021-4034
Ubuntu 18.04Vulnerable to CVE-2021-4034
Ubuntu 20.04Vulnerable to CVE-2021-4034
Ubuntu 21.10Vulnerable to CVE-2021-4034
AlmaLinuxVulnerable to CVE-2021-4034

Patched versions

note

A reboot is required to apply this patch due to the number of services that rely on this component.

OSPatched Version
CentOS 7xpolkit-0.112-26.el7_9.1.x86_64
Ubuntu 14.04policykit-1_0.105-4ubuntu3.14.04.6+esm1
Ubuntu 16.04policykit-1_0.105-14.1ubuntu0.5+esm1
Ubuntu 18.04policykit-1_0.105-20ubuntu0.18.04.6
Ubuntu 20.04policykit-1_0.105-26ubuntu1.24
Ubuntu 21.10policykit-1_0.105-31ubuntu0.1
Alma Linuxpolkit-0.115-13.el8_5.1.x86_64.rpm

Manual mitigation

In lieu of a patched version of polkit, Red Hat have detailed an alternative method of mitigation, linked below: