HTSlib through 1.24 Heap Out-of-Bounds Write via Truncated .gzi Index Count
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| samtoolshtslib |
≤ 1.24→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-116742 htslib Fix available
- Ubuntu UBUNTU-CVE-2026-116742 htslib No fixed version in this record
Original description The description as published by the source.
HTSlib through 1.24 contains a heap out-of-bounds write and read vulnerability in bgzf_index_load_hfile() in bgzf.c that allows attackers to corrupt heap memory by supplying a crafted .gzi index entry count. A count of 0xFFFFFFFF truncates noffs to zero, causing writes past a malloc(0) buffer and an offs[-1] read in bgzf_useek(), resulting in heap corruption or crashes in tools like samtools and bcftools.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory hackmd.io
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- patch github.com
- report github.com
- web github.com
- web github.com