CVSS 3.1
7.8 highCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HKnown as PwnKit
High (7.8) in Red Hat Polkit. In CISA KEV since 2022-06-27, with known ransomware use. EPSS 95% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExplain CVE-2021-4034 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-4034?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-4034?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-4034 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| polkit_project:polkit | before 121 |
| redhat:enterprise_linux_server_update_services_for_sap_solutions | 7.6 |
| redhat:enterprise_linux_server_update_services_for_sap_solutions | 7.7 |
| redhat:enterprise_linux | 8.0 |
| redhat:enterprise_linux_desktop | 7.0 |
| redhat:enterprise_linux_eus | 8.2 |
| redhat:enterprise_linux_for_ibm_z_systems | 7.0 |
| redhat:enterprise_linux_for_ibm_z_systems | 8.0 |
| redhat:enterprise_linux_for_ibm_z_systems_eus | 8.2 |
| redhat:enterprise_linux_for_ibm_z_systems_eus | 8.4 |
| redhat:enterprise_linux_for_power_big_endian | 7.0 |
| redhat:enterprise_linux_for_power_little_endian | 7.0 |
| redhat:enterprise_linux_for_power_little_endian | 8.0 |
| redhat:enterprise_linux_for_power_little_endian_eus | 8.1 |
| redhat:enterprise_linux_for_power_little_endian_eus | 8.2 |
| redhat:enterprise_linux_for_power_little_endian_eus | 8.4 |
| redhat:enterprise_linux_for_scientific_computing | 7.0 |
| redhat:enterprise_linux_server | 6.0 |
| redhat:enterprise_linux_server | 7.0 |
| redhat:enterprise_linux_server_aus | 7.3 |
| redhat:enterprise_linux_server_aus | 7.4 |
| redhat:enterprise_linux_server_aus | 7.6 |
| redhat:enterprise_linux_server_aus | 7.7 |
| redhat:enterprise_linux_server_aus | 8.2 |
| redhat:enterprise_linux_server_aus | 8.4 |
| redhat:enterprise_linux_server_eus | 8.4 |
| redhat:enterprise_linux_server_tus | 7.6 |
| redhat:enterprise_linux_server_tus | 7.7 |
| redhat:enterprise_linux_server_tus | 8.2 |
| redhat:enterprise_linux_server_tus | 8.4 |
| redhat:enterprise_linux_server_update_services_for_sap_solutions | 8.1 |
| redhat:enterprise_linux_server_update_services_for_sap_solutions | 8.2 |
| redhat:enterprise_linux_server_update_services_for_sap_solutions | 8.4 |
| redhat:enterprise_linux_workstation | 7.0 |
| canonical:ubuntu_linux | 14.04 |
| canonical:ubuntu_linux | 16.04 |
| canonical:ubuntu_linux | 18.04 |
| canonical:ubuntu_linux | 20.04 |
| canonical:ubuntu_linux | 21.10 |
| suse:enterprise_storage | 7.0 |
| suse:linux_enterprise_high_performance_computing | 15.0:sp2 |
| suse:manager_proxy | 4.1 |
| suse:manager_server | 4.1 |
| suse:linux_enterprise_desktop | 15:sp2 |
| suse:linux_enterprise_server | 15:sp2 |
| suse:linux_enterprise_workstation_extension | 12:sp5 |
| oracle:http_server | 12.2.1.3.0 |
| oracle:http_server | 12.2.1.4.0 |
| oracle:zfs_storage_appliance_kit | 8.8 |
| siemens:sinumerik_edge | before 3.3.0 |
| siemens:scalance_lpe9403_firmware | before 2.0 |
| starwindsoftware:command_center | 1.0:update3_build5871 |
| starwindsoftware:starwind_virtual_san | v8:build14338 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 9 | policykit-1 | 0.105-18+deb9u2 | DLA-2899-1 |
| Debian | 10 | policykit-1 | 0.105-25+deb10u1 | DSA-5059-1 |
| Debian | 11 | policykit-1 | 0.105-31+deb11u1 | DSA-5059-1 |
| Debian | 12, 13, 14 | policykit-1 | 0.105-31.1 | DEBIAN-CVE-2021-4034 |
| Ubuntu | 18.04:LTS | policykit-1 | 0.105-20ubuntu0.18.04.6 | UBUNTU-CVE-2021-4034 USN-5252-1 |
| Ubuntu | 20.04:LTS | policykit-1 | 0.105-26ubuntu1.2 | UBUNTU-CVE-2021-4034 USN-5252-1 |
| Ubuntu | 22.04:LTS | policykit-1 | 0.105-31ubuntu1 | UBUNTU-CVE-2021-4034 |
| Ubuntu | Pro:14.04:LTS | policykit-1 | 0.105-4ubuntu3.14.04.6+esm1 | UBUNTU-CVE-2021-4034 USN-5252-2 |
| Ubuntu | Pro:16.04:LTS | policykit-1 | 0.105-14.1ubuntu0.5+esm1 | UBUNTU-CVE-2021-4034 USN-5252-2 |
| Red Hat | enterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstation | polkit, polkit-docs, polkit-devel and 1 more | 0:0.112-26.el7_9.1 | RHSA-2022:0274 |
| Red Hat | enterprise_linux:7::computenode | polkit-docs, polkit-devel, polkit-debuginfo | 0:0.112-26.el7_9.1 | RHSA-2022:0274 |
| Red Hat | enterprise_linux:7::hypervisor | redhat-virtualization-host, redhat-virtualization-host-image-update | 0:4.3.21-20220126.0.el7_9 | RHSA-2022:0443 |
| Red Hat | enterprise_linux:8::baseos | polkit, polkit-docs, polkit-libs and 4 more | 0:0.115-13.el8_5.1 | RHSA-2022:0267 |
| Red Hat | rhel_aus:7.3::server | polkit, polkit-docs, polkit-devel and 1 more | 0:0.112-12.el7_3.1 | RHSA-2022:0270 |
| Red Hat | rhel_aus:7.4::server | polkit, polkit-docs, polkit-devel and 1 more | 0:0.112-12.el7_4.2 | RHSA-2022:0272 |
| Red Hat | rhel_aus:7.6::server, rhel_e4s:7.6::server, rhel_tus:7.6::server | polkit, polkit-docs, polkit-devel and 1 more | 0:0.112-18.el7_6.3 | RHSA-2022:0271 |
| Red Hat | rhel_aus:7.7::server, rhel_e4s:7.7::server, rhel_tus:7.7::server | polkit, polkit-docs, polkit-devel and 1 more | 0:0.112-22.el7_7.2 | RHSA-2022:0273 |
| Red Hat | rhel_e4s:8.1::baseos | polkit, polkit-docs, polkit-libs and 4 more | 0:0.115-9.el8_1.2 | RHSA-2022:0268 |
| Red Hat | rhel_els:6 | polkit, polkit-docs, polkit-devel and 2 more | 0:0.96-11.el6_10.2 | RHSA-2022:0269 |
| Red Hat | rhel_eus:8.2::baseos | polkit, polkit-docs, polkit-libs and 4 more | 0:0.115-11.el8_2.2 | RHSA-2022:0265 |
| Red Hat | rhel_eus:8.4::baseos | polkit, polkit-docs, polkit-libs and 4 more | 0:0.115-11.el8_4.2 | RHSA-2022:0266 |
| 1 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Enterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 more | polkit | 0.114-3.15.1 | SUSE-SU-2022:0191-1 |
| SUSE | Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 9 more | polkit | 0.116-3.6.1 | SUSE-SU-2022:0190-1 |
| SUSE | HPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 12 more | polkit | 0.113-5.24.1 | SUSE-SU-2022:0189-1 |
| openSUSE | Leap 15.3 | polkit | 0.116-3.6.1 | openSUSE-SU-2022:0190-1 |
| openSUSE | Tumbleweed | polkit | 0.120-2.1 | openSUSE-SU-2024:11780-1 |
| AlmaLinux | 8 | polkit, polkit-docs, polkit-libs and 1 more | 0.115-13.el8_5.2 | ALSA-2022:0267 |
| Rocky Linux | 8 | polkit | 0:0.115-13.el8_5.1 | RLSA-2022:0267 |
| Alpine | v3.15 | polkit | 0.119-r8 | ALPINE-CVE-2021-4034 |
| Alpine | v3.16, v3.17, v3.18 and 6 more | polkit | 0.120-r2 | ALPINE-CVE-2021-4034 |
| Azure Linux | 2 | polkit | 0.119-2 | AZL-8335 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.
Red Hat rates this Important.
For customers who cannot update immediately and doesn't have Secure Boot feature enabled, the issue can be mitigated by executing the following steps:
1) Install required systemtap packages and dependencies as per - pointed by https://access.redhat.com/solutions/5441
2) Install polkit debug info:
~~~
debuginfo-install polkit
~~~
3) Create the following systemtap script, and name it pkexec-block.stp:
~~~
probe process("/usr/bin/pkexec").function("main") {
if (cmdline_arg(1) == "")
raise(9);
}
~~~
4) Load the systemtap module into the running kernel:
~~~
stap -g -F -m stap_pkexec_block pkexec_block.stp
~~~
5) Ensure the module is loaded:
~~~
lsmod | grep -i stap_pkexec_block
stap_pkexec_block 434176 0
~~~
6) Once polkit package was updated to the version containing the fix, the systemtap generated kernel module can be removed by running:
~~~
rmmod stap_pkexec_block
~~~
This mitigation doesn't work for Secure Boot enabled system as SystemTap would require an external compiling server to be able to sign the generated kernel module
with a key enrolled into the Kernel's keyring.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 Extended Lifecycle Support | polkit-0:0.96-11.el6_10.2 | Fixed 2022-01-25 | RHSA-2022:0269 |
| Red Hat Enterprise Linux 7 | polkit-0:0.112-26.el7_9.1 | Fixed 2022-01-25 | RHSA-2022:0274 |
| Red Hat Enterprise Linux 7.3 Advanced Update Support | polkit-0:0.112-12.el7_3.1 | Fixed 2022-01-25 | RHSA-2022:0270 |
| Red Hat Enterprise Linux 7.4 Advanced Update Support | polkit-0:0.112-12.el7_4.2 | Fixed 2022-01-25 | RHSA-2022:0272 |
| Red Hat Enterprise Linux 7.6 Advanced Update Support | polkit-0:0.112-18.el7_6.3 | Fixed 2022-01-25 | RHSA-2022:0271 |
| Red Hat Enterprise Linux 7.6 Telco Extended Update Support | polkit-0:0.112-18.el7_6.3 | Fixed 2022-01-25 | RHSA-2022:0271 |
| Red Hat Enterprise Linux 7.6 Update Services for SAP Solutions | polkit-0:0.112-18.el7_6.3 | Fixed 2022-01-25 | RHSA-2022:0271 |
| Red Hat Enterprise Linux 7.7 Advanced Update Support | polkit-0:0.112-22.el7_7.2 | Fixed 2022-01-25 | RHSA-2022:0273 |
| Red Hat Enterprise Linux 7.7 Telco Extended Update Support | polkit-0:0.112-22.el7_7.2 | Fixed 2022-01-25 | RHSA-2022:0273 |
| Red Hat Enterprise Linux 7.7 Update Services for SAP Solutions | polkit-0:0.112-22.el7_7.2 | Fixed 2022-01-25 | RHSA-2022:0273 |
| Red Hat Enterprise Linux 8 | polkit-0:0.115-13.el8_5.1 | Fixed 2022-01-25 | RHSA-2022:0267 |
| Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions | polkit-0:0.115-9.el8_1.2 | Fixed 2022-01-25 | RHSA-2022:0268 |
| Red Hat Enterprise Linux 8.2 Extended Update Support | polkit-0:0.115-11.el8_2.2 | Fixed 2022-01-25 | RHSA-2022:0265 |
| Red Hat Enterprise Linux 8.4 Extended Update Support | polkit-0:0.115-11.el8_4.2 | Fixed 2022-01-25 | RHSA-2022:0266 |
| Red Hat Virtualization 4 for Red Hat Enterprise Linux 7 | redhat-virtualization-host-0:4.3.21-20220126.0.el7_9 | Fixed 2022-02-07 | RHSA-2022:0443 |
| Red Hat Virtualization 4 for Red Hat Enterprise Linux 8 | redhat-virtualization-host-0:4.4.10-202202081536_8.5 | Fixed 2022-02-15 | RHSA-2022:0540 |
| Red Hat Enterprise Linux 9 | polkit | Not affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-4034.
| Advisory | Title | Published | Sectors | Affected | Fixed |
|---|---|---|---|---|---|
| ICSA-23-075-01 | Siemens SCALANCE, RUGGEDCOM Third-Party | 2023-03-14 | Multiple | RUGGEDCOM RM1224 LTE(4G) EU (6GK6108-4AM00-2BA2), RUGGEDCOM RM1224 LTE(4G) NAM (6GK6108-4AM00-2DA2), SCALANCE M804PB (6GK5804-0AP00-2AA2) and 17 more | none listed |
| ICSA-22-270-02 | Hitachi Energy APM Edge | 2022-09-27 | Energy | Lumada APM Edge: Version 3.0, Lumada APM Edge: Version 1.0, Lumada APM Edge: Version 4.0 and 1 more | none listed |
| ICSA-22-167-16 | Siemens SCALANCE LPE 4903 and SINUMERIK Edge | 2022-06-14 | Multiple | SCALANCE LPE9403, SINUMERIK Edge | none listed |
From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.
Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.