Historic Kernel Flaws: Three Major Container Escape CVEs

Several critical Linux kernel vulnerabilities have enabled container escapes, exploiting the shared kernel architecture. Notable examples include Dirty COW (CVE-2016-5195), Dirty Pipe (CVE-2022-0847), and the runc 'Leaky Vessels' vulnerability (CVE-2024-21626), which allowed attackers to modify host files or access arbitrary host paths.

The top 3

  1. Top Container Escape: The runC Vulnerability (CVE-2019-5736): This critical flaw allowed a malicious container to overwrite the host's runC binary, granting root-level code execution on the host system. It impacted Docker, Kubernetes, containerd, and CRI-O, necessitating immediate upgrades to runc versions 1.0-rc6.2 or later.
  2. Dirty COW (CVE-2016-5195): Kernel's Race Condition Threat: This Linux kernel race condition allowed local users to gain privileges by writing to read-only memory mappings, making it exploitable from within containers to modify host files and achieve container escape. It affected Linux kernels 2.x through 4.x before 4.8.3.
  3. Stack Clash (CVE-2017-1000364): Memory Management Privilege Escalation: The 'Stack Clash' vulnerability, primarily CVE-2017-1000364, exposed a flaw in how several UNIX-like operating systems, including Linux, managed memory. Attackers could exploit the collision between the stack and other memory regions to corrupt memory and execute arbitrary code, leading to privilege escalation and container escapes.

Sources

Open the full topic