Out-of-bounds read in libheif - CVE-2026-49271
Published: June 26, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to an out-of-bounds read in unc_decoder::get_compressed_image_data_uncompressed when parsing a crafted HEIF file with wrapped icef compressed-unit offsets and sizes. A remote attacker can supply a specially crafted HEIF file to cause a denial of service.
The issue is reached when the cmpC compressed unit type is not image_tile, and user interaction is required to decode the crafted media.
Affected software
Ubuntu
libheif (Ubuntu package)
How to mitigate CVE-2026-49271
libheif (Ubuntu package) - addressed in versions 1.20.2-1ubuntu0.5, 1.21.2-3ubuntu0.2