Submit #766431: strukturag libheif 1.21.2 Out-of-Bounds Readinfo

Titlestrukturag libheif 1.21.2 Out-of-Bounds Read
DescriptionThis vulnerability is a sequence–track consistency validation flaw in libheif. A crafted file can declare more samples in stsz/stts than are actually covered by stsc. Track::load fails to reject this inconsistent state, allowing it to propagate. As a result, Track::init_sample_timing_table may compute an out-of-range chunkIdx, and Track_Visual::decode_next_image_sample subsequently dereferences m_chunks[chunkIdx] without proper bounds checking. This leads to a heap out-of-bounds read and a process crash (DoS).
Source⚠️ https://github.com/strukturag/libheif/issues/1715
User
 Niebelungen (UID 95430)
Submission02/24/2026 11:34 (4 months ago)
Moderation03/11/2026 13:03 (15 days later)
StatusAccepted
VulDB entry350382 [strukturag libheif up to 1.21.2 stsz/stts track.cc Track::load out-of-bounds]
Points20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!