Source: htslib
X-Debbugs-CC: [email protected]
Severity: grave
Tags: security

Hi,

The following vulnerability was published for htslib.

CVE-2026-116742[0]:
| 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.

https://github.com/samtools/htslib/pull/2057
Fixed by: 
https://github.com/samtools/htslib/commit/18dddf02bb2c0053b32acec427723555a24b2873
 (1.25)


If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-116742
    https://www.cve.org/CVERecord?id=CVE-2026-116742

Please adjust the affected versions in the BTS as needed.

Reply via email to