CVE-2026-142504: libheif before 1.23.6 Bit Depth Mismatch Leads to Out-of-Bounds Read
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 Software
Event History
Frequently Asked Questions
Which applications are exposed?
Applications that call libheif and process attacker-supplied HEIF files are exposed if they use a libheif version before 1.23.6. The out-of-bounds read occurs in the calling application.
What does an attacker need to exploit this issue?
An attacker needs to provide a crafted HEIF file and have it processed by the affected application. No privileges are required, but user interaction is required according to the supplied severity vector.
What types of files can trigger the issue?
The crafted HEIF file can contain contradicting hvcC or av1C boxes, mixed-bit-depth grid tiles, or iovl overlays. These inconsistencies can cause a crash or disclosure of memory.
How can I determine whether an installation is affected?
Check the libheif version used by the application. Versions before 1.23.6 are affected.