Automated Vulnerability Repair (AVR) has emerged as a promising approach to identifying and fixing software vulnerabilities autonomously. Early LLM-based approaches focused on patch generation under the assumption of perfect fault localization, while recent end-to-end methods attempt to repair vulnerabilities directly from sanitizer logs. However, these methods often fail when the root cause is deeply hidden, either physically distant from the crash site or logically masked by interdependent errors, making the initial report insufficient. We propose DeepAVR, a multi-agent framework that transforms intermediate repair outcomes into structured diagnostic feedback. It coordinates specialized agents for fault localization, patch generation, compilation, security and functionality validation, and patch review to iteratively refine localization and patch hypotheses. Specifically, DeepAVR introduces patch-conditioned re-localization, using execution results from intermediate patches to uncover hidden root causes, and root-cause-oriented patch review to identify symptom-level fixes and incomplete repairs that escape execution-based validation. Evaluation on VulnLoc, a real-world C/C++ vulnerability repair dataset, shows that DeepAVR outperforms prior methods, generating correct patches for 92.3% of vulnerabilities. Evaluation on SAN2VULN demonstrates its ability to repair vulnerabilities unseen during training. On SEC-bench, DeepAVR outperforms the evaluated baselines on cases whose fixes lie outside the crash-site function.
翻译:暂无翻译