CVE-2026-49271libheif: Wrapped icef compressed-unit range check causes out-of-bounds read in uncompressed HEIF decoder
Description
libheif is a HEIF and AVIF file format decoder and encoder. Prior to version 1.22.1, the uncompressed HEIF decoder validates explicit icef compressed-unit offsets using unit_offset + unit_size. Because the addition can wrap, a crafted HEIF file can pass the range check and then construct a vector from iterators outside the compressed item buffer, producing an out-of-bounds heap read and crash. Version 1.22.1 patches the issue.
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| struktur | libheif | < 1.22.1 | |
| strukturag | libheif | < 1.22.1 |
References and patches
- https://github.com/strukturag/libheif/security/advisories/GHSA-r7qj-cg5r-r6vf MitigationVendor Advisory
CPE matches (NVD) (1)
cpe:2.3:a:struktur:libheif:*:*:*:*:*:*:*:*< 1.22.1