← Lab /Software

AutoSOUP automatically generates component-level memory-safety proofs

AutoSOUP can automate component-level memory-safety verification and expose vulnerabilities

Software arXiv 11 May 2026 Method Prototype evidence

Published as “AutoSOUP: Safety-Oriented Unit Proof Generation for Component-level Memory-Safety Verification”

Why it matters

AutoSOUP makes automated memory-safety verification of embedded components practical, reducing manual effort and uncovering previously unknown vulnerabilities.

Summary

AutoSOUP automatically generates safety-oriented unit proofs for component-level bounded model checking and exposes 66.7% of known CVEs in four embedded RTOSes, far higher than the 28.3% achieved by a Codex-based baseline and 41.7% by Seeker. It also produces valid unit proofs for 93% of targets versus 31.6% for Codex, and achieves up to 155% more verified lines of code. The evaluation covers 177 components from Zephyr, RIOT, Contiki-NG and FreeRTOS and reports 20 previously unknown memory-safety bugs. Evidence comes from a controlled experiment with real CVEs and public code, but exposure is limited by CBMC’s modeling gaps and scope choices.

What they found 4

  1. AutoSOUP exposed 66.7% of recreated CVEs at scope level 1 and 65% at scope level 2.

    “AutoSOUP-S1 and AutoSOUP-S2 exposed 66.7% and 65% of CVEs, respectively.”

  2. AutoSOUP generated valid unit proofs for 93% of targets, far exceeding Codex’s 31.6% success rate.

    “AutoSOUP produced substantially more valid unit proofs than Codex: 93%, 89.5% and 91.7% for scope levels 1 and 2 and the randomly selected targets, respectively, compared with 31.6% for CodexUP.”

  3. AutoSOUP achieved up to 155% more verified lines of code than Codex.

    “AutoSOUP, at scope levels 1 and 2, covered and verified 88.2% and 155% more lines of code compared to Codex’ 57.8 lines of code.”

  4. The system discovered 20 new externally triggerable memory-safety vulnerabilities.

    “After reviewing a subset of these reports, we confirmed 20 new externally triggerable vulnerabilities (Table 3).”

Caveats 6

  • AutoSOUP still missed 34.3% of the recreated CVEs, exposing only two-thirds of them.
  • Scope-level 2 reduced exposure to 65% compared with 66.7% at level 1, showing that wider scope can hurt coverage.
  • CBMC’s inability to report struct-field overflows that stay within the allocated object caused missed violations.
  • The CBMC limitations appeared in two forms. First, CBMC reports a spatial memory-safety violation only when an access leaves the allocated object. However, for structs, AutoSOUP’s propertyguided loop-bound analysis computes the bound needed to overflow the destination field, not necessarily the containing object. Thus, when a write overflows a struct field but remains within the same allocated struct object, CBMC does not report a violation.
  • Second, ... required semantics that CBMC did not model. One was a memory-leak, missed because the corresponding custom deallocator is not supported. The second required timer semantics for exposure.
  • For AutoSOUP-S1, missed CVEs were primarily caused by limited scope, CBMC limitations, or vulnerabilities that were not triggerable from the project context.

What’s new here 4

  • Automates construction of safety-oriented unit proofs for component-level bounded model checking.
  • Introduces a hybrid LLM-as-function-call architecture that combines deterministic analysis with LLMs for proof-artifact generation.
  • Presents three techniques-resource-aware scope widening, property-guided loop-bound selection, and context-aware environment refinement-to derive verification choices automatically.
  • Demonstrates higher CVE exposure and discovers 20 new memory-safety vulnerabilities in real embedded operating systems.