How Tanium Can Help with the New Polkit Vulnerability AKA CVE-2021-3560
This article was co-written by Boyd White. It takes a village to make a Community. A special thanks goes out to: Brian Williams, David Morgan, and Anthony Almaguer for their contributions to this article. To subscribe to vulnerability advisory articles like this, follow this link and request access.
This is a rapidly evolving vulnerability and more information may follow. Specifically, other Unix operating systems may be in a vulnerable state and we will update this article if the authors become aware of that fact.
Overview
On June 3, 2021, Red Hat announced a vulnerability that affects polkit. Polkit is an application designed to allow non-privileged processes to access privileged resources. This flaw could allow a low-privileged user to escalate their privileges to root. Polkit is installed by default and vulnerable on many variants of Unix. A proof of concept exploit is available in the wild.
Any Unix system that has polkit version 0.113 (or later) may be vulnerable*. A detailed explanation of what versions and conditions are required for privilege escalation can be found in the researcher’s blog.* * Red Hat, Ubuntu, Debian, SUSE, Oracle Linux, and Fedora have reported fixes for some versions of their operating systems.
|
OS Variant |
Reported Fixed Reference |
|
Red Hat 8 / CentOS 8 |
https://access.redhat.com/errata/RHSA-2021:2238https://access.redhat.com/errata/RHSA-2021:2236https://access.redhat.com/errata/RHSA-2021:2237 |
|
Fedora 21 or later |
https://linuxsecurity.com/advisories/fedora/fedora-34-polkit-2021-0ec5a8a74b-21-16-40 |
|
Ubuntu 20.04 |
|
|
Debian BullseyeDebian StretchDebian Buster |
|
|
Oracle 8 |
|
|
SUSE 15 |
*The majority of Unix operating systems use the master polkit branch, however other branches of polkit exist. Specifically, Debian variants, such as Ubuntu use a fork with a different numbering scheme.
This article provides guidance on how Tanium can help find and remediate this vulnerability.
Finding the Issue
Interact
Here is an Interact question you can use to help find the vulnerability:
Get Operating System and Installed RPMs contains polkit from all machines with Installed RPMs contains polkit
The above question will return installed polkit rpms for RedHat, Oracle, CentOS, SUSE, and Fedora.
Get Operating System and Installed Applications contains polkit from all machines with Installed Applications contains polkit
The above question will return installed polkit versions from Debian and Ubuntu.
Comply
The suggested method to find and report on this vulnerability is to use Tanium Comply.If your environment is air gapped, or not configured to automatically download updates, you will need to update the TVL in order to get new vulnerability signatures.
For more information on creating a report based on a vulnerability or a specific CVE, please refer to Comply documentation.
Asset
Tanium Asset can be used to create a report based on the above query.
You may consider adding an additional filter to limit results to Last Seen within the last 30 Days. This will remove any recently decommissioned hosts from the report.
Trends
Tanium Trends can be used to track the vulnerability. To do so, create a source that leverages the Interact question above.
Remediation
Patch
Tanium Patch can patch this vulnerability using the normal Patch workflows for Red Hat. If patching outside of a normal maintenance window, create a one time deployment. See our article on emergency patching.
Additional References
https://www.freedesktop.org/software/polkit/docs/latest/polkit.8.html https://github.blog/2021-06-10-privilege-escalation-polkit-root-on-linux-with-bug/ https://github.com/swapravo/polkadots#cve-2021-3560-local-privesc-exploit
Revision History
|
Date |
Details |
|
6/15/2021 |
First publication. |
|
6/16/2021 |
Added Comply section. |