Bug 2497433 (CVE-2026-58386) - CVE-2026-58386 gimp: gimp: Stack overflow via VLAs in load_image()
Summary: CVE-2026-58386 gimp: gimp: Stack overflow via VLAs in load_image()
Keywords:
Status: NEW
Alias: CVE-2026-58386
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:58 UTC by OSIDB Bzimport
Modified: 2026-07-07 07:24 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:58:02 UTC
Stack overflow via VLAs in GIMP's TIM loader. In load_image() in file-tim.c, file-controlled width, height, and clut_size values are used directly in several variable-length array declarations on the stack across multiple decode paths. A crafted TIM file can therefore force oversized stack allocations and memory corruption.

- Function: load_image()
- File: plug-ins/common/file-tim.c
- Fix: https://gitlab.gnome.org/GNOME/gimp/-/commit/88a0a895
- Upstream issue: https://gitlab.gnome.org/GNOME/gimp/-/issues/16222
- Acknowledgment: bb1abu


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