Summary
This update for libheif fixes the following issues
Update to 1.23.0:
- CVE-2025-68431: heap buffer over-read in `HeifPixelImage: overlay()` via crafted HEIF that exercises the overlay image
item (bsc#1255735).
- CVE-2026-3949: manipulation of the argument size of a malicious frame can lead to out-of-bounds read (bsc#1259541).
- CVE-2026-3950: manipulation of the component stsz/stts can lead to out-of-bounds read (bsc#1259544).
- CVE-2026-32738: Heap OOB Read / SEGV Crash via Zero samples_per_chunk in stsc (bsc#1265874).
- CVE-2026-32739: Infinite Loop DoS in stts Sample Duration Lookup (bsc#1265875).
- CVE-2026-32740: Heap-Buffer-Overflow Write in Grid Tile Chroma Compositing (bsc#1265876).
- CVE-2026-32741: heap buffer overflow in decode_mask_image() (bsc#1265877).
- CVE-2026-32814: Uninitialized Heap Memory Information Leak via Failed Grid Tiles (bsc#1265878).
- CVE-2026-32882: Heap Buffer OOB Read in overlay compositing due to wrong alpha stride (bsc#1265879).
- CVE-2026-41069: Out-of-bounds vector access leading to invalid dereference (bsc#1265979).
- CVE-2026-41071: Heap buffer over-read in SampleAuxInfoReader via crafted HEIF sequence file with mismatched saiz
sample count (bsc#1265980).
- CVE-2026-47178: Heap Out Of Bounds Write in unci subsystem (bsc#1265981).
- CVE-2026-47247: Heap Information Disclosure via Grid Image Gap + Uninitialized Pixel Plane Allocation (bsc#1265982).
- CVE-2026-47251: integer overflow bypass in vvdec_push_data2 (bsc#1265983).
- CVE-2026-47254: Heap Buffer Overflow in `Track: get_next_sample_raw_data()` -- OOB Chunk Vector Access (bsc#1265987).
- CVE-2026-47709: NULL pointer dereference in heif_image_handle_get_image_tiling for malformed unci image missing ispe
(bsc#1265988).
- CVE-2026-47714: Integer overflow in inline mask size calculation causes undersized buffer allocation (bsc#1265989).
- CVE-2026-48029: heap OOB read in ImageItem_Grid: decode_grid_tile via irot-induced tile-coordinate underflow
(bsc#1265990).
- CVE-2026-49271: Wrapped icef compressed-unit range check causes out-of-bounds read in uncompressed HEIF decoder
(bsc#1266282).
- CVE-2026-50142: unbounded heap allocation in HEIF sequence parser (bsc#1267455).
- Heap buffer overflow via uint32_t stride overflow in image plane allocation (+ 2 additional instances) (bsc#1265997).
- Incorrect byte-count initialization in BitstreamRange constructor allows container-boundary check bypass
(bsc#1265995).
- Integer Overflow in SampleAuxInfoReader Offset Calculation (bsc#1265992).
- Out-of-bounds read and assertion-based DoS in EXIF parsing (find_exif_tag / read32) with short EXIF TIFF payload
(bsc#1265996).
- Out-of-bounds write in inline mask region API when source mask exceeds declared region (bsc#1266281).
- update to 1.23.0:
* add API functions to read and write metadata:
ambient viewing environment
nominal diffuse white luminance
- update to 1.22.2:
* adds a output_image_nclx_profile_passthrough option to heif_decoding_options
* build issues with OpenJPEG plugin (#1813)
* non-plain C in header (#1812)
- update to 1.22.0:
* This is a large release with substantial new functionality,
mainly focusing on generalized image formats (e.g., multi-
spectral images) and a reworked implementation of ISO/IEC
23001-17 (lossless image codec).
* HDR up to 64 bpp
* Multi-component images with arbitrary component layouts
(multi-spectral images, arbitrary non-visual data)
* Filter-array (Bayer / mosaic) images, with debayering in
color transformation pipeline
* Metadata: chroma-sample location (cloc), sample non-
uniformity (snuc), sensor bad-pixel map (sbpm), polarization
pattern (splz)
* heif-dec can now convert to WebP (thanks to @torusrxxx).
* heif-enc can now accept input from WebP, HEIF, pure raw files
(including floating point pixel data), and CMYK JPEG
(converted to RGB).
* TIFF input can now read many TIFF formats used in geospatial
imaging, like: 16-bit, signed integers, float samples, tiled
TIFFs, GeoTIFF overview images, CMYK JPEG, YCbCr-as-JPEG.
TIFFs with image tiling and multi-resolution layers are now
reproduced as HEIFs when converted.
* PNG decoder/encoder: cICP, cLLI, and mDCV chunk support
(#1697).
* heif-dec: auto-correct option to fix known input errors (e.g.
mismatched NCLX/VUI).
* Image, Track, Sequence samples, image component GIMI content
IDs
* Embedding of Turtle (.ttl) metadata files; automatic parsing
of GIMI content IDs from Turtle
* AOM encoder plugin now auto-selects IQ tune mode
* mini-box syntax updated to the current HEIF version 4 draft
(thanks @bradh for the initial implementation)
* unif brand (globally-unique-ID) support
* OMAF (omnidirectional images): indicate ISO/IEC 23000-22
spherical/omnidirectional image projection
* alpha bit-depth tracked through the color-conversion pipeline
* ## Build / CI
* requires C++20
* oss-fuzz integration overhauled
* fuzzers for tile API, generic API surface, and per-codec
encoders
- update to 1.21.2:
* build script for JS/WASM now supports building with JPEG2000 and
"ISO23001-17 Uncompressed" support.
* image sequence SAI data now works when using the OpenH264 decoder
plugin
- update to 1.21.1:
* This patch release only fixes a build error with some GCC versions
because of a missing #include.
- update to 1.21.0:
* This release adds full support for reading and writing HEIF image
sequences. libheif will now encode HEIF image sequences with all
included codecs.
* Since HEIF image sequences are very similar to MP4 videos, this new
version is also capable of decoding most MP4 videos (without audio,
of course).
* heif-enc documentation for sequence encoding
* API documentation for reading and writing sequences
* Support for image sequences with alpha channels. For most codecs,
the alpha channel will be stored in a separate, auxiliary,
monochrome track. For ISO/IEC 23001-17 (uncompressed) streams, the
alpha channel is stored in the main video track.
* Support for
Fixed packages 1
| Release | Package | Fixed in |
|---|---|---|
| openSUSE · Leap 16.0 | libheif | 1.23.0-160000.1.1 |
Vulnerabilities 20
-
High 8.8CVE-2026-32740 Public exploit
libheif: Heap-Buffer-Overflow Write in Grid Tile Chroma Compositing
libheif 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…
-
High 7.5
libheif Vulnerable to Heap Information Disclosure via Grid Image Gap + Uninitialized Pixel Plane Allocation
libheif is a HEIF and AVIF file format decoder and encoder. Prior to version 1.22.0, two bugs in libheif chain to leak process heap memory as visible pixel values in decoded grid images. An attacker who uploads a crafted AVIF/HEIC file to any server-side imag…
-
High 7.5CVE-2026-50142 Public exploit
libheif: unbounded heap allocation in HEIF sequence parser (stsz fixed-size mode missing bound check)
libheif is a HEIF and AVIF file format decoder and encoder. From 1.19.0 until 1.23.0, a crafted HEIF sequence accepted by heif_context_read_from_memory() with the msf1 sequence brand can cause unbounded heap allocation. In libheif/sequences/seq_boxes.cc, Box_…
-
High 7.1
libheif has a heap buffer overflow in decode_mask_image()
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 dat…
-
High 7.1
libheif: Heap Buffer OOB Read in overlay compositing due to wrong alpha stride
libheif is a HEIF and AVIF file format decoder and encoder. Versions 1.21.2 and prior contain a heap buffer over-read in HeifPixelImage::overlay() in libheif/pixelimage.cc. When compositing an overlay image (iovl) whose child image has a different bit depth f…
-
High 7.1
libheif: heap OOB read in ImageItem_Grid::decode_grid_tile via irot-induced tile-coordinate underflow
libheif is a HEIF and AVIF file format decoder and encoder. Versions 1.19.0 through 1.21.2 have a heap OOB read in ImageItem_Grid::decode_grid_tile via irot-induced tile-coordinate underflow. Version 1.22.0 fixes the issue.
-
Medium 6.9
libheif has a NULL pointer dereference in heif_image_handle_get_image_tiling for malformed unci image missing ispe
libheif is a HEIF and AVIF file format decoder and encoder. Versions prior to 1.22.0 crashes in the public C API `heif_image_handle_get_image_tiling()` when a malformed uncompressed HEIF image item has an associated `uncC` property but no associated `ispe` pr…
-
Medium 6.8
libheif has an incomplete fix for CVE-2026-3949: integer overflow bypass in vvdec_push_data2
libheif is a HEIF and AVIF file format decoder and encoder. The fix for CVE-2026-3949 (commit `b97c8b5`, PR #1712) introduced an integer overflow in the very security check it added. The check itself can be bypassed, allowing a crafted HEIF file with a VVC tr…
-
Medium 6.5
libheif has Potential Heap Buffer Over-Read
libheif is an HEIF and AVIF file format decoder and encoder. Prior to version 1.21.0, a crafted HEIF that exercises the overlay image item path triggers a heap buffer over-read in `HeifPixelImage::overlay()`. The function computes a negative row length (likel…
-
Medium 6.5
libheif has a Heap OOB Read/SEGV Crash via Zero samples_per_chunk
libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and below, a crafted 792-byte HEIF sequence file with samples_per_chunk=0 in the stsc box causes an unsigned integer underflow in the Chunk constructor (m_last_sample = 0 + 0 - 1 =…
-
Medium 6.5
libheif is Vulnerable to Infinite Loop DoS via stts Sample Duration Lookup
libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and below, a crafted 800-byte HEIF sequence file causes an infinite loop in Box_stts::get_sample_duration(), consuming 100% CPU indefinitely with zero progress, leading to DoS. The…
-
Medium 6.5
libheif: Uninitialized Heap Memory Information Leak via Failed Grid Tiles
libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and prior, when decoding a HEIF grid image with strict_decoding=false (the default), a corrupted tile silently fails to decode and the library returns heif_error_Ok with no indicat…
-
Medium 6.5
libheif allows Out-of-bounds vector access leading to invalid dereference (DoS)
libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and prior, a malformed HEIF sequence file can trigger an out-of-bounds read in core sequence parsing logic, causing DoS. A malformed file can have stco.entry_count == 0 (creating n…
-
Medium 6.5
libheif: Wrapped icef compressed-unit range check causes out-of-bounds read in uncompressed HEIF decoder
libheif is a HEIF and AVIF file format decoder and encoder. Prior to version 1.22.1, the uncompressed HEIF decoder validates explicit icef compressed-unit offsets using unit_offset + unit_size. Because the addition can wrap, a crafted HEIF file can pass the r…
-
Medium 6.1
libheif has Heap Out Of Bounds Write in unci subsystem
libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.19.0 through 1.21.2, a crafted HEIF file (uncompressed `unci` codec, tiled, component-interleaved, 4:2:0) triggers a heap out-of-bounds write in libheif's uncompressed tile decoder. The…
-
Medium 6.1
libheif Has Heap Buffer Overflow in `Track::get_next_sample_raw_data()` -- OOB Chunk Vector Access
libheif is a HEIF and AVIF file format decoder and encoder. Prior to version 1.22.0, `Track::init_sample_timing_table()` in `libheif/sequences/track.cc` stores an out-of-bounds chunk index (`m_chunks.size()`) into `m_presentation_timeline` when the number of …
-
Medium 6.1
libheif has integer overflow in inline mask size calculation that causes undersized buffer allocation
libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and prior, the inline mask parsing code in `libheif/region.cc` contains an integer overflow. Both `width` and `height` are `unsigned int` (32-bit) values parsed from the HEIF file.…
-
Medium 5.1
libheif: Heap buffer over-read in SampleAuxInfoReader via crafted HEIF sequence file with mismatched saiz sample count
libheif is a HEIF and AVIF file format decoder and encoder. In versions 1.21.2 and prior, a crafted HEIF sequence file where the saiz box declares more samples than actually exist in the track's chunk table causes a heap-buffer-overflow (out-of-bounds read) i…
-
Low 3.3
strukturag libheif HEIF File decoder_vvdec.cc vvdec_push_data2 out-of-bounds
A vulnerability was determined in strukturag libheif up to 1.21.2. This affects the function vvdec_push_data2 of the file libheif/plugins/decoder_vvdec.cc of the component HEIF File Parser. Executing a manipulation of the argument size can lead to out-of-boun…
-
Low 3.3
strukturag libheif stsz/stts track.cc load out-of-bounds
A vulnerability was identified in strukturag libheif up to 1.21.2. This impacts the function Track::load of the file libheif/sequences/track.cc of the component stsz/stts. The manipulation leads to out-of-bounds read. The attack needs to be performed locally.…
References
-
report
https://bugzilla.suse.com/1255735
-
report
https://bugzilla.suse.com/1259541
-
report
https://bugzilla.suse.com/1259544
-
report
https://bugzilla.suse.com/1265874
-
report
https://bugzilla.suse.com/1265875
-
report
https://bugzilla.suse.com/1265876
-
report
https://bugzilla.suse.com/1265877
-
report
https://bugzilla.suse.com/1265878
-
report
https://bugzilla.suse.com/1265879
-
report
https://bugzilla.suse.com/1265979
-
report
https://bugzilla.suse.com/1265980
-
report
https://bugzilla.suse.com/1265981
-
report
https://bugzilla.suse.com/1265982
-
report
https://bugzilla.suse.com/1265983
-
report
https://bugzilla.suse.com/1265987
-
report
https://bugzilla.suse.com/1265988
-
report
https://bugzilla.suse.com/1265989
-
report
https://bugzilla.suse.com/1265990
-
report
https://bugzilla.suse.com/1265992
-
report
https://bugzilla.suse.com/1265995
-
report
https://bugzilla.suse.com/1265996
-
report
https://bugzilla.suse.com/1265997
-
report
https://bugzilla.suse.com/1266281
-
report
https://bugzilla.suse.com/1266282
-
report
https://bugzilla.suse.com/1267455
-
web
https://www.suse.com/security/cve/CVE-2025-68431
-
web
https://www.suse.com/security/cve/CVE-2026-32738
-
web
https://www.suse.com/security/cve/CVE-2026-32739
-
web
https://www.suse.com/security/cve/CVE-2026-32740
-
web
https://www.suse.com/security/cve/CVE-2026-32741
-
web
https://www.suse.com/security/cve/CVE-2026-32814
-
web
https://www.suse.com/security/cve/CVE-2026-32882
-
web
https://www.suse.com/security/cve/CVE-2026-3949
-
web
https://www.suse.com/security/cve/CVE-2026-3950
-
web
https://www.suse.com/security/cve/CVE-2026-41069
-
web
https://www.suse.com/security/cve/CVE-2026-41071
-
web
https://www.suse.com/security/cve/CVE-2026-47178
-
web
https://www.suse.com/security/cve/CVE-2026-47247
-
web
https://www.suse.com/security/cve/CVE-2026-47251