CVE-2026-47709libheif has a NULL pointer dereference in heif_image_handle_get_image_tiling for malformed unci image missing ispe
Description
libheif is a HEIF and AVIF file format decoder and encoder. Versions prior to 1.22.0 crashes in the public C API `heif_image_handle_get_image_tiling()` when a malformed uncompressed HEIF image item has an associated `uncC` property but no associated `ispe` property. In debug builds this trips the `ispe && uncC` assertion in `ImageItem_uncompressed::get_heif_image_tiling()`. In a release/NDEBUG ASan build, the same file causes a null pointer read at address `0xa8`. Version 1.22.0 fixes 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.0 | |
| strukturag | libheif | < 1.22.0 |
References and patches
- https://github.com/strukturag/libheif/security/advisories/GHSA-4h72-vqgp-9376 ExploitVendor AdvisoryMitigation
- https://github.com/strukturag/libheif/issues/1802 ExploitIssue TrackingThird Party Advisory
- https://github.com/strukturag/libheif/pull/1806 ExploitIssue TrackingPatchThird Party Advisory
CPE matches (NVD) (1)
cpe:2.3:a:struktur:libheif:*:*:*:*:*:*:*:*< 1.22.0