Toward Linux kernel memory safety
Open Access
- 19 September 2018
- journal article
- research article
- Published by Wiley in Software: Practice and Experience
- Vol. 48 (12) , 2237-2256
Abstract
Summary: The security of billions of devices worldwide depends on the security and robustness of the mainline Linux kernel. However, the increasing number of kernel‐specific vulnerabilities, especially memory safety vulnerabilities, shows that the kernel is a popular and practically exploitable target. Two major causes of memory safety vulnerabilities are reference counter overflows (temporal memory errors) and lack of pointer bounds checking (spatial memory errors). To succeed in practice, security mechanisms for critical systems like the Linux kernel must also consider performance and deployability as critical design objectives. We present and systematically analyze two such mechanisms for improving memory safety in the Linux kernel, ie, (1) an overflow‐resistant reference counter data structure designed to securely accommodate typical reference counter usage in kernel source code and (2) runtime pointer bounds checking using Intel memory protection extension in the kernel. We have implemented both mechanisms and we analyze their security, performance, and deployability. We also reflect on our experience of engaging with Linux kernel developers and successfully integrating the new reference counter data structure into the mainline Linux kernel.Keywords
All Related Versions
Funding Information
- Intel Collaborative Research Institute for Secure Computing at Aalto University
- Cloud Security Services (CloSer) project, funded by Tekes/Business Finland (3881/31/2016)
This publication has 15 references indexed in Scilit:
- SGXBOUNDS2017
- Low-fat pointers2013
- Linux kernel vulnerabilities2011
- SoftBound2009
- HardboundACM SIGARCH Computer Architecture News, 2008
- Valgrind2007
- Backwards-compatible array bounds checking for C with very low overhead2006
- An efficient and backwards-compatible transformation to ensure memory safety of C programsACM SIGSOFT Software Engineering Notes, 2004
- Low-cost, Concurrent Checking of Pointer and Array Accesses in C ProgramsSoftware: Practice and Experience, 1997
- A method for overlapping and erasure of listsCommunications of the ACM, 1960