DEBIAN-CVE-2026-31972
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.
DEBIAN-CVE-2026-31972
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:DEBIAN-CVE-2026-31972
samtools
Source reference: /affected/0/package/name
- Affected versions
- 1.16.1-1
Source reference:
/affected/0/versions1.17-0+exp1Source reference:
/affected/0/versions1.17-1Source reference:
/affected/0/versions1.18-1Source reference:
/affected/0/versions1.19-1Source reference:
/affected/0/versions1.19.2-1Source reference:
/affected/0/versions1.20-1Source reference:
/affected/0/versions1.20-2Source reference:
/affected/0/versions1.20-3Source reference:
/affected/0/versions1.21-0+exp1Source reference:
/affected/0/versions1.21-1Source reference:
/affected/0/versions1.22.1-1Source reference:
/affected/0/versions1.24-1Source reference:
/affected/0/versions1.24-2Source reference:
/affected/0/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
samtools
Source reference: /affected/1/package/name
- Affected versions
- 1.21-1
Source reference:
/affected/1/versions1.22.1-1Source reference:
/affected/1/versions1.24-1Source reference:
/affected/1/versions1.24-2Source reference:
/affected/1/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
samtools
Source reference: /affected/2/package/name
- Affected versions
- 1.21-1
Source reference:
/affected/2/versions1.22.1-1Source reference:
/affected/2/versions1.24-1Source reference:
/affected/2/versions1.24-2Source reference:
/affected/2/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "samtools",
"purl": "pkg:deb/debian/samtools?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"1.16.1-1",
"1.17-0+exp1",
"1.17-1",
"1.18-1",
"1.19-1",
"1.19.2-1",
"1.20-1",
"1.20-2",
"1.20-3",
"1.21-0+exp1",
"1.21-1",
"1.22.1-1",
"1.24-1",
"1.24-2"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-31972.json"
},
"ecosystem_specific": {
"urgency": "unimportant"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "samtools",
"purl": "pkg:deb/debian/samtools?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"1.21-1",
"1.22.1-1",
"1.24-1",
"1.24-2"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-31972.json"
},
"ecosystem_specific": {
"urgency": "unimportant"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "samtools",
"purl": "pkg:deb/debian/samtools?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"1.21-1",
"1.22.1-1",
"1.24-1",
"1.24-2"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-31972.json"
},
"ecosystem_specific": {
"urgency": "unimportant"
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #57505 · Revision 1
- Added to Heist Feed
- Publisher date