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.
Fix
Patch, vendor advisory and mitigation references on NVD 2
- https://github.com/strukturag/libheif/security/advisories/GHSA-r7qj-cg5r-r6vf Mitigation, Vendor Advisory
- https://github.com/strukturag/libheif/security/advisories/GHSA-r7qj-cg5r-r6vf Mitigation, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 6.5 · strukturNVD modified 2026-10-25 23:10
Affected (CPE criteria) 1
cpe:2.3:a:struktur:libheif:*:*:*:*:*:*:*:*
References 2
- https://github.com/strukturag/libheif/security/advisories/GHSA-r7qj-cg5r-r6vf Mitigation, Vendor Advisory
- https://github.com/strukturag/libheif/security/advisories/GHSA-r7qj-cg5r-r6vf Mitigation, Vendor Advisory