Skip to main content
QUICK REVIEW

[Paper Review] MUZZ: Thread-aware Grey-box Fuzzing for Effective Bug Hunting in Multithreaded Programs

Hongxu Chen, Shengjian Guo|arXiv (Cornell University)|Jul 31, 2020
Software Testing and Debugging TechniquesComputer Science26 citations
TL;DR

Muzz is a thread-aware grey-box fuzzer that enhances traditional fuzzing for multithreaded programs through three novel instrumentations—coverage-oriented, thread-context, and schedule-intervention—that generate runtime feedback to guide seed selection and execution strategies. It outperforms AFL in detecting concurrency vulnerabilities and revealing concurrency bugs, uncovering 8 new vulnerabilities and 19 new bugs in 12 real-world programs, with four receiving CVE IDs.

ABSTRACT

Grey-box fuzz testing has revealed thousands of vulnerabilities in real-world software owing to its lightweight instrumentation, fast coverage feedback, and dynamic adjusting strategies. However, directly applying grey-box fuzzing to input-dependent multithreaded programs can be extremely inefficient. In practice, multithreading-relevant bugs are usually buried in sophisticated program flows. Meanwhile, the existing grey-box fuzzing techniques do not stress thread-interleavings which affect execution states in multithreaded programs. Therefore, mainstream grey-box fuzzers cannot effectively test problematic segments in multithreaded programs despite they might obtain high code coverage statistics. To this end, we propose MUZZ, a new grey-box fuzzing technique that hunts for bugs in multithreaded programs. MUZZ owns three novel thread-aware instrumentations, namely coverage-oriented instrumentation, thread-context instrumentation, and schedule-intervention instrumentation. During fuzzing, these instrumentations engender runtime feedback to stress execution states caused by thread interleavings. By leveraging the feedback in the dynamic seed selection and execution strategies, MUZZ preserves more valuable seeds that expose bugs in a multithreading context. We evaluate MUZZ on 12 real-world software programs. Experiments show that MUZZ outperforms AFL in both multithreading-relevant seed generation and concurrency-vulnerability detection. Further, by replaying the target programs against the generated seeds, MUZZ also reveals more concurrency-bugs (e.g., data-races, thread-leaks) than AFL. In total, MUZZ detected 8 new concurrency-vulnerabilities and 19 new concurrency-bugs. At the time of writing, 4 CVE IDs have been assigned to the reported issues.

Motivation & Objective

  • Address the inefficiency of mainstream grey-box fuzzers in testing input-dependent, multithreaded programs due to their unawareness of thread-interleavings.
  • Overcome the limitation that existing fuzzers fail to stress execution states caused by complex thread scheduling, leading to missed concurrency vulnerabilities and bugs.
  • Develop a fuzzer that generates seeds specifically targeting multithreading-relevant paths by leveraging runtime feedback from thread-aware instrumentation.
  • Improve both multithreading-relevant seed generation and detection of concurrency vulnerabilities and bugs in real-world multithreaded software.
  • Integrate with existing dynamic concurrency-bug detectors (e.g., TSan) to replay generated seeds and reveal previously undetected concurrency issues.

Proposed method

  • Introduce coverage-oriented instrumentation to track code coverage while distinguishing execution states influenced by thread interleavings.
  • Implement thread-context instrumentation to monitor and record the state of threads during execution, enabling identification of interleaving-specific behaviors.
  • Apply schedule-intervention instrumentation to actively diversify thread scheduling during fuzzing, increasing the likelihood of triggering rare or complex interleavings.
  • Use feedback from the three instrumentations to guide dynamic seed selection, prioritizing seeds that explore multithreading-relevant paths.
  • Optimize execution strategies based on thread-aware feedback to enhance exploration of concurrency-sensitive code regions.
  • Integrate with existing dynamic concurrency-bug detectors (e.g., TSan) to replay generated seeds and detect data races, deadlocks, and other concurrency bugs.

Experimental results

Research questions

  • RQ1Can thread-aware instrumentation improve the effectiveness of grey-box fuzzing in multithreaded programs compared to traditional approaches?
  • RQ2To what extent can feedback from thread-interleaving-sensitive instrumentation enhance seed selection and execution strategy in fuzzing?
  • RQ3Can Muzz detect more concurrency vulnerabilities and bugs than AFL and other state-of-the-art fuzzers in real-world multithreaded software?
  • RQ4How effective is Muzz in uncovering previously undetected concurrency vulnerabilities and bugs when combined with dynamic analysis tools like TSan?
  • RQ5Can schedule-intervention instrumentation significantly increase the diversity of thread interleavings explored during fuzzing, leading to better coverage of multithreading-relevant paths?

Key findings

  • Muzz outperforms AFL in generating multithreading-relevant seeds, demonstrating superior effectiveness in targeting complex execution states caused by thread interleavings.
  • Muzz detected 8 new concurrency vulnerabilities in real-world multithreaded programs, with 4 of them assigned CVE IDs.
  • By replaying generated seeds with TSan, Muzz revealed 19 new concurrency bugs, including data races and thread leaks, that were undetected by AFL.
  • The integration of coverage-oriented, thread-context, and schedule-intervention instrumentations significantly improved feedback quality and guided more effective fuzzing exploration.
  • Experiments on 12 real-world programs confirmed that Muzz achieves higher code coverage on multithreading-relevant paths and detects more concurrency issues than AFL and MOpt.
  • The feedback-driven seed selection and execution strategies in Muzz effectively preserve and prioritize seeds that expose bugs under complex thread-interleaving conditions.

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.