MineSweeper: a "clean sweep" for drop-in use-after-free prevention
摘要
Low-level languages, which require manual memory management from the programmer, remain in wide use for performance-critical applications. Memory-safety bugs are common, and now a major source of exploits. In particular, a use-after-free bug occurs when an object is erroneously deallocated, whilst pointers to it remain active in memory, and those (dangling) pointers are later used to access the object. An attacker can reallocate the memory area backing an erroneously freed object, then overwrite its contents, injecting carefully chosen data into the host program, thus altering its execution and achieving privilege escalation.
We present MineSweeper, a system to mitigate use-after-free vulnerabilities by retaining freed allocations in a quarantine, until no pointers to them remain in program memory, thus preventing their reallocation until it is safe. MineSweeper performs efficient linear sweeps of memory to identify quarantined items that have no dangling pointers to them, and thus can be safely reallocated. This allows MineSweeper to be significantly more efficient than previous transitive marking procedure techniques.
MineSweeper, attached to JeMalloc, improves security at an acceptable overhead in memory footprint (11.1% on average) and an execution-time cost of only 5.4% (geometric mean for SPEC CPU2006), with 9.6% additional threaded CPU usage. These figures considerably improve on the state-of-the-art for non-probabilistic drop-in temporal-safety systems, and make MineSweeper the only such scheme suitable for deployment in real-world production environments.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 15 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Preventing Use-After-Free Attacks with Fast Forward Allocation 引用了 MarkUs: Drop-in use-after-free prevention for low-level languages
- Preventing Use-After-Free Attacks with Fast Forward Allocation 引用了 Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling Pointers
- Preventing Use-After-Free Attacks with Fast Forward Allocation 引用了 FreeGuard: A Faster Secure Heap Allocator
- BUDAlloc: Defeating Use-After-Free Bugs by Decoupling Virtual Address Management from Kernel 引用了 Preventing Use-After-Free Attacks with Fast Forward Allocation
- BUDAlloc: Defeating Use-After-Free Bugs by Decoupling Virtual Address Management from Kernel 引用了 MarkUs: Drop-in use-after-free prevention for low-level languages
- BUDAlloc: Defeating Use-After-Free Bugs by Decoupling Virtual Address Management from Kernel 引用了 Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling Pointers
- BUDAlloc: Defeating Use-After-Free Bugs by Decoupling Virtual Address Management from Kernel 引用了 FreeGuard: A Faster Secure Heap Allocator
- PoisonCap: Efficient Hierarchical Temporal Safety for CHERI 引用了 Preventing Use-After-Free Attacks with Fast Forward Allocation
- PoisonCap: Efficient Hierarchical Temporal Safety for CHERI 引用了 MarkUs: Drop-in use-after-free prevention for low-level languages
- PoisonCap: Efficient Hierarchical Temporal Safety for CHERI 引用了 PICASSO: Scaling CHERI Use-After-Free Protection to Millions of Allocations using Colored Capabilities
- PoisonCap: Efficient Hierarchical Temporal Safety for CHERI 引用了 Cornucopia: Temporal Safety for CHERI Heaps
- MarkUs: Drop-in use-after-free prevention for low-level languages 引用了 Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling Pointers
- MarkUs: Drop-in use-after-free prevention for low-level languages 引用了 FreeGuard: A Faster Secure Heap Allocator
- PICASSO: Scaling CHERI Use-After-Free Protection to Millions of Allocations using Colored Capabilities 引用了 Preventing Use-After-Free Attacks with Fast Forward Allocation
- PICASSO: Scaling CHERI Use-After-Free Protection to Millions of Allocations using Colored Capabilities 引用了 BUDAlloc: Defeating Use-After-Free Bugs by Decoupling Virtual Address Management from Kernel
- PICASSO: Scaling CHERI Use-After-Free Protection to Millions of Allocations using Colored Capabilities 引用了 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 引用了 Cornucopia: Temporal Safety for CHERI Heaps
- PICASSO: Scaling CHERI Use-After-Free Protection to Millions of Allocations using Colored Capabilities 引用了 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 引用了 FreeGuard: A Faster Secure Heap Allocator
- Cornucopia: Temporal Safety for CHERI Heaps 引用了 MarkUs: Drop-in use-after-free prevention for low-level languages
- Cornucopia: Temporal Safety for CHERI Heaps 引用了 Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling Pointers
- Cornucopia: Temporal Safety for CHERI Heaps 引用了 FreeGuard: A Faster Secure Heap Allocator
- Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory Tags 引用了 Preventing Use-After-Free Attacks with Fast Forward Allocation
- Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory Tags 引用了 MarkUs: Drop-in use-after-free prevention for low-level languages
- Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory Tags 引用了 Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling Pointers
- StarMalloc: Verifying a Modern, Hardened Memory Allocator 引用了 Preventing Use-After-Free Attacks with Fast Forward Allocation
- StarMalloc: Verifying a Modern, Hardened Memory Allocator 引用了 FreeGuard: A Faster Secure Heap Allocator
引用它的顶会 Paper15
- Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory TagsFloris Gorter, Taddeus Kroes, Herbert Bos, Cristiano GiuffridaS&P 2024 · 22 次引用
- BUDAlloc: Defeating Use-After-Free Bugs by Decoupling Virtual Address Management from KernelJunho Ahn, Jaehyeon Lee, Kanghyuk Lee, Wooseok Gwak 等USENIX Security 2024 · 6 次引用
- PICASSO: Scaling CHERI Use-After-Free Protection to Millions of Allocations using Colored CapabilitiesMerve Gülmez, Ruben Sturm, Hossam ElAtali, Håkan Englund 等USENIX Security 2026 · 5 次引用
- StarMalloc: Verifying a Modern, Hardened Memory AllocatorAntonin Reitz, Aymeric Fromherz, Jonathan ProtzenkoOOPSLA 2024 · 5 次引用
- PoisonCap: Efficient Hierarchical Temporal Safety for CHERIYuecheng Wang, Jonathan Woodruff, Alfredo Mazzinghi, Peter Rugg 等CCS 2026 · 3 次引用
它引用的 Paper8
- Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling PointersThurston H. Y. Dang, Petros Maniatis, David A. WagnerUSENIX Security 2017 · 77 次引用
- Cornucopia: Temporal Safety for CHERI HeapsNathaniel Wesley Filardo, Brett F. Gutstein, Jonathan Woodruff, Sam Ainsworth 等S&P 2020 · 71 次引用
- FreeGuard: A Faster Secure Heap AllocatorSam Silvestro, Hongyu Liu, Corey Crosser, Zhiqiang Lin 等CCS 2017 · 71 次引用
- MarkUs: Drop-in use-after-free prevention for low-level languagesSam Ainsworth, Timothy M. JonesS&P 2020 · 63 次引用
- Preventing Use-After-Free Attacks with Fast Forward AllocationBrian Wickman, Hong Hu, Insu Yun, Daehee Jang 等USENIX Security 2021 · 53 次引用
相关 Paper
- A Robust and Efficient Defense against Use-after-Free Exploits via Concurrent Pointer SweepingDaiping Liu, Mingwei Zhang, Haining WangCCS 2018 · 43 次引用
- PUMM: Preventing Use-After-Free Using Execution Unit PartitioningCarter Yagemann, Simon P. Chung, Brendan Saltaformaggio, Wenke LeeUSENIX Security 2023
- SwiftSweeper: Defeating Use-After-Free Bugs Using Memory Sweeper Without Stop-the-WorldJunho Ahn, Kanghyuk Lee, Chanyoung Park, Hyungon Moon 等S&P 2025
- Efficient Use-After-Free Prevention with Opportunistic Page-Level SweepingChanyoung Park, Hyungon MoonNDSS 2024
- FreeWill: Automatically Diagnosing Use-after-free Bugs via Reference Miscounting Detection on BinariesLiang He, Hong Hu, Purui Su, Yan Cai 等USENIX Security 2022
