{"id":"DEBIAN-CVE-2026-116742","details":"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.","modified":"2026-10-29T09:00:06.281946687Z","published":"2026-10-26T22:16:58.680Z","upstream":["CVE-2026-116742"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-116742"}],"affected":[{"package":{"name":"htslib","ecosystem":"Debian:12","purl":"pkg:deb/debian/htslib?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.16+ds-3","1.17+ds-0+exp1","1.17+ds-1","1.18+ds-0+exp1","1.18+ds-1","1.19+ds-0+exp0","1.19+ds-1","1.19+ds-1+exp1","1.19+ds-1.1","1.20+ds-1","1.20+ds-2","1.21+ds-0+exp1","1.21+ds-0+exp2","1.21+ds-1","1.22.1+ds-1","1.22.1+ds-2","1.22.1+ds2-1","1.24-1","1.24-2","1.24-3"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-116742.json"}},{"package":{"name":"htslib","ecosystem":"Debian:13","purl":"pkg:deb/debian/htslib?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.21+ds-1","1.22.1+ds-1","1.22.1+ds-2","1.22.1+ds2-1","1.24-1","1.24-2","1.24-3"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-116742.json"}},{"package":{"name":"htslib","ecosystem":"Debian:14","purl":"pkg:deb/debian/htslib?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.21+ds-1","1.22.1+ds-1","1.22.1+ds-2","1.22.1+ds2-1","1.24-1","1.24-2","1.24-3"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-116742.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"}]}