Lune

USENIX Security2021顶会

Preventing Use-After-Free Attacks with Fast Forward Allocation

Brian Wickman, Hong Hu, Insu Yun, Daehee Jang, Jungwon Lim, Sanidhya Kashyap, Taesoo Kim

摘要

Memory-unsafe languages are widely used to implement critical systems like kernels and browsers, leading to thousands of memory safety issues every year. A use-after-free bug is a temporal memory error where the program accidentally visits a freed memory location. Recent studies show that useafter-free is one of the most exploited memory vulnerabilities. Unfortunately, previous efforts to mitigate use-after-free bugs are not widely deployed in real-world programs due to either inadequate accuracy or high performance overhead. In this paper, we propose to resurrect the idea of one-time allocation (OTA) and provide a practical implementation with efficient execution and moderate memory overhead. With onetime allocation, the memory manager always returns a distinct memory address for each request. Since memory locations are not reused, attackers cannot reclaim freed objects, and thus cannot exploit use-after-free bugs. We utilize two techniques to render OTA practical: batch page management and the fusion of bump-pointer and fixed-size bins memory allocation styles. Batch page management helps reduce the number of system calls which negatively impact performance, while blending the two allocation methods mitigates the memory overhead and fragmentation issues. We implemented a prototype, called FFmalloc, to demonstrate our techniques. We evaluated FFmalloc on widely used benchmarks and real-world large programs. FFmalloc successfully blocked all tested useafter-free attacks while introducing moderate overhead. The results show that OTA can be a strong and practical solution to thwart use-after-free threats.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 26 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Guarder: A Tunable Secure Allocator 引用了 FreeGuard: A Faster Secure Heap Allocator
  • Fat Pointers for Temporal Memory Safety of C 引用了 A Robust and Efficient Defense against Use-after-Free Exploits via Concurrent Pointer Sweeping
  • Fat Pointers for Temporal Memory Safety of C 引用了 Guarder: A Tunable Secure Allocator
  • Fat Pointers for Temporal Memory Safety of C 引用了 MarkUs: Drop-in use-after-free prevention for low-level languages
  • Fat Pointers for Temporal Memory Safety of C 引用了 Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling Pointers
  • Fat Pointers for Temporal Memory Safety of C 引用了 FreeGuard: A Faster Secure Heap Allocator
  • ShadowBound: Efficient Heap Memory Protection Through Advanced Metadata Management and Customized Compiler Optimization 引用了 A Robust and Efficient Defense against Use-after-Free Exploits via Concurrent Pointer Sweeping
  • ShadowBound: Efficient Heap Memory Protection Through Advanced Metadata Management and Customized Compiler Optimization 引用了 Guarder: A Tunable Secure Allocator
  • ShadowBound: Efficient Heap Memory Protection Through Advanced Metadata Management and Customized Compiler Optimization 引用了 MarkUs: Drop-in use-after-free prevention for low-level languages
  • ShadowBound: Efficient Heap Memory Protection Through Advanced Metadata Management and Customized Compiler Optimization 引用了 Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling Pointers
  • ShadowBound: Efficient Heap Memory Protection Through Advanced Metadata Management and Customized Compiler Optimization 引用了 FreeGuard: A Faster Secure Heap Allocator
  • MarkUs: Drop-in use-after-free prevention for low-level languages 引用了 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 引用了 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
  • Mitigating Information Leakage Vulnerabilities with Type-based Data Isolation 引用了 MarkUs: Drop-in use-after-free prevention for low-level languages
  • Mitigating Information Leakage Vulnerabilities with Type-based Data Isolation 引用了 FreeGuard: A Faster Secure Heap Allocator
  • CAMP: Compiler and Allocator-based Heap Memory Protection 引用了 MarkUs: Drop-in use-after-free prevention for low-level languages
  • CAMP: Compiler and Allocator-based Heap Memory Protection 引用了 Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling Pointers
  • CAMP: Compiler and Allocator-based Heap Memory Protection 引用了 FreeGuard: A Faster Secure Heap Allocator
  • 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 引用了 Mitigating Information Leakage Vulnerabilities with Type-based Data Isolation
  • Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory Tags 引用了 Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling Pointers
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper26

  1. Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory TagsFloris Gorter, Taddeus Kroes, Herbert Bos, Cristiano GiuffridaS&P 2024 · 22 次引用
  2. Fat Pointers for Temporal Memory Safety of CJie Zhou, John Criswell, Michael HicksOOPSLA 2023 · 17 次引用
  3. Mitigating Information Leakage Vulnerabilities with Type-based Data IsolationAlyssa Milburn, Erik van der Kouwe, Cristiano GiuffridaS&P 2022 · 16 次引用
  4. CAMP: Compiler and Allocator-based Heap Memory ProtectionZhenpeng Lin, Zheng Yu, Ziyi Guo, Simone Campanoni 等USENIX Security 2024 · 14 次引用
  5. ShadowBound: Efficient Heap Memory Protection Through Advanced Metadata Management and Customized Compiler OptimizationZheng Yu, Ganxiang Yang, Xinyu XingUSENIX Security 2024 · 13 次引用

它引用的 Paper7

  1. Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling PointersThurston H. Y. Dang, Petros Maniatis, David A. WagnerUSENIX Security 2017 · 77 次引用
  2. FreeGuard: A Faster Secure Heap AllocatorSam Silvestro, Hongyu Liu, Corey Crosser, Zhiqiang Lin 等CCS 2017 · 71 次引用
  3. MarkUs: Drop-in use-after-free prevention for low-level languagesSam Ainsworth, Timothy M. JonesS&P 2020 · 63 次引用
  4. A Robust and Efficient Defense against Use-after-Free Exploits via Concurrent Pointer SweepingDaiping Liu, Mingwei Zhang, Haining WangCCS 2018 · 43 次引用
  5. Guarder: A Tunable Secure AllocatorSam Silvestro, Hongyu Liu, Tianyi Liu, Zhiqiang Lin 等USENIX Security 2018 · 39 次引用

相关 Paper

  1. BUDAlloc: Defeating Use-After-Free Bugs by Decoupling Virtual Address Management from KernelJunho Ahn, Jaehyeon Lee, Kanghyuk Lee, Wooseok Gwak 等USENIX Security 2024 · 6 次引用
  2. SeMalloc: Semantics-Informed Memory AllocatorRuizhe Wang, Meng Xu, N. AsokanCCS 2024
  3. PUMM: Preventing Use-After-Free Using Execution Unit PartitioningCarter Yagemann, Simon P. Chung, Brendan Saltaformaggio, Wenke LeeUSENIX Security 2023
  4. MineSweeper: a "clean sweep" for drop-in use-after-free preventionMárton Erdos, Sam Ainsworth, Timothy M. JonesASPLOS 2022 · 13 次引用
  5. DMGuard: Safeguarding Kernels from Physical-Page Use-After-Free VulnerabilitiesJuhee Kim, Jaeyoung Chung, Dae R. Jeong, Byoungyoung LeeUSENIX Security 2026
黄昏的海面,两侧是细线勾勒的悬崖