CVE-2021-4197: Local Privilege Escalation in Linux Kernel cgroup Migration Permission Checks
- Vendors
- VMwareOracle CorporationDebian ProjectNetAppLinux
CVE-2021-4197 is an authorization flaw in the Linux kernel's cgroup migration permission checks affecting both cgroup v1 and v2. The checks fail to use the credentials and namespace associated with opening a cgroup file descriptor. A less-privileged process can exploit a more-privileged process writing to a descriptor created by the less-privileged process, potentially enabling local privilege escalation or a system crash. The issue affects containers and other processes using cgroups in this manner.
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.
A local attacker may cross privilege boundaries through improperly authorized cgroup migration operations, resulting in elevated privileges or denial of service through a system crash. Containerized workloads may be affected where the required interaction with a more-privileged process exists; universal container escape is not established.
Mitigation
If you can’t patch tonight, do this now.
Until patched, prevent privileged services from accepting or writing through file descriptors supplied by less-privileged processes, particularly for cgroup management operations. Restrict cgroup-management delegation and access to privileged cgroup controllers, minimize privilege separation boundaries that rely on descriptor passing, and apply least-privilege controls to processes capable of migrating tasks between cgroups.
Remediation
Patch, then assume compromise.
Install a vendor-supported kernel update containing the fix that uses open-time credentials and namespace information for cgroup migration permission checks, then reboot into the updated kernel. The upstream fix first appeared in Linux 5.17-rc1. For applicable RHEL 8.4 Extended Update Support systems, fixed packages include kernel 4.18.0-305.57.1.el8_4 under RHSA-2022:5626 and kernel-rt 4.18.0-305.57.1.rt7.129.el8_4 under RHSA-2022:5633. Use the applicable fixed package or a later supported update for the deployed distribution.
Exploits
No public exploits tracked yet. Mallory keeps watching.
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-4197 exploited in the wild?
- As of Oct 25, 2026, Mallory has no reports of CVE-2021-4197 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2021-4197?
- As of Oct 25, 2026, Mallory has found no public exploit for CVE-2021-4197.
- Is there a patch for CVE-2021-4197?
- Install a vendor-supported kernel update containing the fix that uses open-time credentials and namespace information for cgroup migration permission checks, then reboot into the updated kernel. The upstream fix first appeared in Linux 5.17-rc1.
- What products are affected by CVE-2021-4197?
- Linux Kernel, VMware Brocade Fabric Operating System Firmware, Oracle Corporation Communications Cloud Native Core Binding Support Function, Debian Project Debian Linux, NetApp H300s Firmware, and 4 more.
- How severe is CVE-2021-4197?
- CVE-2021-4197 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.54% (39th percentile) as of Oct 25, 2026.
Recent activity
15 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.