Skip to content
OpenAdvisories
Medium · 6.1 CVE-2026-47254 EUVD-2026-46436

libheif Has Heap Buffer Overflow in `Track::get_next_sample_raw_data()` -- OOB Chunk Vector Access

Published Jul 21, 2026 · Updated Jul 22, 2026 · Assigned by GitHub_M

Description

libheif is a HEIF and AVIF file format decoder and encoder. Prior to version 1.22.0, `Track::init_sample_timing_table()` in `libheif/sequences/track.cc` stores an out-of-bounds chunk index (`m_chunks.size()`) into `m_presentation_timeline` when the number of chunks defined in the `stco` box is less than the number of samples in `stsz`. A subsequent call to `heif_track_get_next_raw_sequence_sample()` reads `m_chunks[chunk_idx]` with that OOB index, causing a heap-buffer-overflow. Version 1.22.0 fixes the issue.

Affected products

VendorProductAffectedFixed
strukturag libheif < 1.22.0 —

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 12 libheif No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS libheif 1.21.2-3ubuntu0.3 —
ReleasePackageFixed inAdvisory
SLES 15 SP7 libheif 1.23.0-150700.3.15.1 SUSE-SU-2026:2622-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 libheif 1.23.0-160000.1.1 SUSE-SU-2026:22153-1
SLES 16.0 libheif 1.23.0-160000.1.1 SUSE-SU-2026:22153-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libheif 1.22.2-1.1 openSUSE-SU-2026:10878-1
openSUSE Leap 16.0 libheif 1.23.0-160000.1.1 openSUSE-SU-2026:20974-1

Advisories 4

References