Efficient Use-After-Free Prevention with Opportunistic Page-Level Sweeping
Abstract
—Defeating use-after-free exploits presents a challenging problem, one for which a universal solution remains elusive. Recent efforts towards efficient prevention of use-after-free exploits have found that delaying the reuse of freed memory can both be effective and efficient in many cases. Previous studies have proposed two primary approaches: one where reuse is postponed until the allocator can confidently ascertain the absence of any dangling pointers to the freed memory, and another that refrains from reusing a freed heap chunk until the program’s termination. We make an intriguing observation from our in-depth analysis of these two approaches and their reported performance impacts. When compared to the design that delays the reuse until the program terminates the strategy that delays the reuse just until no dangling pointer references the freed chunk suffers from a significant performance overhead for some workloads. The change in the reuse of each heap chunk affects the distribution of allocated chunks in the heap, and the performance of some benchmarks. This study proposes H USH V AC , an allocator that performs delayed reuse in such a way that the distribution of heap chunks becomes more friendly to such workloads. An evaluation of H USH V AC showed that the average performance overhead of H USH V AC (4.7%) was lower than that of the state-of-the-art (11.4%) when running the SPEC CPU 2006 benchmark suite. Specifically, the overhead of H USH V AC on the distribution-sensitive benchmark was about 35.2% while the prior work has an overhead of 110%.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
3 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- SeMalloc: Semantics-Informed Memory Allocator cites MarkUs: Drop-in use-after-free prevention for low-level languages
- SeMalloc: Semantics-Informed Memory Allocator cites Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling Pointers
- SeMalloc: Semantics-Informed Memory Allocator cites PTAuth: Temporal Memory Safety via Robust Points-to Authentication
- MarkUs: Drop-in use-after-free prevention for low-level languages cites A Robust and Efficient Defense against Use-after-Free Exploits via Concurrent Pointer Sweeping
- MarkUs: Drop-in use-after-free prevention for low-level languages cites Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling Pointers
- MarkUs: Drop-in use-after-free prevention for low-level languages cites FreeGuard: A Faster Secure Heap Allocator
- PICASSO: Scaling CHERI Use-After-Free Protection to Millions of Allocations using Colored Capabilities cites A Robust and Efficient Defense against Use-after-Free Exploits via Concurrent Pointer Sweeping
- PICASSO: Scaling CHERI Use-After-Free Protection to Millions of Allocations using Colored Capabilities cites MarkUs: Drop-in use-after-free prevention for low-level languages
- PICASSO: Scaling CHERI Use-After-Free Protection to Millions of Allocations using Colored Capabilities cites Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling Pointers
- PICASSO: Scaling CHERI Use-After-Free Protection to Millions of Allocations using Colored Capabilities cites FreeGuard: A Faster Secure Heap Allocator
- PICASSO: Scaling CHERI Use-After-Free Protection to Millions of Allocations using Colored Capabilities cites PTAuth: Temporal Memory Safety via Robust Points-to Authentication
- Fast Pointer Nullification for Use-After-Free Prevention cites A Robust and Efficient Defense against Use-after-Free Exploits via Concurrent Pointer Sweeping
- Fast Pointer Nullification for Use-After-Free Prevention cites MarkUs: Drop-in use-after-free prevention for low-level languages
- Fast Pointer Nullification for Use-After-Free Prevention cites Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling Pointers
- Fast Pointer Nullification for Use-After-Free Prevention cites FreeGuard: A Faster Secure Heap Allocator
- Fast Pointer Nullification for Use-After-Free Prevention cites PTAuth: Temporal Memory Safety via Robust Points-to Authentication
- PTAuth: Temporal Memory Safety via Robust Points-to Authentication cites A Robust and Efficient Defense against Use-after-Free Exploits via Concurrent Pointer Sweeping
- PTAuth: Temporal Memory Safety via Robust Points-to Authentication cites FreeGuard: A Faster Secure Heap Allocator
Cited by top-tier papers3
- PICASSO: Scaling CHERI Use-After-Free Protection to Millions of Allocations using Colored CapabilitiesMerve Gülmez, Ruben Sturm, Hossam ElAtali, Håkan Englund et al.USENIX Security 2026 · 5 citations
- SeMalloc: Semantics-Informed Memory AllocatorRuizhe Wang, Meng Xu, N. AsokanCCS 2024
- Fast Pointer Nullification for Use-After-Free PreventionYubo Du, Youtao Zhang, Jun YangNDSS 2026
Builds on11
- Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling PointersThurston H. Y. Dang, Petros Maniatis, David A. WagnerUSENIX Security 2017 · 77 citations
- FreeGuard: A Faster Secure Heap AllocatorSam Silvestro, Hongyu Liu, Corey Crosser, Zhiqiang Lin et al.CCS 2017 · 71 citations
- PTAuth: Temporal Memory Safety via Robust Points-to AuthenticationReza Mirzazade Farkhani, Mansour Ahmadi, Long LuUSENIX Security 2021 · 67 citations
- MarkUs: Drop-in use-after-free prevention for low-level languagesSam Ainsworth, Timothy M. JonesS&P 2020 · 63 citations
- A Robust and Efficient Defense against Use-after-Free Exploits via Concurrent Pointer SweepingDaiping Liu, Mingwei Zhang, Haining WangCCS 2018 · 43 citations
Related papers
- PUMM: Preventing Use-After-Free Using Execution Unit PartitioningCarter Yagemann, Simon P. Chung, Brendan Saltaformaggio, Wenke LeeUSENIX Security 2023
- MineSweeper: a "clean sweep" for drop-in use-after-free preventionMárton Erdos, Sam Ainsworth, Timothy M. JonesASPLOS 2022 · 13 citations
- Preventing Use-After-Free Attacks with Fast Forward AllocationBrian Wickman, Hong Hu, Insu Yun, Daehee Jang et al.USENIX Security 2021 · 53 citations
- DangZero: Efficient Use-After-Free Detection via Direct Page Table AccessFloris Gorter, Koen Koning, Herbert Bos, Cristiano GiuffridaCCS 2022 · 15 citations
- Safeslab: Mitigating Use-After-Free Vulnerabilities via Memory Protection KeysMarius Momeu, Simon Schnückel, Kai Angnis, Michalis Polychronakis et al.CCS 2024 · 3 citations
