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.