Heap-based buffer overflow in libheif - #VU131970
Published: May 20, 2026
libheif
Detailed vulnerability description
The vulnerability allows a remote attacker to cause a denial of service or potentially execute arbitrary code.
The vulnerability exists due to heap-based buffer overflow in heif_region_item_add_region_inline_mask in libheif/api/libheif/heif_regions.cc when processing crafted region mask dimensions. A remote attacker can trigger a 32-bit multiplication overflow in width and height calculations to create an undersized buffer and then overflow it with a subsequent memset to cause a denial of service or potentially execute arbitrary code.