Bug 2458745 (CVE-2026-40916)

Summary: CVE-2026-40916 gimp: GIMP: Denial of Service due to stack buffer overflow in TIM image loader
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
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. A stack buffer overflow vulnerability in the TIM image loader's 4BPP decoding path allows a local user to cause a Denial of Service (DoS). By opening a specially crafted TIM image file, the application crashes due to an unconditional overflow when writing to a variable-length array.
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-04-15 18:48:22 UTC
The TIM image loader has a stack buffer overflow in the 4BPP decoding path. A variable-length array row[] is allocated as width bytes, but the decode loop writes 2 * width bytes into it, unconditionally overflowing by exactly width bytes with data derived from the file. Opening any crafted 4BPP TIM file triggers the overflow and crashes GIMP.