Bug 2513089

Summary: CVE-2026-59088 gimp: GIMP: Denial of service via signed integer overflow in FLI file processing [fedora-all]
Product: [Fedora] Fedora Reporter: Ganesh <gnaik>
Component: gimpAssignee: Nils Philippsen <nphilipp>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 45CC: jridky, nphilipp, phracek, zdohnal
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---Flags: fedora-admin-xmlrpc: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["c05bdece-28f0-4536-a9e1-25b7cee54ad3"]}
Fixed In Version: Doc Type: ---
Doc Text:
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:
Bug Depends On:    
Bug Blocks: 2496582    

Description Ganesh 2026-08-10 10:47:53 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

https://gitlab.gnome.org/GNOME/gimp/-/work_items/16492

fli_header.width and fli_header.height are gushort (uint16). The expression
fb  = g_malloc (fli_header.width * fli_header.height);
ofb = g_malloc (fli_header.width * fli_header.height);


performs the multiplication after C integer promotion to int. When both values are 65535 the product 4,294,836,225 exceeds INT_MAX (2,147,483,647) → undefined behavior. UBSan detects this and the plug-in aborts.
Affected code
/* plug-ins/file-fli/fli-gimp.c:541-546 */
image = gimp_image_new (fli_header.width, fli_header.height, GIMP_INDEXED);

fb  = g_malloc (fli_header.width * fli_header.height);
ofb = g_malloc (fli_header.width * fli_header.height);


File: plug-ins/file-fli/fli-gimp.c:545 (and the mirror at L546, L805, L806)
Version: GIMP 3.2.4

Comment 1 Aoife Moloney 2026-08-17 15:50:20 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.