libheif: libheif is a HEIF and AVIF file format decoder and encoder
CVE-2026-32741 is fixed in 27 products on 1 platform, first by DEBIAN-CVE-2026-32741, released May 19, 2026. It is not reported as exploited. Patch Radar priority: High.
libheif is a HEIF and AVIF file format decoder and encoder. Versions 1.21.2 and below contain a heap buffer overflow in MaskImageCodec::decode_mask_image(). When decoding a HEIF file containing a mask image (mski), the function copies the full iloc extent data into a pixel buffer using memcpy(dst, data.data(), data.size()). The copy length data.size() is determined by the iloc extent in the file (attacker-controlled), while the destination buffer is sized based on the declared image dimensions. Because no upper-bound check exists on the data length, a crafted file whose iloc extent exceeds the pixel buffer allocation overflows the heap. The vulnerable single-memcpy branch is reached when the mskC property specifies bits_per_pixel = 8 and the ispe property declares an even width ≥ 64 (so that stride == width), with no changes to default security limits or external codec plugins required. This issue has been fixed in version 1.22.0.
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| heif-gdk-pixbuf · Ubuntu 24.04.5 LTS (noble) | 1.17.6-1ubuntu4.4 | heif-gdk-pixbuf 1.17.6-1ubuntu4.4 | Jun 24, 2026 |
| heif-gdk-pixbuf · Ubuntu 25.10 (questing) | 1.20.2-1ubuntu0.4 | heif-gdk-pixbuf 1.20.2-1ubuntu0.4 | Jun 24, 2026 |
| heif-gdk-pixbuf · Ubuntu 26.04.1 LTS (resolute) | 1.21.2-3ubuntu0.1 | heif-gdk-pixbuf 1.21.2-3ubuntu0.1 | Jul 21, 2026 |
| heif-pixbuf-loader · amzn 2023 | 1.19.8-1.amzn2023.0.5 | ALAS2023-2026-1814 | Jun 8, 2026 |
| heif-pixbuf-loader-debuginfo · amzn 2023 | 1.19.8-1.amzn2023.0.5 | ALAS2023-2026-1814 | Jun 8, 2026 |
| heif-thumbnailer · Ubuntu 24.04.5 LTS (noble) | 1.17.6-1ubuntu4.4 | heif-thumbnailer 1.17.6-1ubuntu4.4 | Jun 24, 2026 |
| heif-thumbnailer · Ubuntu 25.10 (questing) | 1.20.2-1ubuntu0.4 | heif-thumbnailer 1.20.2-1ubuntu0.4 | Jun 24, 2026 |
| heif-thumbnailer · Ubuntu 26.04.1 LTS (resolute) | 1.21.2-3ubuntu0.1 | heif-thumbnailer 1.21.2-3ubuntu0.1 | Jul 21, 2026 |
| heif-view · Ubuntu 25.10 (questing) | 1.20.2-1ubuntu0.4 | heif-view 1.20.2-1ubuntu0.4 | Jun 24, 2026 |
| heif-view · Ubuntu 26.04.1 LTS (resolute) | 1.21.2-3ubuntu0.1 | heif-view 1.21.2-3ubuntu0.1 | Jul 21, 2026 |
| libheif · Debian 13.5 (trixie) | 1.19.8-1+deb13u1 | DEBIAN-CVE-2026-32741 | May 19, 2026 |
| libheif · Debian 14 | 1.23.1-1 | DEBIAN-CVE-2026-32741 | May 19, 2026 |
| libheif · amzn 2023 | 1.19.8-1.amzn2023.0.5 | ALAS2023-2026-1814 | Jun 8, 2026 |
| libheif · opensuse-leap 16.0 | 1.23.0-160000.1.1 | OPENSUSE-SU-2026:20974-1 | Jun 17, 2026 |
| libheif · sles 15.7 | 1.23.0-150700.3.15.1 | SUSE-SU-2026:2622-1 | Jun 24, 2026 |
| libheif · sles 16.0 | 1.23.0-160000.1.1 | SUSE-SU-2026:22153-1 | Jun 17, 2026 |
| libheif-debuginfo · amzn 2023 | 1.19.8-1.amzn2023.0.5 | ALAS2023-2026-1814 | Jun 8, 2026 |
| libheif-debugsource · amzn 2023 | 1.19.8-1.amzn2023.0.5 | ALAS2023-2026-1814 | Jun 8, 2026 |
| libheif-devel · amzn 2023 | 1.19.8-1.amzn2023.0.5 | ALAS2023-2026-1814 | Jun 8, 2026 |
| libheif-examples · Ubuntu 24.04.5 LTS (noble) | 1.17.6-1ubuntu4.4 | libheif-examples 1.17.6-1ubuntu4.4 | Jun 24, 2026 |
| libheif-examples · Ubuntu 25.10 (questing) | 1.20.2-1ubuntu0.4 | libheif-examples 1.20.2-1ubuntu0.4 | Jun 24, 2026 |
| libheif-examples · Ubuntu 26.04.1 LTS (resolute) | 1.21.2-3ubuntu0.1 | libheif-examples 1.21.2-3ubuntu0.1 | Jul 21, 2026 |
| libheif-plugin-aomdec · Ubuntu 24.04.5 LTS (noble) | 1.17.6-1ubuntu4.4 | libheif-plugin-aomdec 1.17.6-1ubuntu4.4 | Jun 24, 2026 |
| libheif-plugin-aomdec · Ubuntu 25.10 (questing) | 1.20.2-1ubuntu0.4 | libheif-plugin-aomdec 1.20.2-1ubuntu0.4 | Jun 24, 2026 |
| libheif-plugin-aomdec · Ubuntu 26.04.1 LTS (resolute) | 1.21.2-3ubuntu0.1 | libheif-plugin-aomdec 1.21.2-3ubuntu0.1 | Jul 21, 2026 |
| libheif-plugin-aomenc · Ubuntu 24.04.5 LTS (noble) | 1.17.6-1ubuntu4.4 | libheif-plugin-aomenc 1.17.6-1ubuntu4.4 | Jun 24, 2026 |
| libheif-plugin-aomenc · Ubuntu 25.10 (questing) | 1.20.2-1ubuntu0.4 | libheif-plugin-aomenc 1.20.2-1ubuntu0.4 | Jun 24, 2026 |
| libheif-plugin-aomenc · Ubuntu 26.04.1 LTS (resolute) | 1.21.2-3ubuntu0.1 | libheif-plugin-aomenc 1.21.2-3ubuntu0.1 | Jul 21, 2026 |
| libheif-plugin-dav1d · Ubuntu 24.04.5 LTS (noble) | 1.17.6-1ubuntu4.4 | libheif-plugin-dav1d 1.17.6-1ubuntu4.4 | Jun 24, 2026 |
| libheif-plugin-dav1d · Ubuntu 25.10 (questing) | 1.20.2-1ubuntu0.4 | libheif-plugin-dav1d 1.20.2-1ubuntu0.4 | Jun 24, 2026 |
| libheif-plugin-dav1d · Ubuntu 26.04.1 LTS (resolute) | 1.21.2-3ubuntu0.1 | libheif-plugin-dav1d 1.21.2-3ubuntu0.1 | Jul 21, 2026 |
| libheif-plugin-ffmpegdec · Ubuntu 24.04.5 LTS (noble) | 1.17.6-1ubuntu4.4 | libheif-plugin-ffmpegdec 1.17.6-1ubuntu4.4 | Jun 24, 2026 |
| libheif-plugin-ffmpegdec · Ubuntu 25.10 (questing) | 1.20.2-1ubuntu0.4 | libheif-plugin-ffmpegdec 1.20.2-1ubuntu0.4 | Jun 24, 2026 |
| libheif-plugin-ffmpegdec · Ubuntu 26.04.1 LTS (resolute) | 1.21.2-3ubuntu0.1 | libheif-plugin-ffmpegdec 1.21.2-3ubuntu0.1 | Jul 21, 2026 |
| libheif-plugin-j2kdec · Ubuntu 24.04.5 LTS (noble) | 1.17.6-1ubuntu4.4 | libheif-plugin-j2kdec 1.17.6-1ubuntu4.4 | Jun 24, 2026 |
| libheif-plugin-j2kdec · Ubuntu 25.10 (questing) | 1.20.2-1ubuntu0.4 | libheif-plugin-j2kdec 1.20.2-1ubuntu0.4 | Jun 24, 2026 |
| libheif-plugin-j2kdec · Ubuntu 26.04.1 LTS (resolute) | 1.21.2-3ubuntu0.1 | libheif-plugin-j2kdec 1.21.2-3ubuntu0.1 | Jul 21, 2026 |
| libheif-plugin-j2kenc · Ubuntu 24.04.5 LTS (noble) | 1.17.6-1ubuntu4.4 | libheif-plugin-j2kenc 1.17.6-1ubuntu4.4 | Jun 24, 2026 |
| libheif-plugin-j2kenc · Ubuntu 25.10 (questing) | 1.20.2-1ubuntu0.4 | libheif-plugin-j2kenc 1.20.2-1ubuntu0.4 | Jun 24, 2026 |
| libheif-plugin-j2kenc · Ubuntu 26.04.1 LTS (resolute) | 1.21.2-3ubuntu0.1 | libheif-plugin-j2kenc 1.21.2-3ubuntu0.1 | Jul 21, 2026 |
| libheif-plugin-jpegdec · Ubuntu 24.04.5 LTS (noble) | 1.17.6-1ubuntu4.4 | libheif-plugin-jpegdec 1.17.6-1ubuntu4.4 | Jun 24, 2026 |
| libheif-plugin-jpegdec · Ubuntu 25.10 (questing) | 1.20.2-1ubuntu0.4 | libheif-plugin-jpegdec 1.20.2-1ubuntu0.4 | Jun 24, 2026 |
| libheif-plugin-jpegdec · Ubuntu 26.04.1 LTS (resolute) | 1.21.2-3ubuntu0.1 | libheif-plugin-jpegdec 1.21.2-3ubuntu0.1 | Jul 21, 2026 |
| libheif-plugin-jpegenc · Ubuntu 24.04.5 LTS (noble) | 1.17.6-1ubuntu4.4 | libheif-plugin-jpegenc 1.17.6-1ubuntu4.4 | Jun 24, 2026 |
| libheif-plugin-jpegenc · Ubuntu 25.10 (questing) | 1.20.2-1ubuntu0.4 | libheif-plugin-jpegenc 1.20.2-1ubuntu0.4 | Jun 24, 2026 |
| libheif-plugin-jpegenc · Ubuntu 26.04.1 LTS (resolute) | 1.21.2-3ubuntu0.1 | libheif-plugin-jpegenc 1.21.2-3ubuntu0.1 | Jul 21, 2026 |
| libheif-plugin-kvazaar · Ubuntu 25.10 (questing) | 1.20.2-1ubuntu0.4 | libheif-plugin-kvazaar 1.20.2-1ubuntu0.4 | Jun 24, 2026 |
| libheif-plugin-kvazaar · Ubuntu 26.04.1 LTS (resolute) | 1.21.2-3ubuntu0.1 | libheif-plugin-kvazaar 1.21.2-3ubuntu0.1 | Jul 21, 2026 |
| libheif-plugin-libde265 · Ubuntu 24.04.5 LTS (noble) | 1.17.6-1ubuntu4.4 | libheif-plugin-libde265 1.17.6-1ubuntu4.4 | Jun 24, 2026 |
| libheif-plugin-libde265 · Ubuntu 25.10 (questing) | 1.20.2-1ubuntu0.4 | libheif-plugin-libde265 1.20.2-1ubuntu0.4 | Jun 24, 2026 |
| libheif-plugin-libde265 · Ubuntu 26.04.1 LTS (resolute) | 1.21.2-3ubuntu0.1 | libheif-plugin-libde265 1.21.2-3ubuntu0.1 | Jul 21, 2026 |
| libheif-plugin-rav1e · Ubuntu 24.04.5 LTS (noble) | 1.17.6-1ubuntu4.4 | libheif-plugin-rav1e 1.17.6-1ubuntu4.4 | Jun 24, 2026 |
| libheif-plugin-rav1e · Ubuntu 25.10 (questing) | 1.20.2-1ubuntu0.4 | libheif-plugin-rav1e 1.20.2-1ubuntu0.4 | Jun 24, 2026 |
| libheif-plugin-rav1e · Ubuntu 26.04.1 LTS (resolute) | 1.21.2-3ubuntu0.1 | libheif-plugin-rav1e 1.21.2-3ubuntu0.1 | Jul 21, 2026 |
| libheif-plugin-svtenc · Ubuntu 24.04.5 LTS (noble) | 1.17.6-1ubuntu4.4 | libheif-plugin-svtenc 1.17.6-1ubuntu4.4 | Jun 24, 2026 |
| libheif-plugin-svtenc · Ubuntu 25.10 (questing) | 1.20.2-1ubuntu0.4 | libheif-plugin-svtenc 1.20.2-1ubuntu0.4 | Jun 24, 2026 |
| libheif-plugin-svtenc · Ubuntu 26.04.1 LTS (resolute) | 1.21.2-3ubuntu0.1 | libheif-plugin-svtenc 1.21.2-3ubuntu0.1 | Jul 21, 2026 |
| libheif-plugin-x265 · Ubuntu 24.04.5 LTS (noble) | 1.17.6-1ubuntu4.4 | libheif-plugin-x265 1.17.6-1ubuntu4.4 | Jun 24, 2026 |
| libheif-plugin-x265 · Ubuntu 25.10 (questing) | 1.20.2-1ubuntu0.4 | libheif-plugin-x265 1.20.2-1ubuntu0.4 | Jun 24, 2026 |
| libheif-plugin-x265 · Ubuntu 26.04.1 LTS (resolute) | 1.21.2-3ubuntu0.1 | libheif-plugin-x265 1.21.2-3ubuntu0.1 | Jul 21, 2026 |
| libheif-plugins-all · Ubuntu 25.10 (questing) | 1.20.2-1ubuntu0.4 | libheif-plugins-all 1.20.2-1ubuntu0.4 | Jun 24, 2026 |
| libheif-plugins-all · Ubuntu 26.04.1 LTS (resolute) | 1.21.2-3ubuntu0.1 | libheif-plugins-all 1.21.2-3ubuntu0.1 | Jul 21, 2026 |
| libheif-tools · amzn 2023 | 1.19.8-1.amzn2023.0.5 | ALAS2023-2026-1814 | Jun 8, 2026 |
| libheif-tools-debuginfo · amzn 2023 | 1.19.8-1.amzn2023.0.5 | ALAS2023-2026-1814 | Jun 8, 2026 |
| libheif1 · Ubuntu 24.04.5 LTS (noble) | 1.17.6-1ubuntu4.4 | libheif1 1.17.6-1ubuntu4.4 | Jun 24, 2026 |
| libheif1 · Ubuntu 25.10 (questing) | 1.20.2-1ubuntu0.4 | libheif1 1.20.2-1ubuntu0.4 | Jun 24, 2026 |
| libheif1 · Ubuntu 26.04.1 LTS (resolute) | 1.21.2-3ubuntu0.1 | libheif1 1.21.2-3ubuntu0.1 | Jul 21, 2026 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.