DangDone: Eliminating Dangling Pointers via Intermediate Pointers
Abstract
Dangling pointers have become an important class of software bugs that can lead to use-after-free and double-free vulnerabilities. So far, only a few approaches have been proposed to protect against dangling pointers, while most of them suffer from high overhead. In this paper, we propose a lightweight approach, named DangDone, to eliminate dangling pointers at compile time. Built upon the root cause of a dangling pointer, i.e., a pointer and its aliases are not nullified but the memory area they point to is deallocated, DangDone realizes the protection by inserting an intermediate pointer between the pointers (i.e., a pointer and its aliases) and the memory area they point to. Hence, nullifying the intermediate pointer will nullify the pointer and its aliases, which mitigates the vulnerabilities caused by dangling pointers. Experimental results have demonstrated that DangDone can protect target programs (i.e., the SPEC CPU benchmarks and the programs with known CVEs) with negligible runtime overhead (i.e., around 1% on average).
BibTeX
@inproceedings{wang2018dangdone,
author = {Yu Wang and Fengjuan Gao and Lingyun Situ and Lingzhang Wang and Bihuan Chen and Yang Liu and Jianhua Zhao and Xuandong Li},
title = {{DangDone: Eliminating Dangling Pointers via Intermediate Pointers}},
booktitle = {Internetware},
year = {2018},
doi = {10.1145/3275219.3275231},
}Ask Althea to put this paper to the test.
Loading related content...