Описание
libheif is a HEIF and AVIF file format decoder and encoder. Prior to 1.23.2, when WITH_UNCOMPRESSED_CODEC is enabled, heif_context_add_image_tile() accepts an independently constructed tile whose component-plane dimensions do not match the tile geometry established by the prototype image. ImageItem_uncompressed::add_image_tile() passes that tile directly to unc_encoder::encode_tile(), which lacked the check_component_sizes() gate and sizes its output from the configured tile geometry while copying the tile's actual component-plane dimensions. An oversized component plane can therefore make unc_encoder_component_interleave::encode_tile() copy attacker-controlled data beyond the heap output buffer. This issue is fixed in version 1.23.2.
A flaw was found in libheif, a HEIF and AVIF file format decoder and encoder. When processing uncompressed tiled images with the WITH_UNCOMPRESSED_CODEC enabled, the heif_context_add_image_tile() function can accept a specially crafted image tile with mismatched dimensions. This can lead to an out-of-bounds write, allowing an attacker to copy controlled data beyond the heap output buffer, potentially resulting in arbitrary code execution.
Отчет
This vulnerability is rated as Important impact because successful exploitation can allow heap memory corruption, leading to application crashes or potential arbitrary code execution without authentication. In Red Hat environments, libheif operates as a shared library for media rendering and image manipulation rather than an exposed network daemon, restricting exposure to applications actively processing untrusted files. Furthermore, exploitation requires that uncompressed codec features are utilized and processing mismatched image tiles, contributing to higher attack complexity.
Меры по смягчению последствий
To mitigate this vulnerability, users should avoid processing untrusted HEIF or AVIF image files with applications linked against libheif. Restricting the handling of such files to trusted sources can reduce the risk of exploitation.
Ссылки на источники
Дополнительная информация
Статус:
7.4 High
CVSS3
Связанные уязвимости
libheif is a HEIF and AVIF file format decoder and encoder. Prior to 1.23.2, when WITH_UNCOMPRESSED_CODEC is enabled, heif_context_add_image_tile() accepts an independently constructed tile whose component-plane dimensions do not match the tile geometry established by the prototype image. ImageItem_uncompressed::add_image_tile() passes that tile directly to unc_encoder::encode_tile(), which lacked the check_component_sizes() gate and sizes its output from the configured tile geometry while copying the tile's actual component-plane dimensions. An oversized component plane can therefore make unc_encoder_component_interleave::encode_tile() copy attacker-controlled data beyond the heap output buffer. This issue is fixed in version 1.23.2.
libheif is a HEIF and AVIF file format decoder and encoder. Prior to 1.23.2, when WITH_UNCOMPRESSED_CODEC is enabled, heif_context_add_image_tile() accepts an independently constructed tile whose component-plane dimensions do not match the tile geometry established by the prototype image. ImageItem_uncompressed::add_image_tile() passes that tile directly to unc_encoder::encode_tile(), which lacked the check_component_sizes() gate and sizes its output from the configured tile geometry while copying the tile's actual component-plane dimensions. An oversized component plane can therefore make unc_encoder_component_interleave::encode_tile() copy attacker-controlled data beyond the heap output buffer. This issue is fixed in version 1.23.2.
libheif is a HEIF and AVIF file format decoder and encoder. Prior to 1 ...
7.4 High
CVSS3