Description
libheif 1.22.0 before 1.23.6 contains a memory exhaustion vulnerability in the uncompressed (unci) codec that bypasses the max_total_memory limit for image_tile compressed units. Attackers can supply a crafted 22 KB HEIF file whose tiles are re-inflated per component, causing multi-gigabyte allocations that exhaust memory in the decoding application.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| strukturag | libheif | 1.22.0 – < 1.23.6 | 1.23.6 |
References
- GitHub Security Advisory (GHSA-fcmw-5764-7rq8) vendor-advisory
- https://github.com/strukturag/libheif/commit/585607ac15c7391831360e19bed2422320362834 patch
- libheif v1.23.6 Release Notes release-notes
- https://github.com/strukturag/libheif/blob/v1.23.5/libheif/codecs/uncompressed/unc_decoder.cc#L134-L160 technical-description
- VulnCheck Advisory: libheif 1.22.0 before 1.23.6 Memory Exhaustion via unci Decompressed Tile Data third-party-advisory