Skip to main content
Mallory
HighCISA KEVExploited in the wildPublic exploit

Linux Kernel cgroups v1 release_agent Privilege Escalation / Container Escape

IdentifiersCVE-2022-0492CWE-287· Improper Authentication

CVE-2022-0492 is an improper authentication flaw in the Linux kernel’s cgroups v1 subsystem, specifically in cgroup_release_agent_write() in kernel/cgroup/cgroup-v1.c. The bug stems from insufficient privilege validation when writing to the cgroups v1 release_agent interface. Under certain conditions, an attacker can configure notify_on_release and set a release_agent program path so that the kernel executes attacker-controlled commands when the last process in a cgroup exits. In containerized environments, this can be abused to bypass namespace isolation, escalate privileges, and escape from a container to the underlying host.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can allow a local attacker, including one operating from within a container, to bypass container isolation and obtain code execution on the host with elevated privileges, potentially root. This can lead to full container escape, arbitrary command execution on the host, access to sensitive host data, modification of host state, lateral movement from the node, and possible service disruption or denial of service.

Mitigation

If you can’t patch tonight, do this now.

Reduce exploitability by disabling or avoiding use of cgroups v1 release_agent functionality where operationally possible, and by hardening container deployments so containers do not have the privileges needed to manipulate cgroup settings. Do not run containers as privileged, drop unnecessary capabilities—especially CAP_SYS_ADMIN—avoid writable mounts of /sys, /proc, or host cgroup filesystems, and enforce restrictive seccomp/AppArmor/SELinux and Kubernetes securityContext controls. Limit local and administrative access to affected systems and restrict management-plane exposure to trusted users and networks.

Remediation

Patch, then assume compromise.

Apply vendor-supplied kernel updates that include the fix for CVE-2022-0492. The provided content indicates fixed versions include Linux kernel 4.9.301+, 4.14.266+, 4.19.229+, 5.4.177+, 5.10.97+, 5.15.20+, 5.16.6+, and 5.17-rc3+, with affected ranges described as 2.6 through 4.20 and 5.5 through 5.17. Where a platform vendor backports fixes, use the vendor-maintained patched kernel rather than upstream version comparison alone. Migrate away from cgroups v1 where feasible and ensure container hosts are fully updated.
PUBLIC EXPLOITS

Exploits

2 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (4 hidden).

VALID 2 / 6 TOTALView more in app
CVE-2022-0492MaturityPoCVerified exploit

This repository provides a working exploit for CVE-2022-0492, a Linux kernel vulnerability in the cgroup release_agent mechanism that allows container escape. The exploit is implemented as a Bash script (exp.sh) that automates the process of mounting a cgroup subsystem, setting up a malicious release_agent, and triggering it to execute arbitrary commands on the host system. The README.md provides a detailed technical analysis of the vulnerability, exploitation prerequisites, and mitigation strategies. The exploit requires root privileges inside a vulnerable container and leverages the lack of proper security hardening (e.g., seccomp, apparmor, selinux) to escape to the host. The script creates several files and directories (such as /tmp/testcgroup, /cmd, and /result) and interacts with system files like /etc/mtab and /proc to determine the host path and capabilities. The repository is operational and can be used to achieve container escape on affected systems.

chenaotianDisclosed Mar 11, 2022bashlocal
CVE-2022-0492-Docker-Breakout-Checker-and-PoCMaturityPoCVerified exploit

This repository provides a Bash script (CVE-2022-0492.sh) that serves as both a checker and a proof-of-concept exploit for CVE-2022-0492, a Linux kernel vulnerability affecting cgroups v1. The script can be run inside a Docker container to determine if the environment is vulnerable, and if so, to exploit the vulnerability and escape the container, executing arbitrary commands as root on the host. The exploit leverages the cgroup release_agent mechanism to run attacker-supplied code on the host. The script supports two main modes: a checker mode (to test for vulnerability) and a command mode (to execute arbitrary commands on the host). The README provides background on the vulnerability, usage instructions, and example payloads (such as reverse shells). The only code file is the Bash script; the other files are a README and a license. The exploit is operational and can be used to achieve full host compromise from a privileged container on a vulnerable system.

T1ernoDisclosed Feb 18, 2023bashlocal
EXPOSURE SURFACE

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.

VendorProductType
CanonicalUbuntu Linuxapplication
DebianDebian Linuxoperating_system
F5Big-Ipapplication
F5Big-Iq Centralized Managementapplication
F5Traffix Sdcapplication
Fedora ProjectFedoraoperating_system
LinuxLinux Kerneloperating_system
NetAppBootstrap Osoperating_system
NetAppH300ehardware
NetAppH300shardware
NetAppH300s Firmwareoperating_system
NetAppH410chardware
NetAppH410c Firmwareoperating_system
NetAppH410shardware
NetAppH410s Firmwareoperating_system
NetAppH500ehardware
NetAppH500shardware
NetAppH500s Firmwareoperating_system
NetAppH700ehardware
NetAppH700shardware
NetAppH700s Firmwareoperating_system
NetAppHci Compute Nodehardware
NetAppHci Compute Node Firmwareoperating_system
NetAppSolidfire & Hci Management Nodeapplication
NetAppSolidfire, Enterprise Sds & Hci Storage Nodeapplication
Red HatCodeready Linux Builderapplication
Red HatCodeready Linux Builder For Power Little Endianapplication
Red HatEnterprise Linuxoperating_system
Red HatEnterprise Linux Eusoperating_system
Red HatEnterprise Linux For Ibm Z Systemsoperating_system
Red HatEnterprise Linux For Ibm Z Systems Eusoperating_system
Red HatEnterprise Linux For Power Little Endianoperating_system
Red HatEnterprise Linux For Power Little Endian Eusoperating_system
Red HatEnterprise Linux For Real Time For Nfv Tusoperating_system
Red HatEnterprise Linux For Real Time Tusoperating_system
Red HatEnterprise Linux Server Ausoperating_system
Red HatEnterprise Linux Server For Power Little Endian Update Services For Sap Solutionsoperating_system
Red HatEnterprise Linux Server Tusoperating_system
Red HatEnterprise Linux Server Update Services For Sap Solutionsoperating_system
Red HatVirtualization Hostapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures1

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity24

Community discussion across Reddit, Mastodon, and other social sources.