CVE-2021-4154: Use-after-free in Linux kernel cgroup v1 parser
- Vendors
- Red HatNetAppLinux
CVE-2021-4154 is a use-after-free vulnerability in the Linux kernel's cgroup v1 parser, specifically in cgroup1_parse_param(). A local attacker with user-level privileges can exploit fsconfig syscall parameter handling to escalate privileges, escape a container, or cause a host denial of service.
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 host security through local privilege escalation and container breakout. Exploitation can also cause denial of service on the host system. The vulnerability affects the shared host kernel, so its consequences are not necessarily confined to the originating container.
Mitigation
If you can’t patch tonight, do this now.
Until patched, reduce exposure by preventing untrusted local users or container tenants from accessing vulnerable hosts and by avoiding cgroup v1 where operationally feasible. Restricting the ability to invoke relevant filesystem-configuration operations can further reduce exposure, but patching is the definitive mitigation.
Remediation
Patch, then assume compromise.
Install the applicable vendor kernel update containing the fix and reboot into the updated kernel. Fixed RHEL packages include kernel 4.18.0-305.34.2.el8_4 under RHSA-2022:0186 and kernel 4.18.0-348.20.1.el8_5 under RHSA-2022:0825. Corresponding real-time kernel fixes are available under RHSA-2022:0187 and RHSA-2022:0819. Supported RHEL deployments can alternatively apply the matching kpatch live update under RHSA-2022:0231 or RHSA-2022:0849 without a conventional reboot. For affected Android devices, install a vendor update with security patch level 2022-06-05 or later.
Exploits
2 exploits 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-4154 exploited in the wild?
- As of Oct 25, 2026, Mallory has no reports of CVE-2021-4154 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2021-4154?
- Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2021-4154, the earliest disclosed Aug 11, 2022.
- Is there a patch for CVE-2021-4154?
- Install the applicable vendor kernel update containing the fix and reboot into the updated kernel. Fixed RHEL packages include kernel 4.18.0-305.34.2.el8_4 under RHSA-2022:0186 and kernel 4.18.0-348.20.1.el8_5 under RHSA-2022:0825.
- What products are affected by CVE-2021-4154?
- Linux Kernel, Red Hat Enterprise Virtualization, NetApp Hci Baseboard Management Controller, and Red Hat Enterprise Linux.
- How severe is CVE-2021-4154?
- CVE-2021-4154 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 1.2% (69th percentile) as of Oct 25, 2026.
Recent activity
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.