Lune

S&P2020顶会

MarkUs: Drop-in use-after-free prevention for low-level languages

Sam Ainsworth, Timothy M. Jones

摘要

Use-after-free vulnerabilities have plagued software written in low-level languages, such as C and C++, becoming one of the most frequent classes of exploited software bugs. Attackers identify code paths where data is manually freed by the programmer, but later incorrectly reused, and take advantage by reallocating the data to themselves. They then alter the data behind the program’s back, using the erroneous reuse to gain control of the application and, potentially, the system. While a variety of techniques have been developed to deal with these vulnerabilities, they often have unacceptably high performance or memory overheads, especially in the worst case.We have designed MarkUs, a memory allocator that prevents this form of attack at low overhead, sufficient for deployment in real software, even under allocation- and memory-intensive scenarios. We prevent use-after-free attacks by quarantining data freed by the programmer and forbidding its reallocation until we are sure that there are no dangling pointers targeting it. To identify these we traverse live-objects accessible from registers and memory, marking those we encounter, to check whether quarantined data is accessible from any currently allocated location. Unlike garbage collection, which is unsafe in C and C++, MarkUs ensures safety by only freeing data that is both quarantined by the programmer and has no identifiable dangling pointers. The information provided by the programmer’s allocations and frees further allows us to optimise the process by freeing physical addresses early for large objects, specialising analysis for small objects, and only performing marking when sufficient data is in quarantine. Using MarkUs, we reduce the overheads of temporal safety in low-level languages to 1.1× on average for SPEC CPU2006, with a maximum slowdown of only 2×, vastly improving upon the state-of-the-art.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Preventing Use-After-Free Attacks with Fast Forward Allocation 引用了 A Robust and Efficient Defense against Use-after-Free Exploits via Concurrent Pointer Sweeping
  • Preventing Use-After-Free Attacks with Fast Forward Allocation 引用了 CRCount: Pointer Invalidation with Reference Counting to Mitigate Use-after-free in Legacy C/C++
  • 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
  • Fat Pointers for Temporal Memory Safety of C 引用了 Preventing Use-After-Free Attacks with Fast Forward Allocation
  • 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 引用了 CRCount: Pointer Invalidation with Reference Counting to Mitigate Use-after-free in Legacy C/C++
  • Fat Pointers for Temporal Memory Safety of C 引用了 Cornucopia: Temporal Safety for CHERI Heaps
  • 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
  • CRCount: Pointer Invalidation with Reference Counting to Mitigate Use-after-free in Legacy C/C++ 引用了 Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling Pointers
  • CRCount: Pointer Invalidation with Reference Counting to Mitigate Use-after-free in Legacy C/C++ 引用了 FreeGuard: A Faster Secure Heap Allocator
  • Cryptographic Capability Computing 引用了 A Robust and Efficient Defense against Use-after-Free Exploits via Concurrent Pointer Sweeping
  • Cryptographic Capability Computing 引用了 Cornucopia: Temporal Safety for CHERI Heaps
  • Cornucopia: Temporal Safety for CHERI Heaps 引用了 A Robust and Efficient Defense against Use-after-Free Exploits via Concurrent Pointer Sweeping
  • Cornucopia: Temporal Safety for CHERI Heaps 引用了 CRCount: Pointer Invalidation with Reference Counting to Mitigate Use-after-free in Legacy C/C++
  • 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 引用了 Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling Pointers
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper28

  1. Cornucopia: Temporal Safety for CHERI HeapsNathaniel Wesley Filardo, Brett F. Gutstein, Jonathan Woodruff, Sam Ainsworth 等S&P 2020 · 71 次引用
  2. Preventing Use-After-Free Attacks with Fast Forward AllocationBrian Wickman, Hong Hu, Insu Yun, Daehee Jang 等USENIX Security 2021 · 53 次引用
  3. Cryptographic Capability ComputingMichael LeMay, Joydeep Rakshit, Sergej Deutsch, David M. Durham 等MICRO 2021 · 29 次引用
  4. Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory TagsFloris Gorter, Taddeus Kroes, Herbert Bos, Cristiano GiuffridaS&P 2024 · 22 次引用
  5. Fat Pointers for Temporal Memory Safety of CJie Zhou, John Criswell, Michael HicksOOPSLA 2023 · 17 次引用

它引用的 Paper4

  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. A Robust and Efficient Defense against Use-after-Free Exploits via Concurrent Pointer SweepingDaiping Liu, Mingwei Zhang, Haining WangCCS 2018 · 43 次引用
  4. CRCount: Pointer Invalidation with Reference Counting to Mitigate Use-after-free in Legacy C/C++Jangseop Shin, Donghyun Kwon, Jiwon Seo, Yeongpil Cho 等NDSS 2019 · 37 次引用

相关 Paper

  1. MineSweeper: a "clean sweep" for drop-in use-after-free preventionMárton Erdos, Sam Ainsworth, Timothy M. JonesASPLOS 2022 · 13 次引用
  2. PUMM: Preventing Use-After-Free Using Execution Unit PartitioningCarter Yagemann, Simon P. Chung, Brendan Saltaformaggio, Wenke LeeUSENIX Security 2023
  3. Efficient Use-After-Free Prevention with Opportunistic Page-Level SweepingChanyoung Park, Hyungon MoonNDSS 2024
  4. ShadowBound: Efficient Heap Memory Protection Through Advanced Metadata Management and Customized Compiler OptimizationZheng Yu, Ganxiang Yang, Xinyu XingUSENIX Security 2024 · 13 次引用
  5. Safeslab: Mitigating Use-After-Free Vulnerabilities via Memory Protection KeysMarius Momeu, Simon Schnückel, Kai Angnis, Michalis Polychronakis 等CCS 2024 · 3 次引用
黄昏的海面,两侧是细线勾勒的悬崖