CVE-2026-47714

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. Their product can exceed `UINT32_MAX`, wrapping to a small value before the division by 8. This causes an undersized buffer allocation, leading to out-of-bounds memory access when the mask data is later interpreted as a `width x height` bitmap. Version 1.22.0 patches the issue.
References
Configurations

Configuration 1 (hide)

cpe:2.3:a:struktur:libheif:*:*:*:*:*:*:*:*

History

24 Oct 2026, 19:10

Type Values Removed Values Added
Summary
  • (es) libheif es un decodificador y codificador de formato de archivo HEIF y AVIF. En las versiones 1.21.2 y anteriores, el código de análisis de máscara en línea en ’libheif/region.cc’ contiene un desbordamiento de entero. Tanto ’width’ como ’height’ son valores ’unsigned int’ (de 32 bits) analizados del archivo HEIF. Su producto puede exceder ’UINT32_MAX’, desbordándose a un valor pequeño antes de la división por 8. Esto causa una asignación de búfer de tamaño insuficiente, lo que lleva a un acceso a memoria fuera de límites cuando los datos de la máscara se interpretan posteriormente como un mapa de bits de ’width x height’. La versión 1.22.0 corrige el problema.

Information

Published : 2026-07-21 21:16

Updated : 2026-10-24 19:10


NVD link : CVE-2026-47714

Mitre link : CVE-2026-47714

CVE.ORG link : CVE-2026-47714


JSON object : View

Products Affected

struktur

  • libheif
CWE
CWE-190

Integer Overflow or Wraparound