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 vulnerability in the Linux kernel’s cgroups v1 subsystem, specifically in the cgroup_release_agent_write() function in kernel/cgroup/cgroup-v1.c. The flaw stems from insufficient privilege validation when writing to the cgroups v1 release_agent mechanism. Under certain circumstances, an attacker can abuse the release_agent feature to configure a program path that the kernel will execute when the last process in a cgroup exits. This can allow a local attacker to bypass namespace isolation, escalate privileges, and in containerized environments escape from a container to execute arbitrary commands on the 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 result in local privilege escalation, bypass of container namespace isolation, container escape, and arbitrary command execution on the host system. In affected containerized deployments, this may allow an attacker who has code execution inside a container to gain root-level execution on the underlying node or host, potentially leading to host compromise, access to sensitive data, modification of system state, lateral movement, or service disruption.

Mitigation

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

Reduce exposure by disabling or avoiding cgroups v1 where feasible and preferring cgroups v2 in container environments. Minimize container privileges, especially avoiding privileged containers and unnecessary capabilities such as CAP_SYS_ADMIN. Restrict write access to cgroup interfaces, harden namespace isolation, and limit local shell or container access to trusted users and workloads only. For embedded/vendor systems, restrict management and SSH access to trusted networks and users until patches can be applied.

Remediation

Patch, then assume compromise.

Apply vendor-supplied Linux kernel updates that include the fix for CVE-2022-0492. The provided content indicates fixed kernel versions include 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+, subject to distribution backports and vendor packaging. Where applicable, upgrade affected appliances or products that embed vulnerable kernels to a fixed supported release. If no fix is available for the deployed branch, upgrade to a supported branch with a fix.
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 Solutionsapplication
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 activity18

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