CVE-2021-3696: Heap overflow in GRUB2 PNG huffman table insertion
56dba7e5-a315-4c85-91d9-1ab278d93497
Heap out-of-bounds read/write vulnerability in GRUB2's PNG image loader (grub-2.06). The vulnerability occurs in the grub_png_insert_huff_item function when processing dynamic deflate blocks. When reading PNG files with crafted huffman code length data, the function calculates the number of array positions to shift without validating that this count does not exceed the current array size. If the count exceeds array bounds, negative array indices are used, causing heap underflow and potential memory corruption. This affects any PNG with malicious zlib-compressed data, including IDAT chunks and ancillary chunks like iCCP that contain compressed profiles.",antml:parameter>