Description
libheif is a HEIF and AVIF file format decoder and encoder. Prior to 1.19.6, Op_RGB24_32_to_YCbCr::convert_colorspace() stores image-plane strides in an integer width that can overflow for extremely large RGB images created through heif_image_create() and heif_image_add_plane(). The resulting wrapped stride causes the conversion loop in libheif/color-conversion/rgb2yuv.cc to compute an invalid input pointer and read beyond the allocated interleaved plane while heif_context_encode_image() performs RGB-to-YCbCr conversion. This can crash the encoding process. This issue is fixed in version 1.19.6.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| strukturag | libheif | < 1.19.6 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libheif | 1.19.7-1 | — |
| Debian 13 | libheif | 1.19.7-1 | — |
| Debian 12 | libheif | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | libheif | 1.21.2-3ubuntu0.6 | USN-8846-1 |
| Ubuntu 24.04 LTS | libheif | 1.17.6-1ubuntu4.9 | USN-8846-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | libheif | 1.12.0-2ubuntu0.1~esm5 | USN-8846-1 |
| Ubuntu Pro 20.04 LTS | libheif | 1.6.1-1ubuntu0.1~esm5 | USN-8846-1 |
| Ubuntu Pro 18.04 LTS | libheif | 1.1.0-2ubuntu0.1~esm5 | USN-8846-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | libheif | 1.23.5-160000.1.1 | SUSE-SU-2026:24205-1 |
| SLES 16.0 | libheif | 1.23.5-160000.1.1 | SUSE-SU-2026:24205-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | libheif | 1.23.5-2.1 | openSUSE-SU-2026:11921-1 |
| openSUSE Leap 16.0 | libheif | 1.23.5-160000.1.1 | openSUSE-SU-2026:22052-1 |
Advisories 4
- SUSE-SU-2026:24205-1 Security update for libheif SUSE / openSUSE Security Updates · Oct 21, 2026
- openSUSE-SU-2026:22052-1 Security update for libheif SUSE / openSUSE Security Updates · Oct 19, 2026
- USN-8846-1 libheif vulnerabilities Ubuntu Security Notices (USN) · Oct 17, 2026
- openSUSE-SU-2026:11921-1 gdk-pixbuf-loader-libheif-1.23.5-2.1 on GA media SUSE / openSUSE Security Updates · Sep 30, 2026