An Empirical Study of Publicly Available Static Analysis Tools for Detecting Use-After-Free and Double-Free Vulnerabilities
Authors:
- Hripsime HovhannisyanHHHripsime Hovhannisyan
- Gayane MirakyanGMGayane Mirakyan
- Edgar KhachatryanEKEdgar Khachatryan
- Hayk AslanyanHAHayk Aslanyan
Preprint
- 31 August 2026
- preprint
- Published by Elsevier in SSRN Electronic Journal
Abstract
Memory-related errors, such as use-after-free and double-free vulnerabilities, remain critical security threats in C/C++ software. This work presents an empirical study of eleven openly accessible static analysis tools for detecting these vulnerabilities. We first evaluated the tools based on key technical properties: flow, path, context, and field sensitivity. Our experiments showed that eight of the eleven tools passed all considered sensitivities checks. We further assessed the tools' efficacy using the Juliet Test Suite for CWE-415 (double-free) and CWE-416 (use-after-free). On C-based test cases, CBMC, Symbiotic, and CPAchecker achieved a 100% true positive rate for double-free detection, while Frama-C achieved the same for use-after-free detection. For C++ test cases, no tool achieved a perfect score; however, KLEE showed the highest true positive rate for double-free (98.63%) and IKOS for use-after-free (84.42%) detection. The false positive rate across all tools remained below 9.3% on the test cases. Finally, the evaluation on 37 real-world CVEs revealed significantly lower detection rates, with tools collectively detecting only 20% of double-free and 39% of use-after-free vulnerabilities. In these real-world scenarios, SVF achieved the highest true positive rate for double-free (10%), while Clang Static Analyzer with CodeChecker performed best for use-after-free (27.7%). These results highlight a significant gap between synthetic benchmarks and real-world vulnerability detection and indicate the need for improved handling of real-world code complexity in static analysis tools.Keywords
This publication has 9 references indexed in Scilit:
- A Comprehensive Review of Static Memory AnalysisIEEE Access, 2024
- KDAlloc: The KLEE Deterministic Allocator: Deterministic Memory Allocation during Symbolic Execution and Test Case Replay2023
- An empirical study on the effectiveness of static C code analyzers for vulnerability detection2022
- Automated Use-After-Free Detection and Exploit Mitigation: How Far Have We Gone?IEEE Transactions on Software Engineering, 2021
- CPAchecker: A Tool for Configurable Software Verification2011
- Infer: An Automatic Program Verifier for Memory Safety of C Programs2011
- Valgrind2007
- CIL: Intermediate Language and Tools for Analysis and Transformation of C Programs2002
- An axiomatic basis for computer programmingCommunications of the ACM, 1969