CVE-2022-0492
Linux Kernel vulnerability analysis and mitigation

Overview

A vulnerability (CVE-2022-0492) was discovered in the Linux kernel's cgroupreleaseagentwrite function in kernel/cgroup/cgroup-v1.c. The flaw, identified in early 2022, allows attackers to use the cgroups v1 releaseagent feature to escalate privileges and bypass namespace isolation under certain circumstances. The vulnerability affects Linux kernel versions through 5.17-rc2 (NVD, Sysdig Blog).

Technical details

The vulnerability exists in the cgroupreleaseagentwrite function where the releaseagent gets called with all capabilities. When exploited, attackers can mount cgroupfs in new users' namespaces and edit the release_agent file, which allows for privilege escalation. The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (HIGH) with the vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

Successful exploitation of this vulnerability can lead to privilege escalation, allowing attackers to escape container environments and gain root privileges on the host system. The flaw can also be used to bypass namespace isolation, potentially compromising the security boundaries between containers (Sysdig Blog).

Mitigation and workarounds

The vulnerability was patched in Linux kernel version 5.17 rc3 with a fix that requires capabilities to set release_agent. For systems that cannot be immediately patched, ensuring that containers run with SELinux, AppArmor, or Seccomp enabled provides protection against this vulnerability. Additionally, implementing admission control policies can prevent the deployment of containers with disabled security features (Kernel Commit, Sysdig Blog).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management