CVE-2021-4034: Red Hat Polkit Out-of-Bounds Read and Write
This Red Hat advisory covers CVE-2021-4034 in Red Hat Enterprise Linux 6 Extended Lifecycle Support, Red Hat Enterprise Linux 7.3 Advanced Update Support and Red Hat Enterprise Linux 7.4 Advanced Update Support.
Am I affected by CVE-2021-4034?
The Red Hat advisory lists no affected version range that VulniPulse could read. Check it for Red Hat Enterprise Linux 6 Extended Lifecycle Support, Red Hat Enterprise Linux 7.3 Advanced Update Support, Red Hat Enterprise Linux 7.4 Advanced Update Support.
Fixed releases listed by the vendor: polkit-0:0.96-11.el6_10.2, polkit-0:0.112-26.el7_9.1, polkit-0:0.112-12.el7_3.1, polkit-0:0.112-12.el7_4.2, polkit-0:0.112-18.el7_6.3, polkit-0:0.112-22.el7_7.2, polkit-0:0.115-13.el8_5.1, polkit-0:0.115-9.el8_1.2, polkit-0:0.115-11.el8_2.2, polkit-0:0.115-11.el8_4.2, redhat-virtualization-host-0:4.3.21-20220126.0.el7_9, redhat-virtualization-host-0:4.4.10-202202081536_8.5, RHSA-2022:0269, RHSA-2022:0274, RHSA-2022:0270, RHSA-2022:0272, RHSA-2022:0271, RHSA-2022:0273, RHSA-2022:0267, RHSA-2022:0268, RHSA-2022:0265, RHSA-2022:0266, RHSA-2022:0443, RHSA-2022:0540
Official advisory · high-confidence parse· fetched ·verify at source
Key facts
- Vendor rating
- High, CVSS 7.8
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H· base score 7.8, scored by CISA-ADPAttack vector: local. Attack complexity: low. Privileges required: low. User interaction: none. Scope: unchanged. Confidentiality impact: high. Integrity impact: high. Availability impact: high.- Weakness
- CWE-787 (CWE-787|CWE-125)
- EPSS
- 94.9% chance of exploitation in the next 30 days (99th percentile). FIRST EPSS, .
- CISA SSVC
- Exploitation: active. Automatable: no. Technical impact: total. CISA, .
- CISA KEV
- Listed ; federal due date ; ransomware use known to CISA
- Source published
- Source revised
- Listed by VulniPulse
Compiled by VulniPulse from the linked sources. How records are collected and checked.
Affected products & platforms
CVE-2021-4034 in the CISA Known Exploited Vulnerabilities catalog
- CISA name:
- Red Hat Polkit Out-of-Bounds Read and Write Vulnerability
- CISA description:
- The Red Hat polkit pkexec utility contains an out-of-bounds read and write vulnerability that allows for privilege escalation with administrative rights.
- Required action:
- Apply updates per vendor instructions.
Description
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. Red Hat severity: Important — CVSS 7.8 (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
Weakness: CWE-787.
Affected products named by the advisory: Red Hat Enterprise Linux 6 Extended Lifecycle Support; Red Hat Enterprise Linux 7.3 Advanced Update Support; Red Hat Enterprise Linux 7.4 Advanced Update Support; Red Hat Enterprise Linux 7.6 Advanced Update Support; and 11 more.
Text from the source record.
How to fix CVE-2021-4034
Upgrade to a fixed release named by Red Hat:
- polkit-0:0.96-11.el6_10.2
- polkit-0:0.112-26.el7_9.1
- polkit-0:0.112-12.el7_3.1
- polkit-0:0.112-12.el7_4.2
- polkit-0:0.112-18.el7_6.3
- polkit-0:0.112-22.el7_7.2
- polkit-0:0.115-13.el8_5.1
- polkit-0:0.115-9.el8_1.2
- polkit-0:0.115-11.el8_2.2
- polkit-0:0.115-11.el8_4.2
- redhat-virtualization-host-0:4.3.21-20220126.0.el7_9
- redhat-virtualization-host-0:4.4.10-202202081536_8.5
- RHSA-2022:0269
- RHSA-2022:0274
- RHSA-2022:0270
- RHSA-2022:0272
- RHSA-2022:0271
- RHSA-2022:0273
- RHSA-2022:0267
- RHSA-2022:0268
- RHSA-2022:0265
- RHSA-2022:0266
- RHSA-2022:0443
- RHSA-2022:0540
Vendor guidance
- 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.
Support dates for the fixed release lines
- Red Hat Enterprise Linux 10: support ends
- Red Hat Enterprise Linux 9: support ends
- Red Hat Enterprise Linux 4: support ended
- Red Hat Enterprise Linux 6: support ended
- Red Hat Enterprise Linux 7: support ended
- Red Hat Enterprise Linux 5: support ended
- Red Hat Enterprise Linux 8: support ends
CVE-2021-4034 in other vendors' advisories
- Commvault: CV_2022_01_1, high severity
CVE-2021-4034 questions
Is CVE-2021-4034 being exploited?
Yes. CISA lists it in its Known Exploited Vulnerabilities catalog (added ), which means CISA has evidence of attacks in the wild. CISA also reports use in ransomware campaigns.
How do I fix CVE-2021-4034?
Upgrade to a fixed release Red Hat lists for your version: polkit-0:0.96-11.el6_10.2, polkit-0:0.112-26.el7_9.1, polkit-0:0.112-12.el7_3.1, polkit-0:0.112-12.el7_4.2 and 20 more. The advisory's own guidance is above.
How likely is CVE-2021-4034 to be exploited?
FIRST's EPSS model gives it a 94.9% chance of exploitation in the next 30 days (99th percentile among scored CVEs, model date ). It is a forecast, not a report of attacks.
How serious is CVE-2021-4034?
Red Hat rates it high, CVSS 7.8 out of 10.
More Red Hat Linux advisories
CVE-2026-125350Nov 10, 2026Use after free in XMLCVE-2026-114713Nov 8, 2026Command injection via unescaped message tagCVE-2026-90436Nov 6, 2026Remote code execution via insecure deserialization of SOAP fault messagesCVE-2026-123158Nov 5, 2026Password authentication bypass via password hash misinterpretationCVE-2026-115731Nov 3, 2026authenticated remote code execution via report event deserializationCVE-2026-119977Oct 31, 2026Arbitrary code execution via predictable upgrade staging paths
Get an email when Red Hat RHEL & SELinux publishes the next one.
See Red Hat RHEL & SELinux's last 90 days first. Live alerts for one product are free for life; every vendor is US$10 a month with Pro (first month US$5).