Beyond True or False: Why You Can't Trust the Reasoning in LLM-Generated Vulnerability Reports
When a state-of-the-art LLM labels a function as vulnerable, can we trust its explanation? This paper first reveals a worrisome fact: 30.3% of correct verdicts from LLMs are produced through \textit{hallucinated or causally wrong reasoning}. While prior work has partially observed this phenomenon, no study has quantified its prevalence, taxonomized its failure modes, or proposed a structural fix. We aim to address all three. First, we construct reasoning-level datasets: real-world vulnerabilities across 149 CWE types annotated with evidence-based reasoning chains, and semantically equivalent code perturbations for robustness testing. Through open coding of 400 reasoning traces across 10 LLMs, we identify 12 systematic failure modes, among which code comprehension and logical reasoning errors are the most prevalent. Motivated by these findings, we propose DagVul, which models vulnerability reasoning as a Directed Acyclic Graph (DAG) generation task, enforcing causal dependencies between reasoning steps and aligning them with program semantics via Reinforcement Learning with Verifiable Rewards (RLVR). DagVul improves reasoning F1-score by an average of 13.3% over baselines. Our 8B-parameter model achieves performance comparable to Claude-Sonnet-4.5 under CWE-Guided prompting (78.90% vs. 76.11%) in the evaluated setting. These results support the combined benefits of structured causal reasoning and training on curated, task-specific data for vulnerability analysis.