Skip to navigation

Threat reportVulnerabilityTL-2026-0662

Linux Kernel cgroups v1 release_agent Container Escape & Privilege Escalation (CVE-2022-0492) — Added to CISA KEV (Active Exploitation)

criticalACTIVE

CVE-2022-0492 is an improper-authorization flaw in the Linux kernel's cgroup_release_agent_write function (kernel/cgroup/cgroup-v1.c) that lets an attacker abuse the cgroups v1 release_agent feature to execute arbitrary code as root in the initial namespace, enabling container escape and local privilege escalation. CISA added it to the Known Exploited Vulnerabilities Catalog on 2026-06-02 citing evidence of active exploitation; FCEB agencies must remediate under BOD 22-01.

Key facts

IdentifiersTL-2026-0662, CVE-2022-0492
Also known ascgroups release_agent container escape, release_agent privilege escalation
SeverityCRITICAL
CVSS7.8 (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
Exploitation statusLinked CVE exploited in the wild; Listed in CISA KEV: CVE-2022-0492 (added )
EPSSCVE-2022-0492: 5.5% (92.6th percentile)
Affected productsLinux Linux Kernel; Red Hat Red Hat Enterprise Linux; Canonical Ubuntu; Debian Debian GNU/Linux
Weaknesses (CWE)CWE-287, CWE-862
MITRE ATT&CK techniquesT1021 Remote Services, T1059.004 Command and Scripting Interpreter: Unix Shell, T1068 Exploitation for Privilege Escalation, T1082 System Information Discovery, T1190 Exploit Public-Facing Application, T1211 Exploitation for Stealth, T1222 File and Directory Permissions Modification, T1543 Create or Modify System Process, T1548 Abuse Elevation Control Mechanism, T1552.001 Unsecured Credentials: Credentials In Files, T1609 Container Administration Command, T1611 Escape to Host and 1 more in the attack flow
MotivationUNKNOWN
Target sectorstechnology, cloud-service-providers, financial, government, healthcare, telecommunications
Target regionsGlobal
Detection rules9 (1 shown free)
Sources8 cited sources

Detection coverage

As of 2026-06-02, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-0662 across Splunk SPL, Microsoft KQL and Sigma, covering 13 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: release_agent Write + notify_on_release Arm + cgroup.procs Drain (Post-Exploitation)

Detects the core CVE-2022-0492 privilege-escalation primitive in auditd: a write of an executable path into a file ending '/release_agent' that is NOT under the read-only /sys/fs/cgroup tree, correlated with notify_on_release arming and a cgroup.procs drain within a 2-minute window. The release_agent write is required to alert; the additional IOCs raise confidence that the kernel callback was armed and fired.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1611, T1068, T1543, T1548
  • Data sources: auditd, sysmon_for_linux, microsoft_defender_for_endpoint
  • Severity: critical
  • Confidence: high

Splunk SPL

index=linux sourcetype="linux:audit" (type=PATH OR type=SYSCALL OR type=EXECVE)
``` CVE-2022-0492 priv-esc primitive: write of an executable path into release_agent (outside read-only /sys/fs/cgroup), notify_on_release arming, and cgroup.procs drain that fires the kernel callback as root ```
| eval fname=coalesce(name, 'name')
| eval args=mvjoin(mvappend(a0,a1,a2,a3,a4),"  ")
| eval is_release_agent_write=if(match(fname,"/release_agent$") AND (nametype="NORMAL" OR nametype="CREATE") AND NOT match(fname,"^/sys/fs/cgroup/"),1,0)
| eval is_notify=if(match(fname,"/notify_on_release$") OR match(args,"notify_on_release"),1,0)
| eval is_procs_drain=if(match(fname,"/cgroup\.procs$"),1,0)
| where is_release_agent_write=1 OR is_notify=1 OR is_procs_drain=1
| eval ioc=case(is_release_agent_write=1,"release_agent_write", is_notify=1,"notify_on_release_arm", is_procs_drain=1,"cgroup_procs_drain")
| bin _time span=120s
| stats values(ioc) as iocs values(fname) as files values(exe) as exe dc(ioc) as ioc_types min(_time) as first_seen max(_time) as last_seen by host, _time
| search iocs="release_agent_write"
| sort - last_seen

Microsoft KQL

// CVE-2022-0492 priv-esc: write into release_agent + notify_on_release arm + cgroup.procs drain
let releaseWrites = DeviceFileEvents
    | where Timestamp > ago(24h)
    | where ActionType in ("FileCreated","FileModified")
    | where FileName == "release_agent"
    | where FolderPath !startswith "/sys/fs/cgroup/"
    | project Timestamp, DeviceName, IoC="release_agent_write", Detail=FolderPath,
              InitiatingProcessAccountName, InitiatingProcessCommandLine, InitiatingProcessFileName, InitiatingProcessId;
let notifyArm = DeviceProcessEvents
    | where Timestamp > ago(24h)
    | where ProcessCommandLine has_any ("notify_on_release","cgroup.procs")
    | project Timestamp, DeviceName,
              IoC=iff(ProcessCommandLine has "notify_on_release","notify_on_release_arm","cgroup_procs_drain"),
              Detail=ProcessCommandLine,
              InitiatingProcessAccountName, InitiatingProcessCommandLine, InitiatingProcessFileName, InitiatingProcessId;
union releaseWrites, notifyArm
| summarize IoCs=make_set(IoC), Details=make_set(Detail), FirstSeen=min(Timestamp), LastSeen=max(Timestamp)
        by DeviceName, bin(Timestamp, 2m)
| where IoCs has "release_agent_write"
| order by LastSeen asc

Sigma

title: CVE-2022-0492 release_agent Write and notify_on_release Arming (cgroups Escape Priv-Esc)
id: 8c4b2d31-0492-4a92-b002-cve20220492a2
status: experimental
description: Detects the core CVE-2022-0492 privilege-escalation primitive - writing an executable path into a file named release_agent that is NOT under the read-only /sys/fs/cgroup tree. On a vulnerable kernel this causes the kernel to execute attacker-controlled code as root in the initial namespace when the target cgroup drains.
references:
    - https://unit42.paloaltonetworks.com/cve-2022-0492-cgroups/
    - http://packetstormsecurity.com/files/176099/Docker-cgroups-Container-Escape.html
author: Threadlinqs Team
date: 2026/06/02
tags:
    - attack.privilege_escalation
    - attack.t1611
    - attack.t1068
    - attack.persistence
    - attack.t1543
    - cve.2022.0492
logsource:
    product: linux
    category: file_event
detection:
    selection:
        TargetFilename|endswith: '/release_agent'
    filter_legit_ro:
        TargetFilename|startswith: '/sys/fs/cgroup/'
    condition: selection and not filter_legit_ro
falsepositives:
    - Container runtime initialisation legitimately configuring release_agent on cgroup v1 hosts (rare; typically writes under /sys/fs/cgroup which is excluded)
level: critical

Known false positives:

  • Container runtime initialisation writing release_agent under /sys/fs/cgroup (excluded by the path filter)

Tuning notes: Ensure an auditd watch covers cgroup writes broadly, e.g. '-a always,exit -F arch=b64 -S openat -F dir=/ -F perm=wa' is too broad; instead add '-w <mount-root> -p wa' or a syscall rule keyed on release_agent. Exclude legitimate runtime initiator exe paths. Treat any release_agent write outside /sys/fs/cgroup as critical.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account)
  • cgroups [indicator] Exploit Setup - Namespace + cgroup Mount via Defender (Exploitation) · unlock with TL Creds
  • [indicator] Write + notify_on_release Arm via Defender (Post-Exploitation) · unlock with TL Creds
  • Post-Escape Host-Path Discovery + Lateral Movement via Defender (C2/Lateral Movement) · unlock with TL Creds
  • cgroups [indicator] Exploit Setup - unshare + cgroup v1 Mount (Exploitation) · unlock with TL Creds
  • [indicator] File Write Outside /sys/fs/cgroup (Post-Exploitation) · unlock with TL Creds
  • Post-Escape Host-Path Discovery / [indicator] Root Execution (C2/Lateral Movement) · unlock with TL Creds
  • cgroups [indicator] Exploit Setup - unshare Namespace + cgroup v1 Mount (Exploitation) · unlock with TL Creds
  • Post-Escape Root Process + Lateral Movement (C2/Lateral Movement) · unlock with TL Creds

Indicators of compromise

As of 2026-06-02, Threadlinqs Intelligence tracks 13 indicators of compromise for TL-2026-0662.

13 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

CVE-2022-0492 is a privilege-escalation and container-escape vulnerability in the Linux kernel's cgroups (control groups) version 1 subsystem. The flaw resides in cgroup_release_agent_write() in kernel/cgroup/cgroup-v1.c, which handles writes to the per-cgroup 'release_agent' file. The release_agent feature instructs the kernel to execute a specified binary — as full root in the initial (host) namespace — whenever the last task leaves a cgroup that has notify_on_release=1. Before the fix, the write handler failed to verify that the writing process held the appropriate capability (CAP_SYS_ADMIN) over the initial user namespace that owns the cgroup filesystem. The kernel only confirmed the caller was 'capable' in some namespace, not that it was authorized over the resource being modified. This is classed as CWE-287 (Improper Authentication) and CWE-862 (Missing Authorization).

Because an unprivileged user on most modern Linux distributions can create a new user namespace via unshare(CLONE_NEWUSER) and obtain CAP_SYS_ADMIN inside it, then mount a cgroup v1 hierarchy (e.g. the RDMA controller) within a new mount+cgroup namespace, the attacker can write an arbitrary path into release_agent and force the kernel to run it as root on the host. There are two principal exploitation scenarios. (1) Bare-host local privilege escalation: an unprivileged user escalates to root by chaining unshare -UrmC, mounting cgroupfs, writing a payload path to release_agent, setting notify_on_release, and triggering cgroup release. (2) Container escape: a container process that holds CAP_SYS_ADMIN (or can acquire it via user-namespace creation) and is not confined by an enforcing AppArmor or SELinux policy can break out to the host by the same release_agent mechanism, resolving the host-side path of its overlay/upperdir from /etc/mtab or /proc/self/cgroup so the dropped script is reachable from the root mount namespace.

The exploitation primitive is the long-known 'privileged container' release_agent escape, but CVE-2022-0492 broadened the exposure: the missing authorization check meant the technique was reachable in configurations previously believed safe, and reliably from an unprivileged user-namespace context. Public proof-of-concept code is widely available and the technique is trivially weaponized (a few shell commands), which is consistent with CISA's active-exploitation determination. Post-escape, an attacker operating as host root can read host secrets and mounted volumes, establish persistence, deploy additional containers, and move laterally across the cluster or host fleet.

Critical mitigating factors: an enforcing AppArmor profile (e.g. Docker's default docker-default profile, which denies writes to release_agent) or SELinux in enforcing mode blocks the write or the subsequent execution; dropping CAP_SYS_ADMIN from containers removes the primary path; and seccomp policies that block the unshare/mount syscalls neutralize the unprivileged-user variant. The upstream fix (commit 24f6008564183aa120d07c03d9289519c2fe02af, 'cgroup-v1: Require capabilities to set release_agent') adds an ns_capable() check requiring CAP_SYS_ADMIN over the user namespace that owns the cgroup filesystem, plus a check that the opener of the file is privileged. The flaw was reported by Yiqi Sun and Kevin Wang and analyzed in depth by Palo Alto Networks Unit 42. Fixed in Linux 5.17 and backported to stable trees (5.16.5, 5.15.19, 5.10.96, 5.4.176, 4.19.228, 4.14.265, 4.9.300) and to enterprise kernels by Red Hat, SUSE, Ubuntu, and Debian.

MITRE ATT&CK techniques by tactic:

Lateral Movement

T1021 Remote Services

Execution

T1059.004 Command and Scripting Interpreter: Unix Shell; T1609 Container Administration Command

Privilege Escalation

T1068 Exploitation for Privilege Escalation; T1548 Abuse Elevation Control Mechanism; T1611 Escape to Host

Discovery

T1082 System Information Discovery; T1613 Container and Resource Discovery

Initial Access

T1190 Exploit Public-Facing Application

Defense Evasion

T1211 Exploitation for Stealth

defense-impairment

T1222 File and Directory Permissions Modification

Persistence

T1543 Create or Modify System Process

Credential Access

T1552.001 Unsecured Credentials: Credentials In Files

Remediation

Patches

  • Linux kernel 5.17 (mainline fix)
  • Stable backports: 5.16.5, 5.15.19, 5.10.96, 5.4.176, 4.19.228, 4.14.265, 4.9.300
  • Red Hat RHSA kernel updates (RHEL 7/8/9); Ubuntu USN; Debian DSA-5095 / DSA-5096; SUSE SUSE-SU updates

Immediate actions

  • Apply the kernel update containing commit 24f6008564183aa120d07c03d9289519c2fe02af (Linux 5.17 or backported stable/enterprise kernels) — FCEB agencies must remediate per CISA BOD 22-01.
  • Drop CAP_SYS_ADMIN from all containers that do not strictly require it (docker run --cap-drop=ALL or remove from securityContext.capabilities).
  • Ensure AppArmor (docker-default) or SELinux is enabled and enforcing on all container hosts — both block the release_agent write/exec path.

Workarounds

  • Run containers unprivileged and without CAP_SYS_ADMIN.
  • Keep AppArmor/SELinux in enforcing mode (do not run containers with --security-opt apparmor=unconfined or --privileged).
  • Set kernel.unprivileged_userns_clone=0 to block the unprivileged-user variant.

Longer-term hardening

  • Migrate hosts to cgroups v2 (unified hierarchy), which removes the release_agent mechanism entirely.
  • Enforce a restrictive seccomp profile that blocks unshare/mount/clone with namespace flags for workloads that do not need them.
  • Disable unprivileged user namespaces where not required: sysctl kernel.unprivileged_userns_clone=0 (Debian/Ubuntu) or user.max_user_namespaces=0.
  • Adopt admission-control policy (e.g. Kubernetes Pod Security Standards 'restricted', OPA/Gatekeeper, Kyverno) to forbid privileged pods and CAP_SYS_ADMIN.

Affected and fixed versions

  • Linux — Linux Kernel
    Vulnerable versions: < 5.17 (cgroups v1 with release_agent)
    Fixed in: 5.17; 5.16.5; 5.15.19; 5.10.96; 5.4.176; 4.19.228; 4.14.265; 4.9.300
  • Red Hat — Red Hat Enterprise Linux
    Vulnerable versions: RHEL 7; RHEL 8; RHEL 9
    Fixed in: See RHSA kernel errata
  • Canonical — Ubuntu
    Vulnerable versions: 18.04 LTS; 20.04 LTS; 21.10
    Fixed in: Patched via USN kernel updates
  • Debian — Debian GNU/Linux
    Vulnerable versions: 10 (buster); 11 (bullseye)
    Fixed in: DSA-5095; DSA-5096

Timeline

  • Upstream fix authored: commit 24f6008564183aa120d07c03d9289519c2fe02af 'cgroup-v1: Require capabilities to set release_agent', adding an ns_capable(CAP_SYS_ADMIN) check over the owning user namespace.
  • Vulnerability reported by Yiqi Sun and Kevin Wang; Red Hat Bugzilla #2051505 created for triage and backporting.
  • Coordinated public disclosure. NVD publishes CVE-2022-0492 (CVSS 7.8). Palo Alto Networks Unit 42 publishes detailed technical analysis and container-escape conditions.
  • Distribution advisories released — Debian DSA-5095 / DSA-5096, Ubuntu USN kernel updates, Red Hat RHSA errata, and SUSE updates ship backported fixes.
  • Public Docker cgroups container-escape PoC referenced on Packet Storm, lowering the bar for weaponization.
  • FCEB remediation mandated under Binding Operational Directive 22-01 following the KEV addition.
  • CISA adds CVE-2022-0492 to the Known Exploited Vulnerabilities Catalog based on evidence of active exploitation.

Sources cited

Previous and next in vulnerability

Drafted by the Threadlinqs research pipeline from 8 sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats