Lune

USENIX Security2020Top-tier venue

Fuzzing Error Handling Code using Context-Sensitive Software Fault Injection

Zu-Ming Jiang, Jia-Ju Bai, Kangjie Lu, Shi-Min Hu

Abstract

Error handling code is often critical but difficult to test in reality. As a result, many hard-to-find bugs exist in error handling code and may cause serious security problems once triggered. Fuzzing has become a widely used technique for finding software bugs nowadays. Fuzzing approaches mutate and/or generate various inputs to cover infrequently-executed code. However, existing fuzzing approaches are very limited in testing error handling code, because some of this code can be only triggered by occasional errors (such as insufficient memory and network-connection failures), but not specific inputs. Therefore, existing fuzzing approaches in general cannot effectively test such error handling code. In this paper, we propose a new fuzzing framework named FIFUZZ, to effectively test error handling code and detect bugs. The core of FIFUZZ is a context-sensitive software fault injection (SFI) approach, which can effectively cover error handling code in different calling contexts to find deep bugs hidden in error handling code with complicated contexts. We have implemented FIFUZZ and evaluated it on 9 widelyused C programs. It reports 317 alerts which are caused by 50 unique bugs in terms of the root causes. 32 of these bugs have been confirmed by related developers. We also compare FIFUZZ to existing fuzzing tools (including AFL, AFLFast, AFLSmart and FairFuzz), and find that FIFUZZ finds many bugs missed by these tools. We believe that FIFUZZ can effectively augment existing fuzzing approaches to find many real bugs that have been otherwise missed.

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.

16 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

  • QSYM : A Practical Concolic Execution Engine Tailored for Hybrid Fuzzing cites VUzzer: Application-aware Evolutionary Fuzzing
  • QSYM : A Practical Concolic Execution Engine Tailored for Hybrid Fuzzing cites CollAFL: Path Sensitive Fuzzing
  • QSYM : A Practical Concolic Execution Engine Tailored for Hybrid Fuzzing cites Coverage-based Greybox Fuzzing as Markov Chain
  • MultiFuzz: A Multi-Stream Fuzzer For Testing Monolithic Firmware cites REDQUEEN: Fuzzing with Input-to-State Correspondence
  • VUzzer: Application-aware Evolutionary Fuzzing cites Coverage-based Greybox Fuzzing as Markov Chain
  • Detecting Transactional Bugs in Database Engines via Graph-Based Oracle Construction cites Coverage-based Greybox Fuzzing as Markov Chain
  • CollAFL: Path Sensitive Fuzzing cites VUzzer: Application-aware Evolutionary Fuzzing
  • CollAFL: Path Sensitive Fuzzing cites Coverage-based Greybox Fuzzing as Markov Chain
  • Path Transitions Tell More: Optimizing Fuzzing Schedules via Runtime Program States cites QSYM : A Practical Concolic Execution Engine Tailored for Hybrid Fuzzing
  • Path Transitions Tell More: Optimizing Fuzzing Schedules via Runtime Program States cites VUzzer: Application-aware Evolutionary Fuzzing
  • Path Transitions Tell More: Optimizing Fuzzing Schedules via Runtime Program States cites CollAFL: Path Sensitive Fuzzing
  • Path Transitions Tell More: Optimizing Fuzzing Schedules via Runtime Program States cites REDQUEEN: Fuzzing with Input-to-State Correspondence
  • Path Transitions Tell More: Optimizing Fuzzing Schedules via Runtime Program States cites Coverage-based Greybox Fuzzing as Markov Chain
  • REDQUEEN: Fuzzing with Input-to-State Correspondence cites CollAFL: Path Sensitive Fuzzing
  • REDQUEEN: Fuzzing with Input-to-State Correspondence cites Coverage-based Greybox Fuzzing as Markov Chain
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers16

  1. Push-Button Reliability Testing for Cloud-Backed Applications with RainmakerYinfang Chen, Xudong Sun, Suman Nath, Ze Yang et al.NSDI 2023 · 29 citations
  2. Detecting Transactional Bugs in Database Engines via Graph-Based Oracle ConstructionZu-Ming Jiang, Si Liu, Manuel Rigger, Zhendong SuOSDI 2023 · 28 citations
  3. Path Transitions Tell More: Optimizing Fuzzing Schedules via Runtime Program StatesKunpeng Zhang, Xi Xiao, Xiaogang Zhu, Ruoxi Sun et al.ICSE 2022 · 25 citations
  4. IFIZZ: Deep-State and Efficient Fault-Scenario Generation to Test IoT FirmwarePeiyu Liu, Shouling Ji, Xuhong Zhang, Qinming Dai et al.ASE 2021 · 16 citations
  5. MultiFuzz: A Multi-Stream Fuzzer For Testing Monolithic FirmwareMichael Chesser, Surya Nepal, Damith C. RanasingheUSENIX Security 2024 · 13 citations

Builds on11

  1. Coverage-based Greybox Fuzzing as Markov ChainMarcel Böhme, Van-Thuan Pham, Abhik RoychoudhuryCCS 2016 · 1,026 citations
  2. VUzzer: Application-aware Evolutionary FuzzingSanjay Rawat, Vivek Jain, Ashish Kumar, Lucian Cojocar et al.NDSS 2017 · 700 citations
  3. QSYM : A Practical Concolic Execution Engine Tailored for Hybrid FuzzingInsu Yun, Sangho Lee, Meng Xu, Yeongjin Jang et al.USENIX Security 2018 · 537 citations
  4. CollAFL: Path Sensitive FuzzingShuitao Gan, Chao Zhang, Xiaojun Qin, Xuwen Tu et al.S&P 2018 · 426 citations
  5. REDQUEEN: Fuzzing with Input-to-State CorrespondenceCornelius Aschermann, Sergej Schumilo, Tim Blazytko, Robert Gawlik et al.NDSS 2019 · 413 citations

Related papers

  1. CAFault: Enhance Fault Injection Technique in Practical Distributed Systems via Abundant Fault-Dependent ConfigurationsYuanliang Chen, Fuchen Ma, Yuanhang Zhou, Zhen Yan et al.USENIX ATC 2025 · 7 citations
  2. MemLock: memory usage guided fuzzingCheng Wen, Haijun Wang, Yuekang Li, Shengchao Qin et al.ICSE 2020 · 116 citations
  3. Sand: Decoupling Sanitization from Fuzzing for Low OverheadZiqiao Kong, Shaohua Li, Heqing Huang, Zhendong SuICSE 2025 · 1 citation
  4. USBFuzz: A Framework for Fuzzing USB Drivers by Device EmulationHui Peng, Mathias PayerUSENIX Security 2020
  5. So Many Fuzzers, So Little Time✱: Experience from Evaluating Fuzzers on the Contiki-NG Network (Hay)StackClement Poncelet, Konstantinos Sagonas, Nicolas TsiftesASE 2022 · 5 citations
Dusk over the sea between two cliffs drawn in fine vertical lines