Bug 2586076

Summary: CVE-2026-138781 gimp: gimp: out-of-bounds read in PSD alpha channel arrays in add_merged_image [fedora-all]
Product: [Fedora] Fedora Reporter: Srikanth Balasubramanian <sbalasub>
Component: gimpAssignee: Nils Philippsen <nils>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: jridky, nils, phracek, zdohnal
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["c7dba9fe-9683-46f3-b705-60228de7618d"]}
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: 2586075    

Description Srikanth Balasubramanian 2026-11-30 11:26:56 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.

A flaw was found in the file-psd plugin in GIMP. In add_merged_image(), bounds checks for alpha channel names, IDs, and display info used "<=" instead of "<", allowing an off-by-one out-of-bounds read past alpha_names or alpha_display_info when parsing a crafted PSD. The out-of-bounds pointer-sized value is then used (for example via gimp_channel_new()/strlen() or as a PSDchanneldata pointer passed to gegl_color_duplicate()), which can crash the file-psd plug-in and may allow further memory corruption. Fixed upstream in commit 7a5814cf73a6cde176d1ed9c104504fa18b9c5a3 (Resolves #17021). The fix is on master only; GIMP 3.2.8 and earlier release lines still contain the defective checks.