Known exploited
Is your fleet exposed to CVE-2021-4034?
Red Hat Polkit Out-of-Bounds Read and Write Vulnerability. CVE-2021-4034 is in CISA's catalog of vulnerabilities known to be exploited, and it affects packages on 16 Linux releases that SysWard tracks. A host is exposed while it has a build older than the fixed version for its release.
- Added to CISA's catalog
- June 27, 2022
- Due date for US federal agencies
- July 18, 2022
- Used in ransomware
- Known
- Affected software
- Red Hat Polkit
What it is
The Red Hat polkit pkexec utility contains an out-of-bounds read and write vulnerability that allows for privilege escalation with administrative rights.
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.
CISA's required action: Apply updates per vendor instructions.
Affected Linux releases
Pick your release for the full list of affected packages and the commands to check and update a host.
| Release | Affected packages | Fixed in |
|---|---|---|
| Ubuntu 20.04 LTS | gir1.2-polkit-1.0, libpolkit-agent-1-0, libpolkit-gobject-1-0 and 1 more | 0.105-26ubuntu1.2 |
| Ubuntu 22.04 LTS | gir1.2-polkit-1.0, libpolkit-agent-1-0, libpolkit-gobject-1-0 and 1 more | 0.105-31ubuntu1 |
| Debian 11 | policykit-1 | 0.105-31+deb11u1 |
| Debian 12 | policykit-1 | 0.105-31.1 |
| Debian 13 | policykit-1 | 0.105-31.1 |
| RHEL 8 | polkit, polkit-devel, polkit-docs and 1 more | 0.115-13.el8_5.1 |
| Rocky Linux 8 | polkit, polkit-devel, polkit-docs and 1 more | 0.115-13.el8_5.1 |
| AlmaLinux 8 | polkit, polkit-devel, polkit-docs and 1 more | 0.115-13.el8_5.2 |
| Oracle Linux 8 | polkit, polkit-devel, polkit-docs and 1 more | 0.115-13.0.1.el8_5.1 |
| CentOS Stream 9 | polkit, polkit-devel, polkit-docs and 1 more | 0.117-8 |
| Amazon Linux 2 | polkit, polkit-devel, polkit-docs | 0.112-26.amzn2.1 |
| Amazon Linux 2023 | polkit, polkit-devel, polkit-docs and 1 more | 0.117-10.amzn2023.0.3 |
| SLES 15 SP6 | libpolkit-agent-1-0, libpolkit-gobject-1-0, pkexec and 3 more | 121-150500.3.3.1 |
| SLES 15 SP7 | libpolkit-agent-1-0, libpolkit-gobject-1-0, pkexec and 3 more | 121-150500.3.3.1 |
| SLES 16 | libpolkit-agent-1-0, libpolkit-gobject-1-0, pkexec and 4 more | 123-160000.2.2 |
| Arch Linux | polkit | 0.120-5 |
Releases not listed either are not affected, are past their vendor's support, or are not ones SysWard has security data for.
Why the version number alone can mislead
Long-lived distributions fix a vulnerability in the version they already ship and raise only their own build number. Comparing your package's upstream version with the release where the project fixed the bug gives the wrong answer in both directions. Compare against the fixed build for your release, which is what the release pages list.
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.