8.7high
libheif: Out-of-bounds read in uncompressed unci tile range slicing
- Severity
- 8.7high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.56% (higher than 48% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
libheif is a HEIF and AVIF file format decoder and encoder. From 1.19.0 until 1.23.1, a crafted uncompressed HEIF image using generic zlib unci full-item compression can crash an application that decodes an advertised tile with heif_image_handle_decode_image_tile(). In libheif/codecs/uncompressed/unc_decoder.cc, unc_decoder::fetch_tile_data() computes a large tile offset and unc_decoder::get_compressed_image_data_uncompressed() validates it with range_start_offset plus range_size. For the last advertised tile (4095, 4095), the addition can wrap to zero, bypass the bounds check, and pass an invalid source pointer and a one-terabyte length to memcpy. The observed result is an out-of-bounds read and process crash; opening the file alone does not trigger the issue because tile decoding is required. This issue is fixed in version 1.23.1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| strukturag libheif | >= 1.19.0, < 1.23.1 | CVE List |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
libheif is a HEIF and AVIF file format decoder and encoder. From 1.19.0 until 1.23.1, a crafted uncompressed HEIF image using generic zlib unci full-item compression can crash an application that decodes an advertised tile with heif_image_handle_decode_image_tile(). In libheif/codecs/uncompressed/unc_decoder.cc, unc_decoder::fetch_tile_data() computes a large tile offset and unc_decoder::get_compressed_image_data_uncompressed() validates it with range_start_offset plus range_size. For the last advertised tile (4095, 4095), the addition can wrap to zero, bypass the bounds check, and pass an invalid source pointer and a one-terabyte length to memcpy. The observed result is an out-of-bounds read and process crash; opening the file alone does not trigger the issue because tile decoding is required. This issue is fixed in version 1.23.1.
NVD (es)
libheif es un decodificador y codificador de formato de archivo HEIF y AVIF. Desde la versión 1.19.0 hasta la 1.23.1, una imagen HEIF sin comprimir manipulada que utiliza compresión genérica zlib unci de elemento completo puede provocar el bloqueo de una aplicación que decodifica un mosaico anunciado con heif_image_handle_decode_image_tile(). En libheif/codecs/uncompressed/unc_decoder.cc, unc_decoder::fetch_tile_data() calcula un gran desplazamiento de mosaico y unc_decoder::get_compressed_image_data_uncompressed() lo valida con range_start_offset más range_size. Para el último mosaico anunciado (4095, 4095), la suma puede desbordarse a cero, omitir la comprobación de límites y pasar un puntero de origen no válido y una longitud de un terabyte a memcpy. El resultado observado es una lectura fuera de límites y un bloqueo del proceso; abrir el archivo por sí solo no activa el problema porque se requiere la decodificación del mosaico. Este problema está solucionado en la versión 1.23.1.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-62292 changed 2026-08-25 | CVE Terms of Use |
| NVD | CVE-2026-62292 changed 2026-10-22 | Public domain |