Bug 2586075 (CVE-2026-138781) - CVE-2026-138781 gimp: gimp: out-of-bounds read in PSD alpha channel arrays in add_merged_image
Summary: CVE-2026-138781 gimp: gimp: out-of-bounds read in PSD alpha channel arrays in...
Keywords:
Status: NEW
Alias: CVE-2026-138781
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2586076
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-30 11:24 UTC by OSIDB Bzimport
Modified: 2026-11-30 11:26 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

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.


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