Description
libheif before 1.23.6 fails to verify that decoded images match the bit depth reported by the image handle, causing out-of-bounds reads in calling applications. Attackers can supply crafted HEIF files with contradicting hvcC or av1C boxes, mixed-depth grid tiles, or iovl overlays to crash applications or disclose memory.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| strukturag | libheif | < 1.23.6 | 1.23.6 |
References
- GitHub Security Advisory (GHSA-vv35-6hxg-95x8) vendor-advisory
- https://github.com/strukturag/libheif/commit/770b0d8d7e1e57b0f4d2b8dc53ff3f82b712fbac patch
- https://github.com/strukturag/libheif/commit/64a5bba75ad64aa8c010b8ad61e32091025442b3 patch
- libheif v1.23.6 Release Notes release-notes
- https://github.com/strukturag/libheif/blob/v1.23.5/libheif/image-items/grid.cc#L590 technical-description
- VulnCheck Advisory: libheif before 1.23.6 Bit Depth Mismatch Leads to Out-of-Bounds Read third-party-advisory