Description
libheif 1.22.0 before 1.23.4 contains a deadlock vulnerability in ImageItem::decode_image() that allows attackers to hang decoding by supplying a crafted HEIF grid file. Grid tiles referencing each other as alpha auxiliary images cause worker threads to acquire item mutexes in opposite order, blocking the process permanently.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| strukturag | libheif | 1.22.0 – < 1.23.4 | 1.23.4 |
References
- GitHub Security Advisory (GHSA-prgh-72vc-3xmc) vendor-advisory
- https://github.com/strukturag/libheif/commit/f8beb40213cee192776533a80fc1a1a92ca7da4a patch
- libheif v1.23.4 Release Notes release-notes
- https://github.com/strukturag/libheif/blob/v1.23.3/libheif/image-items/image_item.cc#L916-L1067 technical-description
- VulnCheck Advisory: libheif 1.22.0 before 1.23.4 Deadlock in Parallel Grid Tile Decoding third-party-advisory