Out-of-bounds write in libheif - CVE-2026-62291
Published: June 26, 2026 / Updated: August 19, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause memory corruption.
The vulnerability exists due to out-of-bounds write in unc_encoder_component_interleave::encode_tile when re-encoding a decoded image with mismatched primary and auxiliary alpha plane dimensions. A remote attacker can trick the victim into opening a specially crafted HEIF sequence file and re-encoding the decoded frame to cause memory corruption.
User interaction is required to open a crafted file, and exploitation occurs through a decode and re-encode workflow using the public APIs.
Affected software
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 15
Fedora
SUSE Package Hub 15
Desktop Applications Module
Ubuntu
libheif-plugin-dav1d (Ubuntu package)
libheif-plugin-aomenc (Ubuntu package)
libheif-plugin-aomdec (Ubuntu package)
libheif-plugin-libde265 (Ubuntu package)
libheif-plugin-rav1e (Ubuntu package)
libheif-dev (Ubuntu package)
heif-thumbnailer (Ubuntu package)
libheif-plugin-svtenc (Ubuntu package)
libheif-plugin-x265 (Ubuntu package)
heif-gdk-pixbuf (Ubuntu package)
libheif1 (Ubuntu package)
libheif-plugin-jpegdec (Ubuntu package)
libheif-plugin-ffmpegdec (Ubuntu package)
libheif-plugin-jpegenc (Ubuntu package)
libheif-plugin-j2kdec (Ubuntu package)
libheif-plugin-j2kenc (Ubuntu package)
heif-view (Ubuntu package)
libheif-plugin-kvazaar (Ubuntu package)
libheif-plugins-all (Ubuntu package)
xeve
xevd
openjph
libheif-dav1d-debuginfo
libheif-debugsource
libheif-ffmpeg
gdk-pixbuf-loader-libheif
libheif-devel
libheif-ffmpeg-debuginfo
gdk-pixbuf-loader-libheif-debuginfo
libheif1
libheif-aom
libheif-jpeg
libheif-jpeg-debuginfo
libheif-aom-debuginfo
libheif-rav1e
libheif-dav1d
libheif-rav1e-debuginfo
libheif1-debuginfo
libheif
OpenImageIO
mingw-openexr
aom
ffmpeg
How to mitigate CVE-2026-62291
libheif-plugin-dav1d (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.8, 1.21.2-3ubuntu0.5
libheif-plugin-aomenc (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.8, 1.21.2-3ubuntu0.5
libheif-plugin-aomdec (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.8, 1.21.2-3ubuntu0.5
libheif-plugin-libde265 (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.8, 1.21.2-3ubuntu0.5
libheif-plugin-rav1e (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.8, 1.21.2-3ubuntu0.5
libheif-dev (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.8, 1.21.2-3ubuntu0.5
heif-thumbnailer (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.8, 1.21.2-3ubuntu0.5
libheif-plugin-svtenc (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.8, 1.21.2-3ubuntu0.5
libheif-plugin-x265 (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.8, 1.21.2-3ubuntu0.5
heif-gdk-pixbuf (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.8, 1.21.2-3ubuntu0.5
libheif1 (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.8, 1.21.2-3ubuntu0.5
libheif-plugin-jpegdec (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.8, 1.21.2-3ubuntu0.5
libheif-plugin-ffmpegdec (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.8, 1.21.2-3ubuntu0.5
libheif-plugin-jpegenc (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.8, 1.21.2-3ubuntu0.5
libheif-plugin-j2kdec (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.8, 1.21.2-3ubuntu0.5
libheif-plugin-j2kenc (Ubuntu package) - addressed in versions 1.17.6-1ubuntu4.8, 1.21.2-3ubuntu0.5
heif-view (Ubuntu package) - update to 1.21.2-3ubuntu0.5
libheif-plugin-kvazaar (Ubuntu package) - update to 1.21.2-3ubuntu0.5
libheif-plugins-all (Ubuntu package) - update to 1.21.2-3ubuntu0.5
xeve - update to 0.7.1-1.fc46
xevd - update to 0.8.0-1.fc46
openjph - update to 0.32.0-1.fc46
libheif-dav1d-debuginfo - update to 1.23.1-150700.3.18.1
libheif-debugsource - update to 1.23.1-150700.3.18.1
libheif-ffmpeg - update to 1.23.1-150700.3.18.1
gdk-pixbuf-loader-libheif - update to 1.23.1-150700.3.18.1
libheif-devel - update to 1.23.1-150700.3.18.1
libheif-ffmpeg-debuginfo - update to 1.23.1-150700.3.18.1
gdk-pixbuf-loader-libheif-debuginfo - update to 1.23.1-150700.3.18.1
libheif1 - update to 1.23.1-150700.3.18.1
libheif-aom - update to 1.23.1-150700.3.18.1
libheif-jpeg - update to 1.23.1-150700.3.18.1
libheif-jpeg-debuginfo - update to 1.23.1-150700.3.18.1
libheif-aom-debuginfo - update to 1.23.1-150700.3.18.1
libheif-rav1e - update to 1.23.1-150700.3.18.1
libheif-dav1d - update to 1.23.1-150700.3.18.1
libheif-rav1e-debuginfo - update to 1.23.1-150700.3.18.1
libheif1-debuginfo - update to 1.23.1-150700.3.18.1
libheif - addressed in versions 1.23.5-3.el10_3, 1.23.5-3.el10_4, 1.23.6-3.fc46
OpenImageIO - update to 3.2.1.1-2.fc46
mingw-openexr - update to 3.4.15-2.fc46
aom - addressed in versions 3.13.3-1.el10_3, 3.13.3-1.el10_4
ffmpeg - update to 9.0.2-2.fc46