{"id":"CVE-2026-32738","published":"2026-05-19T19:03:48Z","modified":"2026-05-19T19:38:59Z","title":"libheif has a Heap OOB Read/SEGV Crash via Zero samples_per_chunk","vendor":"strukturag","product":"libheif","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00375,"percentile":0.23388,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"},{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://github.com/strukturag/libheif/security/advisories/GHSA-7f2h-cmpf-v9ww","tags":["x_refsource_CONFIRM"]}],"priority":{"score":9.2,"factors":[{"name":"EPSS percentile","points":4.68},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"strukturag","affectedVersions":[{"vendor":"strukturag","product":"libheif","versions":["< 1.22.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-19T19:35:48.534273Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-30972","exploited":false,"provenance":"source"}}