Bug 2586075 (CVE-2026-138781)

Summary: CVE-2026-138781 gimp: gimp: out-of-bounds read in PSD alpha channel arrays in add_merged_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 the file-psd plugin in GIMP. Incorrect bounds checks when loading PSD alpha channel metadata can cause an out-of-bounds read. Opening a crafted PSD file can crash the application and may allow 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:
Bug Depends On: 2586076    
Bug Blocks:    

Description OSIDB Bzimport 2026-11-30 11:24:51 UTC
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.