SaVioR: Thwarting Stack-Based Memory Safety Violations by Randomizing Stack Layout
- 4 March 2021
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Dependable and Secure Computing
- Vol. 19 (4) , 2559-2575
Abstract
Stack-based memory corruption vulnerabilities have been exploited, allowing attackers to execute arbitrary code and read/write arbitrary memory. Although several solutions have been proposed to prevent memory errors on the stack, they are either limited to a specific type of attack (either spatial or temporal attacks) or cause significant performance degradation. In this article, we introduce SaVioR, an efficient and comprehensive stack protection mechanism. The key technique involves randomization of the stack layout to reduce its predictability and exploitability. SaVioR isolates an individual object from spatially and temporally adjacent vulnerable objects and randomizes each object's location, which prevents attackers from predicting the stack layout and thus reduces the likelihood of memory errors being exploited. We implemented SaVioR based on the LLVM compiler framework and applied it to the SPEC CPU2006 benchmarks and real-world applications. Our security evaluation showed that SaVioR provides a high degree of randomness in the stack layout and thus reduces the likelihood of successful exploitation of spatial and temporal memory errors on the stack. Our performance evaluation also demonstrated that it incurs a modest performance overhead (14 percent) with the SPEC CPU2006 benchmark suite, which improves performance compared to the state-of-the-art stack protection while achieving a comparable security level.Keywords
Funding Information
- Office of Naval Research (N00014-18-1-2661)
- Institute for Information & Communications Technology Promotion (IITP-2019-0-01343, IITP-2019-0-01570, IITP-2020-0-01840)
- National Research Foundation (NRF-2020R1F1A1058305)
- Chungnam National University
This publication has 28 references indexed in Scilit:
- DynaGuard2015
- Thwarting Memory Disclosure with Efficient Hypervisor-enforced Intra-domain Isolation2015
- ASLR-Guard2015
- StackArmor: Comprehensive Protection from Stack-based Memory Error Vulnerabilities for Binaries2015
- Preventing Brute Force Attacks Against Stack Canary Protection on Networking Servers2013
- Undangle: early detection of dangling pointers in use-after-free and double-free vulnerabilities2012
- Anywhere, any-time binary instrumentation2011
- Exterminator2007
- Building diverse computer systems2002
- RAD: a compile-time solution to buffer overflow attacks2002