Fedora Account System
Red Hat Associate
Red Hat Customer
Integer overflow in GIMP's PSD parser. In read_RLE_channel() in psd-load.c, the allocation for rle_pack_len uses g_malloc (lyr_chn->rows * 4) with unchecked arithmetic. A crafted PSD can overflow the allocation size calculation and desynchronize it from the subsequent per-row writes, causing heap memory corruption. - Function: read_RLE_channel() - File: plug-ins/file-psd/psd-load.c:1843-1865 - Fix: https://gitlab.gnome.org/GNOME/gimp/-/commit/da29e217 - Upstream issue: https://gitlab.gnome.org/GNOME/gimp/-/issues/16216 - Acknowledgment: bb1abu