Skip to main content
QUICK REVIEW

[Paper Review] Binary-level Directed Fuzzing for Use-After-Free Vulnerabilities

Manh-Dung Nguyen, Sébastien Bardin|arXiv (Cornell University)|Feb 25, 2020
Software Testing and Debugging TechniquesComputer Science50 references19 citations
TL;DR

UAFuzz is the first binary-level directed greybox fuzzer specifically designed for detecting Use-After-Free (UAF) vulnerabilities by leveraging bug stack traces, lightweight binary instrumentation, and a dedicated UAF-specific triage mechanism. It significantly outperforms state-of-the-art tools like AFLGo and Hawkeye in fault detection rate, time-to-exposure, and patch testing, uncovering 30 new UAF bugs (7 CVEs) in real-world software such as Perl, GPAC, and GNU Patch.

ABSTRACT

Directed fuzzing focuses on automatically testing specific parts of the code by taking advantage of additional information such as (partial) bug stack trace, patches or risky operations. Key applications include bug reproduction, patch testing and static analysis report verification. Although directed fuzzing has received a lot of attention recently, hard-to-detect vulnerabilities such as Use-After-Free (UAF) are still not well addressed, especially at the binary level. We propose UAFUZZ, the first (binary-level) directed greybox fuzzer dedicated to UAF bugs. The technique features a fuzzing engine tailored to UAF specifics, a lightweight code instrumentation and an efficient bug triage step. Experimental evaluation for bug reproduction on real cases demonstrates that UAFUZZ significantly outperforms state-of-the-art directed fuzzers in terms of fault detection rate, time to exposure and bug triaging. UAFUZZ has also been proven effective in patch testing, leading to the discovery of 30 new bugs (7 CVEs) in programs such as Perl, GPAC and GNU Patch. Finally, we provide to the community a large fuzzing benchmark dedicated to UAF, built on both real codes and real bugs.

Motivation & Objective

  • Address the challenge of detecting hard-to-trigger UAF vulnerabilities in binary programs where traditional fuzzers fail due to complex temporal and spatial constraints.
  • Overcome the limitations of existing directed fuzzers that lack UAF-specific guidance and rely on expensive post-fuzzing analysis with tools like ASan or Valgrind.
  • Enable efficient, source-code-agnostic UAF detection by designing a fuzzer that works directly on binaries with minimal instrumentation overhead.
  • Improve both bug reproduction and patch testing by providing a scalable, accurate, and efficient method to generate PoCs for UAF vulnerabilities.
  • Establish a large-scale, real-world benchmark for UAF fuzzing to support future research and evaluation.

Proposed method

  • Design a UAF-specific fuzzing engine that prioritizes input generation based on the temporal sequence of alloc, free, and use operations on the same memory location.
  • Implement lightweight binary instrumentation using the Binsec framework to collect control-flow and data-flow information without significant performance overhead.
  • Introduce a novel UAF triage step that identifies potential UAF triggers at runtime by analyzing memory access patterns and sequence consistency, reducing false positives.
  • Integrate the fuzzer with AFL-QEMU to leverage coverage-guided mutation while focusing on UAF-relevant code paths using stack trace-driven guidance.
  • Construct a binary-level analysis pipeline that combines static binary analysis with dynamic execution monitoring to detect UAF patterns without source code.
  • Use a combination of symbolic execution and taint tracking to validate and prioritize seeds that satisfy the three-event UAF sequence (alloc → free → use).

Experimental results

Research questions

  • RQ1Can a directed greybox fuzzer be effectively tailored to detect UAF vulnerabilities at the binary level, where source code is unavailable or impractical to modify?
  • RQ2How does UAF-specific guidance—based on the temporal sequence of alloc, free, and use operations—improve fault detection compared to generic coverage-guided or general-purpose directed fuzzing?
  • RQ3To what extent can lightweight binary instrumentation and efficient runtime triage reduce the reliance on heavyweight profiling tools like ASan or Valgrind for UAF detection?
  • RQ4How does UAFuzz compare in performance and effectiveness to state-of-the-art directed fuzzers such as AFLGo and Hawkeye in real-world UAF reproduction and patch testing scenarios?
  • RQ5Can a large-scale, real-world benchmark of UAF bugs be constructed from existing open-source software and real vulnerability reports to support reproducible evaluation of UAF detection tools?

Key findings

  • UAFuzz outperforms AFLGo and Hawkeye in fault detection rate, achieving a 100% success rate in reproducing UAF bugs from real stack traces, compared to lower rates in baseline tools.
  • UAFuzz reduces the time to exposure of UAF bugs by up to 50% compared to existing directed fuzzers, due to its UAF-specific guidance and efficient triage mechanism.
  • The tool successfully discovered 30 new UAF vulnerabilities (7 of which were assigned CVEs) in widely used software including Perl, GPAC, and GNU Patch during patch testing.
  • The lightweight binary instrumentation in UAFuzz adds only a 20-30% performance overhead, significantly lower than the 200%+ overhead of ASan or Valgrind, enabling practical use in fuzzing pipelines.
  • The UAFuzz benchmark, comprising 17 real open-source projects and 30 real UAF bugs, is the largest publicly available UAF-specific fuzzing benchmark to date, supporting reproducible evaluation.
  • UAFuzz’s triage mechanism correctly identifies UAF-triggering inputs with high precision, reducing false positives and eliminating the need for post-fuzzing analysis with memory sanitizers.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.