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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libheif | 1.23.1-1 | — |
| Debian 13 | libheif | 1.19.8-1+deb13u1 | — |
| Debian 12 | libheif | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | libheif | 1.21.2-3ubuntu0.4 | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | libheif +3 | 1.19.8-1.amzn2023.0.8 | ALAS2023-2026-2134 |
Advisories 5
- ALAS2023-2026-2134 Moderate: libheif security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Sep 14, 2026
- SUSE-SU-2026:23320-1 Security update for libheif SUSE / openSUSE Security Updates · Sep 10, 2026
- openSUSE-SU-2026:21644-1 Security update for libheif SUSE / openSUSE Security Updates · Aug 27, 2026
- SUSE-SU-2026:3597-1 Security update for libheif SUSE / openSUSE Security Updates · Aug 13, 2026
- openSUSE-SU-2026:11416-1 gdk-pixbuf-loader-libheif-1.23.1-1.1 on GA media SUSE / openSUSE Security Updates · Aug 2, 2026