CVE-2026-142503: libheif 1.22.0 before 1.23.6 Reachable Assertion DoS via Grid Image Alpha Plane
libheif 1.22.0 before 1.23.6 contains a reachable assertion in ImageItemGrid::decodeandpastetileimage() 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 Software
Event History
Frequently Asked Questions
Which deployments are affected?
Deployments using libheif versions from 1.22.0 through versions before 1.23.6 are affected. The issue is reached when the application decodes attacker-supplied HEIF grid images using uncompressed (unci) tiles.
What must an attacker do to trigger the denial of service?
An attacker must supply a crafted HEIF file containing a grid of uncompressed tiles with a 64-bit alpha component and induce the application to decode it. The vulnerability requires user interaction, such as opening or processing the malicious file.
What is the impact of successful exploitation?
Successful exploitation can terminate the decoding application through a reachable assertion, causing a denial of service. The malformed alpha-plane values may also trigger an undefined shift.
How can this be remediated?
Upgrade libheif to version 1.23.6 or later. If immediate upgrading is not possible, avoid decoding untrusted HEIF files, particularly grid images containing uncompressed tiles.