CVE-2026-32740

NameCVE-2026-32740
Descriptionlibheif is a HEIF and AVIF file format decoder and encoder. Versions 1.21.2 and prior contain a heap-buffer-overflow (write) vulnerability in the grid tile compositing, allowing an attacker to write 64 bytes of fully attacker-controlled data past the end of a chroma plane heap allocation by crafting a HEIF/AVIF file with a 1×4 grid of odd-height tiles. The overflow is triggered during normal image decoding with default build configuration. The written bytes are chroma (Cb/Cr) pixel values from the attacking tile, giving the attacker full control over the overflow content. This issue has been fixed in version 1.22.0.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDSA-6417-1
Debian Bugs1137524

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libheif (PTS)bookworm, bookworm (security)1.15.1-1+deb12u1vulnerable
trixie (security), trixie1.19.8-1+deb13u1fixed
forky1.23.3-1fixed
sid1.23.4-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libheifsourcetrixie1.19.8-1+deb13u1DSA-6417-1
libheifsource(unstable)1.23.1-11137524

Notes

https://github.com/strukturag/libheif/security/advisories/GHSA-frfr-f3vg-2g6j
https://github.com/strukturag/libheif/commit/6721f307ad684804b735e917dde7d372c5faae31 (v1.22.0)

Search for package or bug name: Reporting problems