CVE-2026-41071

EUVD-2026-31501
libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and prior, a crafted HEIF sequence file where the saiz box declares more samples than actually exist in the track's chunk table causes a heap-buffer-overflow (out-of-bounds read) in the SampleAuxInfoReader constructor. The SampleAuxInfoReader constructor iterates over saiz->get_num_samples() samples but doesn't validate that this count is consistent with the number of chunks in the chunks vector. When saiz declares more samples than the chunks cover, the loop increments current_chunk past chunks.size(), causing an out-of-bounds read on the chunks vector. The vulnerability is triggered during file parsing (heif_context_read_from_file) without any additional user interaction. Any application using libheif to open untrusted HEIF files is affected. This issue has been fixed in version 1.22.0.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
8.1 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 21%
Affected Products (NVD)
VendorProductVersion
strukturlibheif
𝑥
< 1.22.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
libheif
bookworm
vulnerable
bookworm (security)
vulnerable
bullseye
vulnerable
bullseye (security)
vulnerable
forky
vulnerable
sid
1.23.1-1
fixed
trixie
vulnerable
openSUSE logo
openSUSE / SLES Releases
openSUSE Product
Release
libheif-aom
suse enterprise desktop 15 SP7
1.23.0-150700.3.15.1
fixed
suse enterprise sap 15 SP7
1.23.0-150700.3.15.1
fixed
suse enterprise server 15 SP7
1.23.0-150700.3.15.1
fixed
libheif-dav1d
suse enterprise desktop 15 SP7
1.23.0-150700.3.15.1
fixed
suse enterprise sap 15 SP7
1.23.0-150700.3.15.1
fixed
suse enterprise server 15 SP7
1.23.0-150700.3.15.1
fixed
libheif-jpeg
suse enterprise desktop 15 SP7
1.23.0-150700.3.15.1
fixed
suse enterprise sap 15 SP7
1.23.0-150700.3.15.1
fixed
suse enterprise server 15 SP7
1.23.0-150700.3.15.1
fixed
libheif-rav1e
suse enterprise desktop 15 SP7
1.23.0-150700.3.15.1
fixed
suse enterprise sap 15 SP7
1.23.0-150700.3.15.1
fixed
suse enterprise server 15 SP7
1.23.0-150700.3.15.1
fixed
libheif1
suse enterprise desktop 15 SP7
1.23.0-150700.3.15.1
fixed
suse enterprise sap 15 SP7
1.23.0-150700.3.15.1
fixed
suse enterprise server 15 SP7
1.23.0-150700.3.15.1
fixed