Bug 2495997 (CVE-2026-58379) - CVE-2026-58379 gimp: gimp: Heap buffer overflow in read_channel_data()
Summary: CVE-2026-58379 gimp: gimp: Heap buffer overflow in read_channel_data()
Keywords:
Status: NEW
Alias: CVE-2026-58379
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:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-01 15:06 UTC by OSIDB Bzimport
Modified: 2026-07-13 06:40 UTC (History)
2 users (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:38496 0 None None None 2026-07-13 06:40:09 UTC

Description OSIDB Bzimport 2026-07-01 15:06:14 UTC
A heap buffer overflow write vulnerability exists in GIMP's Paint Shop Pro (PSP) file format parser. In read_channel_data() in file-psp.c, for low bit-depth images (depth=1 or 4), line_width uses a packed formula (8 pixels/byte) but fread() reads width bytes (1 byte/pixel). For example, with width=33 and depth=1: allocates 4 bytes, writes 33 — a 29-byte heap overflow.

This is a variant of CVE-2026-4153 (commit 98cb1371), which fixed read_layer_block() but left the buf allocation in read_channel_data() unpatched.

- Function: read_channel_data()
- File: plug-ins/common/file-psp.c:1558-1784
- Fix: https://gitlab.gnome.org/GNOME/gimp/-/commit/b630f167
- Hardening: https://gitlab.gnome.org/GNOME/gimp/-/commit/20b00d6d
- Upstream issue: https://gitlab.gnome.org/GNOME/gimp/-/issues/16205
- Acknowledgment: bb1abu

Comment 1 errata-xmlrpc 2026-07-13 06:40:07 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:38496 https://access.redhat.com/errata/RHSA-2026:38496


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