Deadlock in libheif - #VU158745
Published: November 3, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service by indefinitely blocking image decoding.
The vulnerability exists due to incorrect handling of unfilled tile queue entries in libheif's ImageItem_Grid::decode_full_grid_image() when decoding grid images in parallel with non-strict decoding options. A remote attacker can supply a crafted HEIF file containing skipped tiles and an unreferenced item 0 with cyclic alpha-image references to trigger unintended decoding of that item, causing worker threads to acquire image decode mutexes in opposite orders and deadlock.
The hang requires at least two tile-decoding threads.