Skip to content
CVE PROGRAM SOURCE RECORD4.8 Medium

CVE-2026-116742

HTSlib through 1.24 Heap Out-of-Bounds Write via Truncated .gzi Index Count

Description

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

samtools htslib

Default version status: unaffected

  • 0 to ≤ 1.24affected
pkg:github/samtools/htslib

References