USENIX Security2021Top-tier venue
Precise and Scalable Detection of Use-after-Compacting-Garbage-Collection Bugs
HyungSeok Han, Andrew Wesie, Brian Pak
Abstract
Compacting garbage collection (compact-gc) is a method that improves memory utilization and reduces memory fragmentation by rearranging live objects and updating their references using an address table. A critical use-after-free bug may exist if an object reference that is not registered in the address table is used after compact-gc, as the live object may be moved but the reference will not be updated after compact-gc. We refer to this as a use-after-compact-gc (use-after-cgc) bug. Prior tools have attempted to statically detect these bugs with targetspecific heuristics. However, due to their path-insensitive analysis and imprecise target-specific heuristics, they have high false-positives and false-negatives. In this paper, we present a precise and scalable static analyzer, named CGSan, for finding use-after-cgc bugs. CGSan detects use-after-cgc bug candidates by intra-procedural static symbolic taint analysis and checks their feasibility by underconstrained directed symbolic execution. To mitigate the incompleteness of intra-procedural analysis, we employ a typebased taint policy. For scalability, we propose using directed inter-procedural control-flow graphs, which reduce search spaces by excluding paths irrelevant to checking feasibility, and directed scheduling, which prioritizes paths to quickly check feasibility. We evaluated CGSan on Google V8 and Mozilla SpiderMonkey, and we found 13 unique use-after-cgc bugs with only 2 false-positives while two prior tools missed 10 bugs and had 34 false-positives in total.
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.
5 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Where Does It Go?: Refining Indirect-Call Targets with Multi-Layer Type Analysis cites APISan: Sanitizing API Usages through Semantic Cross-Checking
- Where Does It Go?: Refining Indirect-Call Targets with Multi-Layer Type Analysis cites Precise and Scalable Detection of Double-Fetch Bugs in OS Kernels
- Where Does It Go?: Refining Indirect-Call Targets with Multi-Layer Type Analysis cites Detecting Missing-Check Bugs via Semantic- and Context-Aware Criticalness and Constraints Inferences
- Improving Indirect-Call Analysis in LLVM with Type and Data-Flow Co-Analysis cites Where Does It Go?: Refining Indirect-Call Targets with Multi-Layer Type Analysis
- Improving Indirect-Call Analysis in LLVM with Type and Data-Flow Co-Analysis cites Precise and Scalable Detection of Double-Fetch Bugs in OS Kernels
- Improving Indirect-Call Analysis in LLVM with Type and Data-Flow Co-Analysis cites Detecting Missing-Check Bugs via Semantic- and Context-Aware Criticalness and Constraints Inferences
- Statically Discover Cross-Entry Use-After-Free Vulnerabilities in the Linux Kernel cites Where Does It Go?: Refining Indirect-Call Targets with Multi-Layer Type Analysis
- Statically Discover Cross-Entry Use-After-Free Vulnerabilities in the Linux Kernel cites Detecting Missing-Check Bugs via Semantic- and Context-Aware Criticalness and Constraints Inferences
- QueryX: Symbolic Query on Decompiled Code for Finding Bugs in COTS Binaries cites Precise and Scalable Detection of Double-Fetch Bugs in OS Kernels
- QueryX: Symbolic Query on Decompiled Code for Finding Bugs in COTS Binaries cites Detecting Missing-Check Bugs via Semantic- and Context-Aware Criticalness and Constraints Inferences
- Redefining Indirect Call Analysis with KallGraph cites Where Does It Go?: Refining Indirect-Call Targets with Multi-Layer Type Analysis
- Redefining Indirect Call Analysis with KallGraph cites Improving Indirect-Call Analysis in LLVM with Type and Data-Flow Co-Analysis
- Redefining Indirect Call Analysis with KallGraph cites Statically Discover Cross-Entry Use-After-Free Vulnerabilities in the Linux Kernel
Cited by top-tier papers5
- Improving Indirect-Call Analysis in LLVM with Type and Data-Flow Co-AnalysisDinghao Liu, Shouling Ji, Kangjie Lu, Qinming HeUSENIX Security 2024 · 13 citations
- Statically Discover Cross-Entry Use-After-Free Vulnerabilities in the Linux KernelHang Zhang, Jangha Kim, Chuhong Yuan, Zhiyun Qian et al.NDSS 2025
- QueryX: Symbolic Query on Decompiled Code for Finding Bugs in COTS BinariesHyungSeok Han, JeongOh Kyea, Yonghwi Jin, Jinoh Kang et al.S&P 2023
- CrossFit: Demystifying VM Callback Bugs in InterpretersChibin Zhang, Qiang Liu, Mathias PayerFSE 2026
- Redefining Indirect Call Analysis with KallGraphGuoren Li, Manu Sridharan, Zhiyun QianS&P 2025
Builds on11
- QSYM : A Practical Concolic Execution Engine Tailored for Hybrid FuzzingInsu Yun, Sangho Lee, Meng Xu, Yeongjin Jang et al.USENIX Security 2018 · 537 citations
- Where Does It Go?: Refining Indirect-Call Targets with Multi-Layer Type AnalysisKangjie Lu, Hong HuCCS 2019 · 142 citations
- APISan: Sanitizing API Usages through Semantic Cross-CheckingInsu Yun, Changwoo Min, Xujie Si, Yeongjin Jang et al.USENIX Security 2016 · 107 citations
- Detecting Missing-Check Bugs via Semantic- and Context-Aware Criticalness and Constraints InferencesKangjie Lu, Aditya Pakki, Qiushi WuUSENIX Security 2019 · 97 citations
- Precise and Scalable Detection of Double-Fetch Bugs in OS KernelsMeng Xu, Chenxiong Qian, Kangjie Lu, Michael Backes et al.S&P 2018 · 95 citations
Related papers
- UAFSan: an object-identifier-based dynamic approach for detecting use-after-free vulnerabilitiesBinfa Gui, Wei Song, Jeff HuangISSTA 2021 · 9 citations
- Evaluating the Effectiveness of Memory Safety SanitizersEmanuel Q. Vintila, Philipp Zieris, Julian HorschS&P 2025
- A Compilation-Based Under-Constrained Execution EngineMingjun Yin, Zhaorui Li, Ju Chen, Haochen Zeng et al.OSDI 2026
- Debloating Address SanitizerYuchen Zhang, Chengbin Pang, Georgios Portokalidis, Nikos Triandopoulos et al.USENIX Security 2022
- Check It Again: Detecting Lacking-Recheck Bugs in OS KernelsWenwen Wang, Kangjie Lu, Pen-Chung YewCCS 2018 · 49 citations
