Bug 2497435 (CVE-2026-58388) - CVE-2026-58388 gimp: gimp: Stack-based out-of-bounds write in Seattle FilmWorks loader
Summary: CVE-2026-58388 gimp: gimp: Stack-based out-of-bounds write in Seattle FilmWor...
Keywords:
Status: NEW
Alias: CVE-2026-58388
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-06 19:00 UTC by OSIDB Bzimport
Modified: 2026-07-07 07:13 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-06 19:00:25 UTC
Stack-based out-of-bounds write in GIMP's Seattle FilmWorks (SFW94A) loader. In load_image() in file-seattle-filmworks.c, a stack VLA sized as file_size - 0xE0 is allocated, but subsequent bounds checks continue to use file_size. A crafted SFW file can therefore drive the JPEG marker search and repair logic past the VLA boundary and corrupt stack memory.

- Function: load_image()
- File: plug-ins/common/file-seattle-filmworks.c:261-428
- Fix: https://gitlab.gnome.org/GNOME/gimp/-/commit/c1263f39
- Upstream issue: https://gitlab.gnome.org/GNOME/gimp/-/issues/16231
- Acknowledgment: bb1abu


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