HTSlib 1.24 及更早版本在 bgzf.c 的 bgzf_index_load_hfile() 函数中存在堆越界写入和读取漏洞。攻击者可通过提供精心构造的 .gzi 索引条目计数来破坏堆内存。当该计数值为 0xFFFFFFFF 时,noffs 会被截断为零,导致在 malloc(0) 分配的缓冲区之后进行写入,并在 bgzf_useek() 中执行 offs[-1] 读取,从而引发堆内存损坏或导致 samtools、bcftools 等工具崩溃。
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POC