Medium severity · published May 19, 2026
CVE-2026-32738
libheif has a Heap OOB Read/SEGV Crash via Zero samples_per_chunk
6.5
CVSS
0.3%
EPSS
No
On KEV
Description
libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and below, a crafted 792-byte HEIF sequence file with samples_per_chunk=0 in the stsc box causes an unsigned integer underflow in the Chunk constructor (m_last_sample = 0 + 0 - 1 = UINT32_MAX), mapping all samples to an empty chunk and resulting in a denial of service. When any sample is accessed, the library reads from index 0 of an empty std::vector, causing a guaranteed SEGV (null-page read). The file parses successfully without producing an error; the crash occurs on the first frame access. This issue has been fixed in version 1.22.0.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 23% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LI
libheif · strukturag
< 1.22.0 · source: vendor, NVD
Affected product
LI
libheif
strukturag
More from libheif
9.8
CVE-2026-84383
libheif: Heap buffer overflow in `scale_nearest_neighbor()` via duplicate Alpha planes from nested `iden`/`auxl` items
8.8
CVE-2026-32740
libheif: Heap-Buffer-Overflow Write in Grid Tile Chroma Compositing
8.7
CVE-2026-62292
libheif: Out-of-bounds read in uncompressed unci tile range slicing
8.1
CVE-2026-41071
libheif: Heap buffer over-read in SampleAuxInfoReader via crafted HEIF sequence file with mismatched saiz sample count
7.8
CVE-2026-47178
libheif has Heap Out Of Bounds Write in unci subsystem