If you run containers on older kernels, this one’s about how well your container walls hold up.
At a glance
- CVE: CVE-2022-0492
- Severity: 7.8 (High) on NVD. Red Hat rates it Important and scores it 7.0. It’s local: an attacker needs to be running code first, typically as root inside a container.
- Affected: Linux from 2.6.24 up to (but not including) 4.9.301, 4.14.266, 4.19.229, 5.4.177, 5.10.97, 5.15.20 and 5.16.6, plus early 5.17. Ubuntu 22.04 and newer and RHEL 9 aren’t affected.
- Known exploited: Yes. CISA added it to its Known Exploited Vulnerabilities (KEV) catalog on 2026-06-02, more than four years after disclosure, and gave US federal agencies just three days to deal with it.
What’s going on
Linux cgroups (control groups) are how the kernel limits and tracks resources for groups of processes. They’re one of the building blocks of Docker and Kubernetes. The older cgroups v1 has a feature called release_agent: a program the kernel runs, with full root privileges, when a cgroup empties out.
The kernel didn’t check that whoever set release_agent actually had admin rights on the host. So a process that could write that file could get the kernel to run any program it liked, as root, outside the container. The fix is a one-liner in spirit: setting release_agent now requires CAP_SYS_ADMIN in the host’s own user namespace.
Palo Alto’s Unit 42 looked at what that means for containers. By their analysis, a container can only escape if all of these are true: it runs as root (or without the no_new_privs flag), it has no AppArmor or SELinux, it has no seccomp, the host allows unprivileged user namespaces, and it sits in a root v1 cgroup. The default hardening in most container setups is enough to stop it, and seccomp in particular blocks the unshare() call the attack needs. Red Hat says SELinux in enforcing mode blocks it on OpenShift.
So who’s actually at risk? Hosts on older kernels running containers with their security profiles switched off (seccomp disabled, no AppArmor or SELinux), which is common in “just make it work” setups. There, a compromised web app inside the container could take over the host.
Timeline
- Fixed upstream: 2022-02-01 (commit 24f600856418)
- Disclosed: 2022-02-04 (oss-security)
- Published to NVD: 2022-03-03
- Distro patches: Debian shipped DSA-5095-1 and DSA-5096-1; Red Hat shipped RHEL 8 updates on 2022-03-10 and RHEL 7 on 2022-05-18
- Added to CISA KEV: 2026-06-02
== UPDATE ==
The fix has been available since early 2022.
- Patch available: Yep.
- Fixed in: upstream 4.9.301, 4.14.266, 4.19.229, 5.4.177, 5.10.97, 5.15.20, 5.16.6 and later. Distro examples: Ubuntu 20.04 kernel 5.4.0-105.119, Ubuntu 18.04 4.15.0-173.182, Debian 11 “bullseye” 5.10.103-1 (DSA-5095-1), Debian 10 “buster” 4.19.232-1 (DSA-5096-1), RHEL 8 4.18.0-348.20.1.el8_5 and RHEL 7 3.10.0-1160.66.1.el7. Ubuntu’s tracker still lists 14.04 as vulnerable. Check your distro’s tracker (linked below) for your release.
- How to apply: update the kernel and reboot:
sudo apt update && sudo apt upgradeon Debian/Ubuntu,sudo dnf upgrade --refreshon RHEL 8 and friends, orsudo yum update kernelon RHEL/CentOS 7. Checkuname -rafterwards. On Kubernetes, drain and reboot your nodes one at a time. - If you can’t patch yet: Red Hat says there’s no mitigation that meets its bar. Unit 42’s advice is to keep your container defenses on: run containers with seccomp enabled, keep AppArmor or SELinux enforcing, and avoid running container processes as root.
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-0492
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-0492
- https://www.openwall.com/lists/oss-security/2022/02/04/1
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=24f6008564183aa120d07c03d9289519c2fe02af
- https://unit42.paloaltonetworks.com/cve-2022-0492-cgroups/
- https://access.redhat.com/security/cve/CVE-2022-0492
- https://ubuntu.com/security/CVE-2022-0492
- https://security-tracker.debian.org/tracker/CVE-2022-0492