Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2026-31972— samtools mpileup has use-after-free leading to an invalid read

EPSS 0.02% · P6
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-31972

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
samtools mpileup has use-after-free leading to an invalid read
Source: NVD (National Vulnerability Database)
Vulnerability Description
SAMtools is a program for reading, manipulating and writing bioinformatics file formats. The `mpileup` command outputs DNA sequences that have been aligned against a known reference. On each output line it writes the reference position, optionally the reference DNA base at that position (obtained from a separate file) and all of the DNA bases that aligned to that position. As the output is ordered by position, reference data that is no longer needed is discarded once it has been printed out. Under certain conditions the data could be discarded too early, leading to an attempt to read from a pointer to freed memory. This bug may allow information about program state to be leaked. It may also cause a program crash through an attempt to access invalid memory. This bug is fixed in versions 1.21.1 and 1.22. There is no workaround for this issue.
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
释放后使用
Source: NVD (National Vulnerability Database)
Vulnerability Title
samtools 资源管理错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
samtools是samtools开源的一个处理高通量测序数据的工具集。 samtools 1.21.1之前版本和1.22之前版本存在资源管理错误漏洞,该漏洞源于mpileup命令过早丢弃数据,可能导致读取已释放内存。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
samtoolssamtools < 1.21.1 -

II. Public POCs for CVE-2026-31972

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-31972

登录查看更多情报信息。

Same Patch Batch · samtools · 2026-03-18 · 12 CVEs total

CVE-2026-31962HTSlib CRAM reader has heap buffer overflow due to improper validation of input
CVE-2026-31964HTSlib CRAM decoder has a NULL Pointer Dereference
CVE-2026-31963HTSlib CRAM reader has heap buffer overflow due to improper validation of input
CVE-2026-31965HTSlib CRAM reader has out-of-bounds reads due to improper validation of input
CVE-2026-31966HTSlib CRAM reader has out-of-bounds read due to improper validation of input
CVE-2026-31967HTSlib CRAM reader has out-of-bounds read due to improper validation of input
CVE-2026-31968HTSlib CRAM decoder vulnerable to buffer overflow
CVE-2026-31971HTSlib CRAM decoder vulnerable to buffer overflow
CVE-2026-31969HTSlib CRAM decoder has a heap buffer overflow
CVE-2026-31970HTSlib BGZF index file reader has a heap buffer overflow
CVE-2026-31973NULL pointer dereference in samtools cram-size

IV. Related Vulnerabilities

V. Comments for CVE-2026-31972

No comments yet


Leave a comment