CVE-2026-31973 NULL pointer dereference in samtools cram-size
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
SAMtools is a program for reading, manipulating and writing bioinformatics file formats. Starting in version 1.17, in the cram-size command, used to write information about how well CRAM files are compressed, a check to see if the cram_decode_compression_header() was missing. If the function returned an error, this could lead to a NULL pointer dereference. Exploiting this bug causes a NULL pointer dereference. Typically this will cause the program to crash. Versions 1.23.1, 1.22.2 and 1.21.1 include fixes for this issue. There is no workaround for this issue.
Upgrade path
8 packages: 2 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/samtools(Debian 12) | = 1.16.1-1; = 1.17-0+exp1; = 1.17-1; = 1.18-1 +11 more | No fix listed | No fix yet |
| debian/samtools(Debian 13) | = 1.21-1; = 1.22.1-1; = 1.24-1; = 1.24-2 +1 more | No fix listed | No fix yet |
| ubuntu/samtools(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/samtools(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/samtools(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/samtools(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/samtools(Debian 14) | < 1.24-2; = 1.21-1; = 1.22.1-1; = 1.24-1 | 1.24-2 | Fixed |
| samtools | = 1.23; = = 1.23; = >= 1.17, < 1.21.1; = >= 1.22, < 1.22.2 +2 more | 1.22.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| samtools | = >= 1.17, < 1.21.1 | No fix listed |
| samtools | = >= 1.22, < 1.22.2 | No fix listed |
| samtools | = = 1.23 | No fix listed |
| debian/samtools(Debian:12) | All versions | No fix listed |
| debian/samtools(Debian:12) | = 1.16.1-1 | No fix listed |
| debian/samtools(Debian:12) | = 1.17-0+exp1 | No fix listed |
| debian/samtools(Debian:12) | = 1.17-1 | No fix listed |
| debian/samtools(Debian:12) | = 1.18-1 | No fix listed |
| debian/samtools(Debian:12) | = 1.19-1 | No fix listed |
| debian/samtools(Debian:12) | = 1.19.2-1 | No fix listed |
| debian/samtools(Debian:12) | = 1.20-1 | No fix listed |
| debian/samtools(Debian:12) | = 1.20-2 | No fix listed |
| debian/samtools(Debian:12) | = 1.20-3 | No fix listed |
| debian/samtools(Debian:12) | = 1.21-0+exp1 | No fix listed |
| debian/samtools(Debian:12) | = 1.21-1 | No fix listed |
| debian/samtools(Debian:12) | = 1.22.1-1 | No fix listed |
| debian/samtools(Debian:12) | = 1.24-1 | No fix listed |
| debian/samtools(Debian:12) | = 1.24-2 | No fix listed |
| debian/samtools(Debian:13) | All versions | No fix listed |
| debian/samtools(Debian:13) | = 1.21-1 | No fix listed |
| debian/samtools(Debian:13) | = 1.22.1-1 | No fix listed |
| debian/samtools(Debian:13) | = 1.24-1 | No fix listed |
| debian/samtools(Debian:13) | = 1.24-2 | No fix listed |
| debian/samtools(Debian:14) | < 1.24-2 | 1.24-2 |
| debian/samtools(Debian:14) | = 1.21-1 | No fix listed |
Show 9 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/samtools(Debian:14) | = 1.22.1-1 | No fix listed |
| debian/samtools(Debian:14) | = 1.24-1 | No fix listed |
| ubuntu/samtools(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/samtools(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/samtools(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/samtools(Ubuntu:26.10) | All versions | No fix listed |
| samtools | >= 1.17, <= 1.21.1 | No fix listed |
| samtools | >= 1.22, < 1.22.2 | 1.22.2 |
| samtools | = 1.23 | No fix listed |
References
- https://github.com/samtools/samtools/security/advisories/GHSA-x86f-q6fj-cm43 vendor-advisory
- https://github.com/samtools/samtools/commit/06fc2a219b3d7c94d3f412c09f6d1efd51199f2f patch
- www.openwall.com mailing-list third-party-advisory
- Debian Security Tracker CVE-2026-31973 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org