Lune

OSDI2023顶会

TAILCHECK: A Lightweight Heap Overflow Detection Mechanism with Page Protection and Tagged Pointers

Amogha Udupa Shankaranarayana Gopal, Raveendra Soori, Michael Ferdman, Dongyoon Lee

摘要

A heap overflow vulnerability occurs when a program written in an unmanaged language such as C or C ++ accesses a memory location beyond an object allocation boundary. Malicious users may exploit this vulnerability to corrupt an adjacent object in memory, creating an entry point for a security attack. Despite decades of research, unfortunately, it still remains challenging to detect heap overflow vulnerabilities in realworld programs at a low cost.

We present TAILCHECK, a new lightweight heap overflow detection scheme that leverages page protection and pointer tagging. When an object is created, TAILCHECK allocates an additional page-protected shadow object, called a TailObject, placing the distance from the object to its TailObject as a tag stored in the unused high-order bits of the object pointer. For every access to the original object, TAILCHECK performs an additional memory access to the TailObject, whose address is computed using the tag. Heap overflows are detected as page faults when an access occurs beyond the TailObject. We evaluated TAILCHECK with four server applications (apache, nginx, memcached, redis) and the SPEC CPU2017 and SPEC CPU2006 benchmarks, successfully finding heap overflows in SPEC CPU2017 gcc. TAILCHECK experiences 4% and 3% run-time overhead for the average and tail (99%) latencies for server applications; and only 33% and 29% runtime overhead for SPEC CPU2017 and SPEC CPU2006, respectively, less than the state-of-the-art solution.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • QuickSafe: Targeted Hardening Against Memory Corruption 引用了 PACMem: Enforcing Spatial and Temporal Memory Safety via ARM Pointer Authentication
  • QuickSafe: Targeted Hardening Against Memory Corruption 引用了 ShadowBound: Efficient Heap Memory Protection Through Advanced Metadata Management and Customized Compiler Optimization
  • QuickSafe: Targeted Hardening Against Memory Corruption 引用了 Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling Pointers
  • QuickSafe: Targeted Hardening Against Memory Corruption 引用了 SoK: Sanitizing for Security
  • QuickSafe: Targeted Hardening Against Memory Corruption 引用了 Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory Tags
  • PACMem: Enforcing Spatial and Temporal Memory Safety via ARM Pointer Authentication 引用了 Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling Pointers
  • PACMem: Enforcing Spatial and Temporal Memory Safety via ARM Pointer Authentication 引用了 SoK: Sanitizing for Security
  • ShadowBound: Efficient Heap Memory Protection Through Advanced Metadata Management and Customized Compiler Optimization 引用了 PACMem: Enforcing Spatial and Temporal Memory Safety via ARM Pointer Authentication
  • 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 引用了 SoK: Sanitizing for Security
  • GIANTSAN: Efficient Memory Sanitization with Segment Folding 引用了 PACMem: Enforcing Spatial and Temporal Memory Safety via ARM Pointer Authentication
  • GIANTSAN: Efficient Memory Sanitization with Segment Folding 引用了 Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling Pointers
  • GIANTSAN: Efficient Memory Sanitization with Segment Folding 引用了 SoK: Sanitizing for Security
  • Safelnit: Comprehensive and Practical Mitigation of Uninitialized Read Vulnerabilities 引用了 UniSan: Proactive Kernel Memory Initialization to Eliminate Data Leakages
  • SoK: Sanitizing for Security 引用了 Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling Pointers
  • Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory Tags 引用了 PACMem: Enforcing Spatial and Temporal Memory Safety via ARM Pointer Authentication
  • Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory Tags 引用了 Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling Pointers
  • Sticky Tags: Efficient and Deterministic Spatial Memory Error Mitigation using Persistent Memory Tags 引用了 SoK: Sanitizing for Security
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper8

  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. ShadowBound: Efficient Heap Memory Protection Through Advanced Metadata Management and Customized Compiler OptimizationZheng Yu, Ganxiang Yang, Xinyu XingUSENIX Security 2024 · 13 次引用
  3. GIANTSAN: Efficient Memory Sanitization with Segment FoldingHao Ling, Heqing Huang, Chengpeng Wang, Yuandao Cai 等ASPLOS 2024 · 8 次引用
  4. Highly Automated Verification of Security Properties for Unmodified System SoftwareGanxiang Yang, Wei Qiang, Yi Rong, Xuheng Li 等ASPLOS 2026 · 1 次引用
  5. QuickSafe: Targeted Hardening Against Memory CorruptionJohannes Blaser, Floris Gorter, Klaus von Gleissenthall, Herbert BosS&P 2026

它引用的 Paper10

  1. SoK: Sanitizing for SecurityDokyung Song, Julian Lettner, Prabhu Rajasekaran, Yeoul Na 等S&P 2019 · 196 次引用
  2. UniSan: Proactive Kernel Memory Initialization to Eliminate Data LeakagesKangjie Lu, Chengyu Song, Taesoo Kim, Wenke LeeCCS 2016 · 81 次引用
  3. Oscar: A Practical Page-Permissions-Based Scheme for Thwarting Dangling PointersThurston H. Y. Dang, Petros Maniatis, David A. WagnerUSENIX Security 2017 · 77 次引用
  4. Safelnit: Comprehensive and Practical Mitigation of Uninitialized Read VulnerabilitiesAlyssa Milburn, Herbert Bos, Cristiano GiuffridaNDSS 2017 · 42 次引用
  5. PACMem: Enforcing Spatial and Temporal Memory Safety via ARM Pointer AuthenticationYuan Li, Wende Tan, Zhizheng Lv, Songtao Yang 等CCS 2022 · 30 次引用

相关 Paper

  1. CAMP: Compiler and Allocator-based Heap Memory ProtectionZhenpeng Lin, Zheng Yu, Ziyi Guo, Simone Campanoni 等USENIX Security 2024 · 14 次引用
  2. Towards Efficient Heap Overflow DiscoveryXiangkun Jia, Chao Zhang, Purui Su, Yi Yang 等USENIX Security 2017 · 36 次引用
  3. Prober: Practically Defending Overflows with Page ProtectionHongyu Liu, Ruiqin Tian, Tongping Liu, Bin RenASE 2020 · 3 次引用
  4. Hardware-based Always-On Heap Memory SafetyYonghae Kim, Jaekyu Lee, Hyesoon KimMICRO 2020 · 41 次引用
  5. Fat Pointers for Temporal Memory Safety of CJie Zhou, John Criswell, Michael HicksOOPSLA 2023 · 17 次引用
黄昏的海面,两侧是细线勾勒的悬崖