Blocked Is Not Fixed: Validating C/C++ Spatial Out-of-Bounds Patches with Counterexamples and Runtime Evidence
Abstract
Accepting security patches solely because the original proof-of-vulnerability (PoV) input no longer crashes admits incomplete fixes with residual paths, yet our empirical study shows only 14.3% of refutation rationales from LLM vulnerability verifiers are source-grounded. We formulate patch acceptance as selective prediction with abstention and present Assay, a recompilation-free validator for interprocedural C/C++ spatial out-of-bounds patches. Unlike fuzzing (which struggles with structured formats and makes no acceptance decisions) and review methods trusting model refutations, Assay confines the LLM to input generation in isolated containers while retaining host-side adjudication. It uses binary debug and linkage metadata to deterministically locate unprotected high-risk call sites, then runs two isolated sessions with reachability feedback to synthesize replayable residual counterexamples. Any input reliably crashing the fixed build at the target sink yields an incomplete-fix verdict; otherwise, the host decides acceptance versus abstention from runtime evidence (baseline PoV differential validation, patch-line coverage, exploration steps, and candidate function entry). On 42 patch pairs from 24 unseen projects with official PoVs, PoV replay admits all incomplete fixes (100.0% false acceptance rate, FAR) and 12 CPU-hours of seeded fuzzing detects 15.4%, whereas Assay averages 76.9% detection, 12.8% FAR, and 69.0% valid-patch acceptance (zero false positives). Without official PoVs, Assay averages 71.8% detection, 2.6% FAR, and 58.6% acceptance (zero false positives), outperforming static/review baselines (15.4%-46.2% FAR) and a patch-aware coding agent (61.5% detection, 23.1% FAR), with single-run FAR <= 7.7% across four open-weight model families. On 17 recent pairs (2024-2026) without PoVs, Assay detects 75.0% of incomplete fixes and discovers four unfixed upstream zero-days.
Create a lesson
Metadata
- Categories
- cs.CR, cs.SE
Related papers
Who Sets Bitcoin's Mempool Policy? Evidence from Blocks and Node Snapshots, 2024-2026
Shared title terminologycs.CRSaurabh Kumar
DiffuVader: Validity-Constrained Discrete Diffusion for Flow-Level NIDS Red Teaming
Shared title terminologycs.CRHamed Fard, Ilya Komarov, Gerhard Wunder
Show, Don't Tell: Making Execution Evidence a Prerequisite for Tool Use
Shared title terminologycs.CRChuanqi Shi
Entropy Bounded Secret Key Generation in a Live 5G NR Stack Guard-Band Extraction and an Emulated Channel Operating Envelope
Shared title terminologycs.CRSachinkumar B. Mallikarjun, Hans D. Schotten
Execution-Bound Authorization for Delegated AI Agents
Shared title terminologycs.CRAli Akarma, Gohar Ali, Toqeer Ali Syed et al.
Deterministic Runtime-Adaptive CAN Routing Diversity for Replay Attack Mitigation
Shared title terminologycs.CRAshwin Kulkarni, Aditi Ramadwar