Lune

NDSS2025Top-tier venue

QMSan: Efficiently Detecting Uninitialized Memory Errors During Fuzzing

Matteo Marini, Daniele Cono D'Elia, Mathias Payer, Leonardo Querzoni

Abstract

—Fuzzing evolved into the most popular technique to detect bugs in software. Its combination with sanitizers has shown tremendous efficacy in uncovering memory safety errors, such as buffer overflows, that haunt C and C++ programmers. However, an important class of such issues, the so-called use-of-uninitialized-memory (UUM) errors , struggles to gain similar benefits from fuzzing endeavors. The only fuzzer-compatible UUM sanitizer available to date, MSan, requires that all libraries are fully instrumented. Unlike address sanitization, for which partial instrumentation results in false negatives (missed detection of bugs), UUM sanitizers require complete instrumentation to avoid false positives, hampering testing at scale. Yet, full-stack compiler-based instrumentation can be a daunting prospect for compatibility and practicality. As a result, many programs are left untested for UUM bugs. In this paper, we propose an efficient multi-layer, opportunistic design that does not require (source-based) recompilation of all code without harming accuracy. The multiplicity of executions when fuzzing offers us the opportunity to learn what any encountered false positive looks like, and later ignore them when we meet them again with new test cases. Such an avenue is feasible only if one can resort to fast techniques to effectively discriminate candidate errors, or false negatives will then occur. We show how to realize this design by using the dynamic binary translation of QEMU for compatibility and lightweight code analysis techniques to achieve scalability and accuracy. As a result, we obtain a fuzzer-friendly, performant sanitizer, QMS AN , that effectively tackles current practicality challenges of UUM error detection. On a collection of 10 open-source and 5 proprietary programs, QMS AN exposed 44 new UUM bugs. In our tests, QMS AN

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.

2 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

  • KRAKEN: Program-Adaptive Parallel Fuzzing cites RetroWrite: Statically Instrumenting COTS Binaries for Fuzzing and Sanitization
  • KRAKEN: Program-Adaptive Parallel Fuzzing cites Breaking Through Binaries: Compiler-quality Instrumentation for Better Binary-only Fuzzing
  • KRAKEN: Program-Adaptive Parallel Fuzzing cites Evaluating Fuzz Testing
  • CombiSan: Unifying Software Sanitizers for Comprehensive Fuzzing cites SoK: Sanitizing for Security
  • CombiSan: Unifying Software Sanitizers for Comprehensive Fuzzing cites FuZZan: Efficient Sanitizer Metadata Design for Fuzzing
  • CombiSan: Unifying Software Sanitizers for Comprehensive Fuzzing cites Evaluating Fuzz Testing
  • RetroWrite: Statically Instrumenting COTS Binaries for Fuzzing and Sanitization cites Evaluating Fuzz Testing
  • Breaking Through Binaries: Compiler-quality Instrumentation for Better Binary-only Fuzzing cites RetroWrite: Statically Instrumenting COTS Binaries for Fuzzing and Sanitization
  • Breaking Through Binaries: Compiler-quality Instrumentation for Better Binary-only Fuzzing cites Evaluating Fuzz Testing
  • FuZZan: Efficient Sanitizer Metadata Design for Fuzzing cites SoK: Sanitizing for Security
  • FuZZan: Efficient Sanitizer Metadata Design for Fuzzing cites Evaluating Fuzz Testing
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. KRAKEN: Program-Adaptive Parallel FuzzingAnshunkang Zhou, Heqing Huang, Charles ZhangISSTA 2025
  2. CombiSan: Unifying Software Sanitizers for Comprehensive FuzzingMatteo Marini, Floris Gorter, Daniele Cono D'Elia, Cristiano GiuffridaUSENIX Security 2026

Builds on13

  1. Evaluating Fuzz TestingGeorge Klees, Andrew Ruef, Benji Cooper, Shiyi Wei et al.CCS 2018 · 753 citations
  2. SoK: Sanitizing for SecurityDokyung Song, Julian Lettner, Prabhu Rajasekaran, Yeoul Na et al.S&P 2019 · 196 citations
  3. RetroWrite: Statically Instrumenting COTS Binaries for Fuzzing and SanitizationSushant Dinesh, Nathan Burow, Dongyan Xu, Mathias PayerS&P 2020 · 187 citations
  4. Breaking Through Binaries: Compiler-quality Instrumentation for Better Binary-only FuzzingStefan Nagy, Anh Nguyen-Tuong, Jason D. Hiser, Jack W. Davidson et al.USENIX Security 2021 · 65 citations
  5. FuZZan: Efficient Sanitizer Metadata Design for FuzzingYuseok Jeon, Wookhyun Han, Nathan Burow, Mathias PayerUSENIX ATC 2020 · 52 citations

Related papers

  1. WBSan: WebAssembly Bug Detection for Sanitization and Binary-Only FuzzingXiao Wu, Junzhou He, Liyan Huang, Cai Fu et al.WWW 2025 · 5 citations
  2. MTSan: A Feasible and Practical Memory Sanitizer for Fuzzing COTS BinariesXingman Chen, Yinghao Shi, Zheyu Jiang, Yuan Li et al.USENIX Security 2023
  3. Efficient Greybox Fuzzing to Detect Memory ErrorsJinsheng Ba, Gregory J. Duck, Abhik RoychoudhuryASE 2022 · 13 citations
  4. Debloating Address SanitizerYuchen Zhang, Chengbin Pang, Georgios Portokalidis, Nikos Triandopoulos et al.USENIX Security 2022
  5. CMASan: Custom Memory Allocator-aware Address SanitizerJunwha Hong, Wonil Jang, Mijung Kim, Lei Yu et al.S&P 2025
Dusk over the sea between two cliffs drawn in fine vertical lines