Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2022-0492: Linux Kernel cgroups v1 release_agent Privilege Escalation

Published Mar 3, 2022 · Updated 2 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.8High · v3.1
EPSS3.2%89th percentile
CISA KEVYesAdded Jun 2, 2026
In the wildActivePer CISA KEV
Vendors
NetAppRed HatDebian ProjectFedora ProjectLinuxCanonical
IdentifiersCVE-2022-0492CWE-862 · Missing Authorization

CVE-2022-0492 is a missing-authorization vulnerability in the Linux kernel's cgroup_release_agent_write function. The cgroups v1 release_agent functionality fails to verify that a process configuring the release agent possesses the required administrative privileges. Under applicable conditions, a restricted root process can configure an attacker-selected program for execution with elevated host privileges when a cgroup becomes empty and release notification is enabled. Exploitation can bypass namespace isolation and permit container escape.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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 elevate a restricted local or container-root process to host-level root execution, compromising host confidentiality and integrity and potentially disrupting availability. Container isolation can be bypassed, exposing host resources beyond the attacker's original namespace. Exploitation is not limited to containers; restricted processes on the host may also benefit.

Mitigation

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

Enforce appropriate SELinux or AppArmor container policies to block the described container-escape path. OpenShift clusters with their default SELinux policy enabled are protected against that path, but kernel patching remains necessary to address other applicable local exploitation scenarios. Restrict untrusted workloads and users from configuring cgroups v1 release agents. Disabling release notification prevents agent invocation only while an attacker cannot re-enable it. For affected F5 systems, restrict SSH and management access to trusted networks and users, block SSH through self IP addresses, and apply management-interface and packet-filtering controls.

Remediation

Patch, then assume compromise.

Install the Linux kernel security update supplied for the affected distribution or product, and reboot into the patched kernel unless an applicable vendor-supported live patch has been successfully applied. Fedora included the fix in kernel 5.16.6. Examples of fixed Red Hat builds include 4.18.0-305.45.1.el8_4 for RHEL 8.4 EUS and 3.10.0-957.94.1.el7 for affected RHEL 7.6 offerings. Use the update appropriate to the exact product and support stream; these versions are not universal minimums. For affected appliances, install the vendor-designated fixed release. Siemens identifies RUGGEDCOM ROX II V2.17.0 or later as fixed.

Public exploits

Exploits

4 exploits validated by Mallory's analysis. Hidden: 3 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
docker_cgroup_escape.rbThis repository contains a single Metasploit module: 'Docker cgroups Container Escape' (modules/exploits/linux/local/docker_cgroup_escape.rb). The module exploits CVE-2022-0492, a vulnerability in the Linux kernel's cgroup v1 release_agent feature, to escape from a privileged Docker container to the host system with root privileges. The exploit requires a session as root inside the container and targets specific vulnerable kernel versions, primarily on Ubuntu systems. The module mounts a cgroup, manipulates the release_agent, and uploads a payload (either a Meterpreter reverse shell or a bash reverse shell) to the host filesystem, then triggers execution to gain code execution on the host. The code interacts with system files such as /etc/mtab and /tmp, and is designed for operational use within the Metasploit framework. The exploit is weaponized, allowing for customizable payloads and automated cleanup.Disclosed Feb 4, 2022 · Framework: metasploit · ruby · localWeaponizedCVE-2022-0492This 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.chenaotian · Disclosed Mar 11, 2022 · bash · localOperationalCVE-2022-0492-Docker-Breakout-Checker-and-PoCThis 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.T1erno · Disclosed Feb 18, 2023 · bash · localOperationalCVE-standThis standalone educational repository contains five files: a top-level Russian-language README, two vulnerability guides, and two shell scripts. The shell sources total two code files and include generated sh and Dockerfile payloads. No exploit framework is present. The CVE-2022-0492 script attempts a genuine cgroups v1 release_agent escape. It accepts a command, checks for container root, probes direct and namespace-assisted access to a writable release_agent, creates a host-visible executable script, and triggers its execution by releasing a child cgroup. Successful exploitation would execute the supplied command as root on the host. Important reliability issues include an uncreated probe mountpoint, dependence on host-path discovery from /etc/mtab, and documentation that references a different filename and an unsupported --checker option. The actual filename ends in CVE-2022-0493.sh, but its mechanism targets CVE-2022-0492, not CVE-2022-0493. The documented invocation with sh is also inconsistent with the script's Bash-specific syntax. The guide's kernel 5.14 cutoff is not a reliable affected-version boundary; patch and backport status matter. The CVE-2024-23652 script is a privileged BuildKit lab demonstration rather than a clean end-to-end vulnerability verifier. It stops buildkitd, recursively deletes /var/lib/buildkit, starts a native-snapshotter daemon, creates /tmp/victim.txt, and builds an Alpine Dockerfile that substitutes a cache-mount parent with a symlink. It checks whether the build deleted the victim, but then explicitly runs host-side sudo rm through the snapshot symlink. Consequently, its final success message can reflect the simulated cleanup rather than exploitation by BuildKit itself. These destructive operations are visible lab actions, not sufficient evidence of a fake exploit, but they can destroy existing BuildKit state. There are no explicit remote target, callback, or exfiltration endpoints in the scripts. Building alpine:3.19 may require image-registry access, but no registry hostname or BuildKit transport endpoint is hardcoded. The repository URL is inferred from the guide's clone example; no git reference or archive byte size was supplied. The listed file sizes sum to 13,613 bytes, which is not an archive-size measurement.hgyc · Disclosed Mar 19, 2026 · bash · sh · container · local · fileOperational
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 Linuxoperating_system
Debian ProjectDebian Linuxoperating_system
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 Nodeoperating_system
NetAppHci Compute Node Firmwareoperating_system
NetAppSolidfire & Hci Management Nodeapplication
NetAppSolidfire, Enterprise Sds & Hci Storage Nodeapplication
Red HatCodeready Linux Builder For Power Little Endianapplication
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 HatRed Hat Codeready Linux Builderapplication
Red HatRed Hat Enterprise Linuxoperating_system
Red HatVirtualization Hostapplication
FAQ

Frequently asked questions

Is CVE-2022-0492 exploited in the wild?
Yes. As of Nov 26, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Jun 2, 2026.
Is there a public exploit for CVE-2022-0492?
Yes. Mallory tracks 4 public exploits or proofs of concept for CVE-2022-0492, the earliest disclosed Feb 4, 2022.
Is there a patch for CVE-2022-0492?
Install the Linux kernel security update supplied for the affected distribution or product, and reboot into the patched kernel unless an applicable vendor-supported live patch has been successfully applied. Fedora included the fix in kernel 5.16.6.
What products are affected by CVE-2022-0492?
Linux Kernel, NetApp Bootstrap Os, Red Hat Codeready Linux Builder For Power Little Endian, Debian Project Debian Linux, Red Hat Enterprise Linux Eus, and at least 32 more.
How severe is CVE-2022-0492?
CVE-2022-0492 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 3.2% (89th percentile) as of Nov 26, 2026.
Activity feed

Recent activity

87 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+39 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

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, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity41Community discussion across Reddit, Mastodon, and other social sources.