CPP: A lightweight memory page management extension to prevent code pointer leakage
Abstract
Protecting code pointers (e.g., return address, function pointer) from leakage is desirable from a security perspective. Isolation mechanisms have been the favored candidate to protect code pointers. However, these mechanisms result in significant performance overhead as they need to instrument extra instructions for frequent permission switching or bound checking. In this paper, we propose CPP, a novel Code Pointer-only Memory Page Management to restrict attack-critical operations for code pointers by hardware. Our hardware–software co-design allows CPP mark code pointers at page granularity that requires minor hardware modification. CPP checks the legality of their operations in parallel with instruction execution. We implement a prototype system and our evaluation shows CPP can effectively mitigate the code pointer leakage attacks with less than 2.1% performance overhead.
BibTeX
@article{ying2022cpp,
author = {Jiameng Ying and Rui Hou and Lutan Zhao and Fengkai Yuan and Penghui Zhao and Dan Meng},
title = {{CPP: A lightweight memory page management extension to prevent code pointer leakage}},
journal = {Journal of Systems Architecture},
year = {2022},
doi = {10.1016/j.sysarc.2022.102679},
}Ask Althea to put this paper to the test.
Loading related content...