Bug 2497433 (CVE-2026-58386)

Summary: CVE-2026-58386 gimp: gimp: Stack overflow via VLAs in load_image()
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 TIM loader. File-controlled width, height, and palette size values are used directly in multiple variable-length array declarations in load_image(), allowing a crafted TIM file to force oversized stack allocations and memory corruption. This could lead to 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: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