CVE-2026-31972: Samtools Mplp Ref Undersized Lru Cache Uaf
The mpileup reference cache struct uses only 2 slots (char *ref[2] / int ref_id[2] / hts_pos_t ref_len[2]), but the pileup pipeline with `-a` can require 3 concurrent live references (current contig, previous contig still being flushed for -a, and a look-ahead loaded by bam_mplp64_auto). With only 2 slots, mplp_get_ref() evicts and free()s a reference buffer
greprules fetch cve-2026-31972-samtools-mplp-ref-undersized-lru-cache-uaf --engine opengrepDescription
The mpileup reference cache struct uses only 2 slots (char *ref[2] / int ref_id[2] / hts_pos_t ref_len[2]), but the pileup pipeline with `-a` can require 3 concurrent live references (current contig, previous contig still being flushed for -a, and a look-ahead loaded by bam_mplp64_auto). With only 2 slots, mplp_get_ref() evicts and free()s a reference buffer
Community feedback
0 rule-level signals from signed-in users.
- Useful reports
- 0
- Context false positives
- 0
- Metadata suggestions
- 0
Contextual precision
Aggregated from approved scan feedback. False-positive reports describe observed scan contexts, not a global rule verdict.
- Findings observed
- 0
- Projects
- 0
- Reporters
- 0
Precision details are collecting more signed-in reports before verdict counts or ratios are emphasized.
No approved finding verdicts yet.
No scan diagnostics reported yet.