Description
libheif 1.22.0 before 1.23.6 contains a reachable assertion in ImageItem_Grid::decode_and_paste_tile_image() that allows attackers to crash applications by supplying grid images with oversized alpha planes. Attackers can craft a HEIF file containing a grid of uncompressed (unci) tiles with a 64-bit alpha component to terminate the decoding application or trigger an undefined shift.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| strukturag | libheif | 1.22.0 – < 1.23.6 | 1.23.6 |
References
- GitHub Security Advisory (GHSA-3gwx-cjv4-jr74) vendor-advisory
- https://github.com/strukturag/libheif/commit/858398f9654113b5b049beb8f2855a8e291fde19 patch
- libheif v1.23.6 Release Notes release-notes
- https://github.com/strukturag/libheif/blob/v1.23.5/libheif/image-items/grid.cc#L566-L570 technical-description
- VulnCheck Advisory: libheif 1.22.0 before 1.23.6 Reachable Assertion DoS via Grid Image Alpha Plane third-party-advisory