Bug 2458745 (CVE-2026-40916) - CVE-2026-40916 gimp: GIMP: Denial of Service due to stack buffer overflow in TIM image loader
Summary: CVE-2026-40916 gimp: GIMP: Denial of Service due to stack buffer overflow in ...
Keywords:
Status: NEW
Alias: CVE-2026-40916
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-04-15 18:48 UTC by OSIDB Bzimport
Modified: 2026-04-15 18:55 UTC (History)
0 users

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


Attachments (Terms of Use)

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.


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