Root-Cause-Driven Automated Vulnerability Repair

Hulin Wang, Zion Leonahenahe Basque, Jie Hu, Ati Priya Bajaj, Yibo Liu, Samuel Zhu, Giorgi Kobakhia, Nikhil Chapre, Will Rosenberg, Siddharth Mishra, Aditya Maheshbhai Gabani, Moritz Schloegel, Adam Doupé, Yan Shoshitaishvili, Ruoyu Wang, Tiffany Bao · 2026

Read Root-Cause-Driven Automated Vulnerability Repair by Hulin Wang, Zion Leonahenahe Basque, Jie Hu, Ati Priya Bajaj, Yibo Liu, Samuel Zhu, Giorgi Kobakhia, Nikhil Chapre, Will Rosenberg, Siddharth Mishra, Aditya Maheshbhai Gabani, Moritz Schloegel, Adam Doupé, Yan Shoshitaishvili, Ruoyu Wang, Tiffany Bao (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2605-04251.txt.

Introduction

Hulin Wang and fifteen co-authors present an automated system for fixing security flaws in code, built around finding the true root cause of each bug. Repair agents often make shallow edits that silence a failure while leaving the real defect in place.

Their agent combines several dynamic fault-finding methods and ranks the evidence to point a language model at the code that matters most. They also introduce a two-level quality check that pairs automated tests with structured expert review. On a set of C and C plus plus flaws, the system beat prior specialist agents under automated scoring.

Catalog record

CREATORHulin Wang, Zion Leonahenahe Basque, Jie Hu, Ati Priya Bajaj, Yibo Liu, Samuel Zhu, Giorgi Kobakhia, Nikhil Chapre, Will Rosenberg, Siddharth Mishra, Aditya Maheshbhai Gabani, Moritz Schloegel, Adam Doupé, Yan Shoshitaishvili, Ruoyu Wang, Tiffany Bao
YEAR2026
COLLECTIONPAPERS
FORMATTXT
FILE SIZE91 KB
LICENSEhttp://creativecommons.org/licenses/by-sa/4.0/
RIGHTSCC BY SA
SOURCEarXiv

Source: https://arxiv.org/abs/2605.04251

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Root-Cause-Driven Automated Vulnerability Repair Conference: ACM Conference on Computer and Communications Security; Due 19 May 2017; Dallas, Texas CCS: Security and privacy Use https://dl.acm.org/ccs.cfm to generate actual concepts section for your paper Hulin Wang, Zion Leonahenahe Basque, Jie Hu, Ati Priya Bajaj, Yibo Liu, Samuel Zhu, Giorgi Kobakhia, Nikhil Chapre, Will Rosenberg, Siddharth Mishra, Aditya Maheshbhai Gabani, Moritz Schloegel, Adam Doupé, Yan Shoshitaishvili, Ruoyu Wang, Tiffany Bao Abstract . Recent LLM-based systems have made automated vulnerability repair increasingly practical, but two challenges remain. First, without strong signals about where a bug originates, repair agents drift toward shallow edits that silence the observed failure while leaving the underlying defect unresolved. Second, finding the root cause for bugs is hard: even developers familiar with the codebase frequently produce fixes that address symptoms rather than the root cause, and LLM-based agents, operating with noisier context and less program understanding, are no exception. We present Kumushi 1 1 1 Kumushi: “Kumu” is Hawaiian for “root,” or “teacher,” and “shi” is Chinese for “teacher”; together, the term denotes a teacher of root cause. , a root-cause-driven patching agent that addresses both challenges by combining diversified dynamic fault localization with evidence-weighted ranking to focus the LLM on the code most relevant to the defect. To rigorously measure whether Kumushi produces genuinely better patches, we also introduce a two-tier patch quality metric that pairs automated oracle validation with structured expert assessment of patches. Evaluated on 178 C/C++ vulnerabilities, Kumushi substantially outperforms prior specialized repair agents under automated evaluation while matching a frontier commercial coding agent. Expert assessment then reveals differences that oracles cannot: Kumushi produces more root-cause fixes and fewer superficial patches, and is preferred in the majority of decisive pairwise comparisons. Together, these results demonstrate that progress in automated vulnerability repair requires not only stronger patching systems, but also richer evaluation methods capable of distinguishing genuine fixes from oracle-passing ones. 1. Introduction Automated vulnerability repair is becoming increasingly critical as the volume of disclosed vulnerabilities continues to grow. Modern fuzzing infrastructure, such as OSS-Fuzz ( 20 ) , has found thousands of bugs accompanied by reproducible proofs of concept (PoCs). More recently, efforts such as Project Glasswing ( 4 ) have uncovered thousands of more vulnerabilities in critical software and show no sign of waning. The resulting backlog far outpaces developers’ triaging capacity, creating a strong demand for tools that can quickly generate correct patches for vulnerable source code ( 36 ) . Recent advances in large language models (LLMs) have given rise to a new class of LLM-based patching agents ( 34 ; 30 ; 56 ; 57 ; 61 ) that address this problem through an iterative workflow: the agent first localizes the fault, then synthesizes a candidate patch, and finally validates it against replay-based test oracles comprising the original PoC and the developer test suite. If validation fails, the agent feeds the error signal back to drive the next round of localization and patch generation. The loop repeats until all oracles pass. Prior work has substantially improved this iterative loop by enabling agents to leverage program analysis techniques, such as static analysis ( 57 ) , symbolic execution ( 56 ) , and dynamic analysis approaches ( 61 ) . Despite recent advances in agentic patching, we observe that existing patching agents fail to reliably address the root causes of vulnerabilities and generate incomplete or incorrect patches. First, root cause localization is fundamentally limited by the underlying analysis techniques. Static approaches, such as PatchAgent ( 57 ) , cannot precisely resolve indirect calls, leading to incorrect localization in cases like the heap out-of-bounds vulnerability in mruby ( 35 ) . In contrast, dynamic approaches based on symbolic execution (e.g., LoopRepair ( 56 ) ) suffer from poor scalability and fail to handle this case in practice. Second, LLM-based patch generation is unstable due to its sensitivity to noisy context. Even when the correct fix location is identified, agents frequently drift and produce incorrect edits ( 2 ; 59 ) . For example, when fixing a heap buffer overflow in hunspell ( 40 ) , PatchAgent correctly identifies the fix location but ultimately patches a nearby incorrect location, distracted by irrelevant context. Both limitations are critical and must be resolved for identifying and fixing root causes effectively. In this paper, we present Kumushi , a root cause-driven patching agent that addresses the issues identified above. To balance the advantages and limitations of static and dynamic analyses, Kumushi employs diversified dynamic fault localization : instead of relying on static analysis alone, it collects execution evidence from a family of crash-triggering inputs, exposing root cause-correlated functions that a single trace would not surface. To prevent LLM’s context drift, Kumushi employs an evidence-weighted ranking stage that consolidates the candidate pool into a ranked set of Functions of Interest, which concentrates the agent’s attention on the most crash-relevant code before patch generation begins. We evaluate the effectiveness of Kumushi and existing approaches in repairing the root causes of software vulnerabilities on real-world open-source projects. During the development of evaluation, we observe that assessing root cause repair is inherently challenging due to the lack of a reliable ground truth . This creates a chicken-and-egg problem: identifying the root cause of a vulnerability is itself non-trivial, which makes it difficult to determine whether a patch correctly addresses it. Automatic root cause identification could be an interesting solution, but it remains an open research problem. Prior work usually treats developer patches as ground truth; however, studies have shown that a significant fraction of developer patches fail to address the underlying defect. Even developers deeply familiar with the codebase frequently produce fixes that target symptoms rather than root causes ( 26 ; 32 ; 51 ) . An alternative is to rely on replay-based oracles ( 24 ) , which re-execute the original PoC and developer test suites to verify that a patch suppresses the observed crash while preserving existing functionality. However, these oracles, analogous to dynamic testing in Programming Language theory, are complete but not sound 2 2 2 In PL theory, a system is sound if a program that passes the system’s checking will not exhibit certain forbidden behaviors at runtime. : a patch may eliminate the observed failure and pass all tests while leaving the underlying defect reachable through alternative execution paths ( 51 ) , even when test suites are augmented with automated techniques such as fuzzing. This coverage gap limits the ability of oracle-based evaluation to distinguish true root-cause fixes from superficial repairs. Therefore, accurately assessing patch quality requires deeper analysis beyond what automated oracles alone can provide. However, such analysis typically requires security expertise and substantial manual effort, which does not scale to comprehensive, real-world evaluations. Consequently, it remains difficult to design an evaluation methodology that balances accuracy and practicality for large-scale, real-world systems. To effectively evaluate Kumushi , we introduce a two-tier root-cause repair quality metric that combines automated oracle validation (“tier 1”) with structured expert assessment (“tier 2”) of patch completeness and correctness. This framework enables a more rigorous evaluation of automated vulnerability patching systems such as Kumushi and provides stronger evidence of its ability to generate genuine root-cause fixes compared to existing state-of-the-art

Read the complete text