Skip to content
OpenAdvisories
High · 8.7 CVE-2026-62292 EUVD-2026-62189

libheif: Out-of-bounds read in uncompressed unci tile range slicing

Published Aug 18, 2026 · Updated Aug 25, 2026 · Assigned by GitHub_M

Description

libheif is a HEIF and AVIF file format decoder and encoder. From 1.19.0 until 1.23.1, a crafted uncompressed HEIF image using generic zlib unci full-item compression can crash an application that decodes an advertised tile with heif_image_handle_decode_image_tile(). In libheif/codecs/uncompressed/unc_decoder.cc, unc_decoder::fetch_tile_data() computes a large tile offset and unc_decoder::get_compressed_image_data_uncompressed() validates it with range_start_offset plus range_size. For the last advertised tile (4095, 4095), the addition can wrap to zero, bypass the bounds check, and pass an invalid source pointer and a one-terabyte length to memcpy. The observed result is an out-of-bounds read and process crash; opening the file alone does not trigger the issue because tile decoding is required. This issue is fixed in version 1.23.1.

Affected products

VendorProductAffectedFixed
strukturag libheif >= 1.19.0, < 1.23.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libheif 1.23.1-1 —
Debian 13 libheif 1.19.8-1+deb13u1 —
Debian 12 libheif No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS libheif 1.21.2-3ubuntu0.4 —
ReleasePackageFixed inAdvisory
SLES 15 SP7 libheif 1.23.1-150700.3.18.1 SUSE-SU-2026:3597-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 libheif 1.23.1-160000.1.1 SUSE-SU-2026:23320-1
SLES 16.0 libheif 1.23.1-160000.1.1 SUSE-SU-2026:23320-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libheif 1.23.1-1.1 openSUSE-SU-2026:11416-1
openSUSE Leap 16.0 libheif 1.23.1-160000.1.1 openSUSE-SU-2026:21644-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 libheif +3 1.19.8-1.amzn2023.0.8 ALAS2023-2026-2134

Advisories 5

References