Demons in the Shared Kernel
Authors:
Open Access
- 12 November 2021
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 764-778
Abstract
Due to its faster start-up speed and better resource utilization efficiency, OS-level virtualization has been widely adopted and has become a fundamental technology in cloud computing. Compared to hardware virtualization, OS-level virtualization leverages the shared-kernel design to achieve high efficiency and runs multiple user-space instances (a.k.a., containers) on the shared kernel. However, in this paper, we reveal a new attack surface that is intrinsic to OS-level virtualization, affecting Linux, FreeBSD, and Fuchsia. The root cause is that the shared-kernel design in OS-level virtualization results containers in sharing thousands of kernel variables and data structures directly and indirectly. Without exploiting any kernel vulnerabilities, a non-privileged container can easily exhaust the shared kernel variables and data structure instances to cause DoS attacks against other containers. Compared with the physical resources, these kernel variables or data structure instances (termed abstract resources) are more prevalent but under-protected. To show the importance of confining abstract resources, we conduct abstract resource attacks that target different aspects of the OS kernel. The results show that attacking abstract resources is highly practical and critical. We further conduct a systematic analysis to identify vulnerable abstract resources in the Linux kernel, which successfully detects 1,010 abstract resources and 501 of them can be repeatedly consumed dynamically. We also conduct the attacking experiments in the self-deployed shared-kernel container environments on the top 4 cloud vendors. The results show that all environments are vulnerable to abstract resource attacks. We conclude that containing abstract resources is hard and give out multiple strategies for mitigating the risks.Keywords
This publication has 15 references indexed in Scilit:
- A Measurement Study on Linux Container Security2018
- A Study on the Security Implications of Information Leakages in Container CloudsIEEE Transactions on Dependable and Secure Computing, 2018
- An Empirical Study of Docker Vulnerabilities and of Static Code Analysis Applicability2018
- A Comparative Study of Containers and Virtual Machines in Big Data Environment2018
- Precise and Scalable Detection of Double-Fetch Bugs in OS Kernels2018
- SPEAKER: Split-Phase Execution of Application Containers2017
- ContainerLeaks: Emerging Security Threats of Information Leakages in Container Clouds2017
- To Docker or Not to Docker: A Security PerspectiveIEEE Cloud Computing, 2016
- Performance comparison between Linux containers and virtual machines2015
- An updated performance comparison of virtual machines and Linux containers2015