Out-of-bounds read in libheif - CVE-2026-49271

 

Out-of-bounds read in libheif - CVE-2026-49271

Published: June 26, 2026


Vulnerability identifier: #VU135510
CSH Severity: Medium
CVSS v4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-49271
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to an out-of-bounds read in unc_decoder::get_compressed_image_data_uncompressed when parsing a crafted HEIF file with wrapped icef compressed-unit offsets and sizes. A remote attacker can supply a specially crafted HEIF file to cause a denial of service.

The issue is reached when the cmpC compressed unit type is not image_tile, and user interaction is required to decode the crafted media.


Affected software

libheif
Debian Linux
Fedora
Ubuntu
libheif-plugin-kvazaar (Ubuntu package)
libheif-plugin-aomdec (Ubuntu package)
libheif-plugin-aomenc (Ubuntu package)
libheif-dev (Ubuntu package)
libheif-plugin-dav1d (Ubuntu package)
libheif-plugin-ffmpegdec (Ubuntu package)
libheif-plugin-j2kdec (Ubuntu package)
libheif-plugin-j2kenc (Ubuntu package)
heif-view (Ubuntu package)
libheif-plugin-jpegdec (Ubuntu package)
libheif-plugin-jpegenc (Ubuntu package)
libheif-plugin-libde265 (Ubuntu package)
libheif-plugin-rav1e (Ubuntu package)
heif-gdk-pixbuf (Ubuntu package)
heif-thumbnailer (Ubuntu package)
libheif1 (Ubuntu package)
libheif-plugin-svtenc (Ubuntu package)
libheif-plugins-all (Ubuntu package)
libheif-plugin-x265 (Ubuntu package)
libheif
aom
libheif (Debian package)

How to mitigate CVE-2026-49271

Install security update from vendor's website.

libheif - update to 1.22.1
libheif-plugin-kvazaar (Ubuntu package) - update to 1.21.2-3ubuntu0.2
libheif-plugin-aomdec (Ubuntu package) - update to 1.21.2-3ubuntu0.2
libheif-plugin-aomenc (Ubuntu package) - update to 1.21.2-3ubuntu0.2
libheif-dev (Ubuntu package) - update to 1.21.2-3ubuntu0.2
libheif-plugin-dav1d (Ubuntu package) - update to 1.21.2-3ubuntu0.2
libheif-plugin-ffmpegdec (Ubuntu package) - update to 1.21.2-3ubuntu0.2
libheif-plugin-j2kdec (Ubuntu package) - update to 1.21.2-3ubuntu0.2
libheif-plugin-j2kenc (Ubuntu package) - update to 1.21.2-3ubuntu0.2
heif-view (Ubuntu package) - update to 1.21.2-3ubuntu0.2
libheif-plugin-jpegdec (Ubuntu package) - update to 1.21.2-3ubuntu0.2
libheif-plugin-jpegenc (Ubuntu package) - update to 1.21.2-3ubuntu0.2
libheif-plugin-libde265 (Ubuntu package) - update to 1.21.2-3ubuntu0.2
libheif-plugin-rav1e (Ubuntu package) - update to 1.21.2-3ubuntu0.2
heif-gdk-pixbuf (Ubuntu package) - update to 1.21.2-3ubuntu0.2
heif-thumbnailer (Ubuntu package) - update to 1.21.2-3ubuntu0.2
libheif1 (Ubuntu package) - update to 1.21.2-3ubuntu0.2
libheif-plugin-svtenc (Ubuntu package) - update to 1.21.2-3ubuntu0.2
libheif-plugins-all (Ubuntu package) - update to 1.21.2-3ubuntu0.2
libheif-plugin-x265 (Ubuntu package) - update to 1.21.2-3ubuntu0.2
libheif - addressed in versions 1.23.5-3.el10_3, 1.23.5-3.el10_4
aom - addressed in versions 3.13.3-1.el10_3, 3.13.3-1.el10_4
libheif (Debian package) - update to 1.19.8-1+deb13u1

External References

Related Security Bulletins