Bug 2497431 (CVE-2026-58384)

Summary: CVE-2026-58384 gimp: gimp: Integer overflow in read_RLE_channel()
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: rhel-process-autobot, watson-tool-maintainers
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in GIMP's PSD parser. An integer overflow in read_RLE_channel() can cause an undersized heap allocation for the RLE row-length table, after which subsequent per-row writes corrupt heap memory. This could lead to memory corruption, potentially resulting in denial of service or arbitrary code execution.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-07-06 18:55:05 UTC
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

Comment 1 errata-xmlrpc 2026-07-16 07:50:50 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:40751 https://access.redhat.com/errata/RHSA-2026:40751