Bug 2497431 (CVE-2026-58384) - CVE-2026-58384 gimp: gimp: Integer overflow in read_RLE_channel()
Summary: CVE-2026-58384 gimp: gimp: Integer overflow in read_RLE_channel()
Keywords:
Status: NEW
Alias: CVE-2026-58384
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-06 18:55 UTC by OSIDB Bzimport
Modified: 2026-07-07 07:26 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.