CVE-2021-4204: Out-of-bounds memory access in Linux kernel eBPF
- Vendors
- Debian ProjectNetAppLinuxRed Hat
CVE-2021-4204 is an out-of-bounds memory-access vulnerability in the Linux kernel's eBPF subsystem caused by improper input validation involving helper register offset checks. A local attacker with the required special privileges can trigger the flaw to crash the system or disclose internal kernel information. Affected kernel security advisories also identify potential privilege escalation.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can compromise kernel information confidentiality or cause a system-wide denial of service through a kernel crash. Potential local privilege escalation is also identified in security advisories, although the specific escalation mechanism and resulting privilege level are not established.
Mitigation
If you can’t patch tonight, do this now.
Until a patched kernel can be installed, restrict local access and limit assignment of the privilege required to interact with the affected eBPF functionality. Reduce exposure to untrusted privileged workloads and enforce least privilege for container and host workloads.
Remediation
Patch, then assume compromise.
Install the distribution-supported kernel update addressing CVE-2021-4204 and reboot into the patched kernel. Applicable fixes include Google COS sys-kernel/lakitu-kernel-5_15 version 17523.0.0 or later; RHEL 8.6 EUS kernel 4.18.0-372.91.1.el8_6 under RHSA-2024:0724; RHEL 8.8 EUS kernel 4.18.0-477.81.1.el8_8 under RHSA-2024:10262; and RHEL 8 real-time kernel 4.18.0-553.rt7.342.el8_10 under RHSA-2024:2950. For TuxCare ELS Linux 5.10, install version 5.10.274-3+tuxcare.els1 and associated updates, accounting for the kernel ABI change when validating external modules.
Exploits
1 exploit validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-4204 exploited in the wild?
- As of Nov 21, 2026, Mallory has no reports of CVE-2021-4204 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2021-4204?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2021-4204, the earliest disclosed Feb 24, 2022.
- Is there a patch for CVE-2021-4204?
- Install the distribution-supported kernel update addressing CVE-2021-4204 and reboot into the patched kernel. Applicable fixes include Google COS sys-kernel/lakitu-kernel-5_15 version 17523.0.0 or later; RHEL 8.6 EUS kernel 4.18.0-372.91.1.el8_6 under RHSA-2024:0724; RHEL 8.8 EUS kernel 4.18.0-477.81.1.el8_8 under RHSA-2024:10262; and RHEL 8 real-time kernel 4.18.0-553.rt7.342.el8_10 under RHSA-2024:2950.
- What products are affected by CVE-2021-4204?
- Linux Kernel, Debian Project Debian Linux, NetApp H300s Firmware, NetApp H410c Firmware, NetApp H410s Firmware, and 3 more.
- How severe is CVE-2021-4204?
- CVE-2021-4204 has a CVSS v3.1 score of 7.1 (High) and an EPSS score of 1.2% (69th percentile) as of Nov 21, 2026.
Recent activity
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.