CVE-2026-116742

NameCVE-2026-116742
DescriptionHTSlib 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
htslib (PTS)bookworm1.16+ds-3vulnerable
trixie1.21+ds-1vulnerable
forky, sid1.24-3vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
htslibsource(unstable)(unfixed)

Notes

[trixie] - htslib <no-dsa> (Minor issue)
[bookworm] - htslib <postponed> (Minor issue)
https://github.com/samtools/htslib/pull/2057
Fixed by: https://github.com/samtools/htslib/commit/18dddf02bb2c0053b32acec427723555a24b2873 (1.25)

Search for package or bug name: Reporting problems