Lune

Abstract

Memory errors, such as buffer overflows and use-after-free, remain the root cause of many security vulnerabilities in modern software. The use of closed source software further exacerbates the problem, as source-based memory error mitigation cannot be applied. While many memory error detection tools exist, most are based on a single error detection methodology with resulting known limitations, such as incomplete memory error detection (redzones) or false error detections (low-fat pointers). In this paper we introduce RedFat, a memory error hardening tool for stripped binaries that is fast, practical and scalable. The core idea behind RedFat is to combine complementary error detection methodologies-redzones and low-fat pointers-in order to detect more memory errors that can be detected by each individual methodology alone. However, complementary error detection also inherits the limitations of each approach, such as false error detections from low-fat pointers. To mitigate this, we introduce a profile-based analysis that automatically determines the strongest memory error protection possible without negative side effects.

We implement RedFat on top of a scalable binary rewriting framework, and demonstrate low overheads compared to the current state-of-the-art. We show RedFat to be language agnostic on C/C++/Fortran binaries with minimal requirements, and works with stripped binaries for both position independent/dependent code. We also show that the RedFat instrumentation can scale to very large/complex binaries, such as Google Chrome.

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.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • SoK: On the Fragility of Memory Error Exploit Mitigations cites Stack Bounds Protection with Low Fat Pointers
  • SoK: On the Fragility of Memory Error Exploit Mitigations cites SoK: Sanitizing for Security
  • SoK: On the Fragility of Memory Error Exploit Mitigations cites CAMP: Compiler and Allocator-based Heap Memory Protection
  • Efficient Greybox Fuzzing to Detect Memory Errors cites Stack Bounds Protection with Low Fat Pointers
  • Efficient Greybox Fuzzing to Detect Memory Errors cites SoK: Sanitizing for Security
  • Binary rewriting without control flow recovery cites RetroWrite: Statically Instrumenting COTS Binaries for Fuzzing and Sanitization
  • Binary rewriting without control flow recovery cites Stack Bounds Protection with Low Fat Pointers
  • SoK: Sanitizing for Security cites Stack Bounds Protection with Low Fat Pointers
  • CAMP: Compiler and Allocator-based Heap Memory Protection cites FreeGuard: A Faster Secure Heap Allocator
  • RangeSanitizer: Detecting Memory Errors with Efficient Range Checks cites Stack Bounds Protection with Low Fat Pointers
  • RangeSanitizer: Detecting Memory Errors with Efficient Range Checks cites Efficient Greybox Fuzzing to Detect Memory Errors
  • RangeSanitizer: Detecting Memory Errors with Efficient Range Checks cites CAMP: Compiler and Allocator-based Heap Memory Protection
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. CAMP: Compiler and Allocator-based Heap Memory ProtectionZhenpeng Lin, Zheng Yu, Ziyi Guo, Simone Campanoni et al.USENIX Security 2024 · 14 citations
  2. Efficient Greybox Fuzzing to Detect Memory ErrorsJinsheng Ba, Gregory J. Duck, Abhik RoychoudhuryASE 2022 · 13 citations
  3. SoK: On the Fragility of Memory Error Exploit MitigationsAdriaan Jacobs, Mahmoud Ammar, Stijn VolckaertUSENIX Security 2026
  4. Unleashing the Power of Generative Model in Recovering Variable Names from Stripped BinaryXiangzhe Xu, Zhuo Zhang, Zian Su, Ziyang Huang et al.NDSS 2025
  5. RangeSanitizer: Detecting Memory Errors with Efficient Range ChecksFloris Gorter, Cristiano GiuffridaUSENIX Security 2025

Builds on6

  1. SoK: Sanitizing for SecurityDokyung Song, Julian Lettner, Prabhu Rajasekaran, Yeoul Na et al.S&P 2019 · 196 citations
  2. RetroWrite: Statically Instrumenting COTS Binaries for Fuzzing and SanitizationSushant Dinesh, Nathan Burow, Dongyan Xu, Mathias PayerS&P 2020 · 187 citations
  3. Stack Bounds Protection with Low Fat PointersGregory J. Duck, Roland H. C. Yap, Lorenzo CavallaroNDSS 2017 · 121 citations
  4. Binary rewriting without control flow recoveryGregory J. Duck, Xiang Gao, Abhik RoychoudhuryPLDI 2020 · 77 citations
  5. FreeGuard: A Faster Secure Heap AllocatorSam Silvestro, Hongyu Liu, Corey Crosser, Zhiqiang Lin et al.CCS 2017 · 71 citations

Related papers

  1. Enhancing Memory Error Detection for Large-Scale Applications and Fuzz TestingWookhyun Han, Byunggill Joe, Byoungyoung Lee, Chengyu Song et al.NDSS 2018 · 33 citations
  2. BSan: A Powerful Identifier-Based Hardware-Independent Memory Error Detector for COTS BinariesWen Zhang, Botang Xiao, Qingchen Kong, Le Guan et al.ICSE 2025
  3. Runtime detection of memory errors with smart statusZhe Chen, Chong Wang, Junqi Yan, Yulei Sui et al.ISSTA 2021 · 16 citations
  4. Fat Pointers for Temporal Memory Safety of CJie Zhou, John Criswell, Michael HicksOOPSLA 2023 · 17 citations
  5. DangZero: Efficient Use-After-Free Detection via Direct Page Table AccessFloris Gorter, Koen Koning, Herbert Bos, Cristiano GiuffridaCCS 2022 · 15 citations
Dusk over the sea between two cliffs drawn in fine vertical lines