← Lab /Software

Most vulnerabilities affect only a few configuration options, not the whole system

PatchLens can automatically infer precise configuration predicates for security patches without compiling variants

Software arXiv 24 Jun 2026 Method Prototype evidence

Published as “Automated Detection of Configuration-Specific Security Vulnerabilities via Patch Analysis”

Why it matters

PatchLens enables maintainers to target patch rollouts and enrich vulnerability advisories with exact configuration requirements, reducing unnecessary updates and improving security decision-making.

Summary

PatchLens can automatically compute precise Boolean vulnerability impact conditions for the majority of security patches in large C/C++ projects without building any variants, achieving ≈88.67% success on Linux, ≈96.88% on FFmpeg, and 68% on PHP, and manual validation found no incorrect formulas with only 5.4% over-approximation. Only a small fraction of vulnerabilities affect all possible configurations (≈6.24% in Linux, ≈39.70% in PHP, 0% in FFmpeg), and those system-wide bugs have higher CVSS scores (average 5.94 vs. 4.76 overall). The study also shows that CVE descriptions rarely mention the required configuration options (1.50% coverage, 0.90% recall), indicating a clear opportunity for automated enrichment.

What they found 6

  1. High static analysis success rate across projects

    “PatchLens uses static analysis to rapidly compute presence conditions for the vast majority of real-world patches without building variants-≈88.67% on Linux, ≈96.88% on FFmpeg, and 68% on PHP.”

  2. Very few vulnerabilities affect all variants, and those have higher severity

    “In the Linux kernel, 66 patches (≈6.24%) of the 1,057 analyzed exhibit a tautological presence condition, indicating system-wide vulnerabilities.”

  3. PHP shows a higher proportion of system-wide vulnerabilities

    “In PHP, 27 of the 68 analyzed patches (≈39.70%) likewise affect every variant”

  4. No incorrect VICs were found; only limited over-approximation

    “Across all reviewed entries, we found no inaccurate VICs, providing empirical evidence that the automatically derived impact conditions correctly characterize the affected variant subspaces within our dataset.”

  5. System-wide CVEs have higher CVSS scores

    “the overall mean across our dataset is ≈4.76, whereas system-wide CVEs average ≈5.94 -an absolute increase of 1.18 points (≈24% higher).”

  6. CVE descriptions rarely mention required configuration options

    “only 1.50% of descriptions mention at least one required option (coverage), and on average only 0.90% of the options present in an impact formula are mentioned (recall).”

Caveats 8

  • 5.4% of reviewed reports were over-approximate, adding extra configuration flags to the VIC.
  • PatchLens failed to compute a presence condition for 32% of PHP patches (success rate 68%).
  • The tool cannot handle complex macro/preprocessor constructs, leading to incomplete formulas in some cases.
  • Header-file transitive effects are not modeled, potentially under-reporting affected variants.
  • Macro and preprocessor complexity, such as deeply nested conditional directives, code generation via macros, and nonstandard preprocessor extensions, can impede accurate AST-based extraction of VICs. This limitation, exemplified by PHP’s 32% processing failure rate, may lead to incomplete or imprecise impact formulas.
  • PatchLens does not model the transitive effect of changes in header files on including translation units.
  • our patch corpus is drawn solely from GitHub commit references in NVD feeds and from PatchDB. Vulnerabilities fixed through other channels-such as proprietary patches, fixes on mailing lists, or vendor advisories without GitHub commits-are excluded, potentially skewing both the project distribution and the types of vulnerabilities analyzed.
  • All experiments target C and C++ codebases. Systems implemented in languages with runtime or dynamic variability (e.g., Java, Python, JavaScript), or mixed-language projects, may employ different configuration mechanisms and are not covered.

What’s new here 4

  • Computes a full Vulnerability Impact Condition (VIC) as a Boolean formula over configuration options, not just per-variant filtering.
  • Performs the analysis statically on AST-level diffs and build-system variability, avoiding any variant compilation.
  • Applies the technique at scale to thousands of real-world patches across Linux, FFmpeg, and PHP, producing human-readable formulas.
  • Demonstrates how the derived VICs can enrich CVE entries with precise compile-time requirements.