Gimp: integer overflow when generating a thumbnail preview for a psd file
GNOME / GIMP · Red Hat / Red Hat Enterprise Linux 8、Red Hat Enterprise Linux 9、Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions、Red Hat Enterprise Linux 10、Red Hat Enterprise Linux 6 +1
A flaw was found in the file-psd plugin in GIMP. When generating a thumbnail preview for a specially crafted PSD (Photoshop Document) image file, an integer overflow occurs during the multiplication of values from an embedded JPEG header. This leads to an undersized heap allocation, resulting in a heap-based buffer overflow when the image data is decoded. This buffer overflow corrupts adjacent heap objects, allowing for a controlled memory write that can result in an application crash or arbitrary code execution.