Skip to content
OpenAdvisories

Description

A flaw was found in GIMP's PNM file format parser. When parsing a specially crafted PNM file, the pnmscanner_gettoken() function writes a null terminator one byte past the end of a stack-allocated buffer due to an off-by-one error in the loop boundary check. This could lead to memory corruption, potentially resulting in denial of service or arbitrary code execution.

Affected products

VendorProductAffectedFixed
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 9 — —
Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions — —
Red Hat Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions — —
Red Hat Red Hat Enterprise Linux 9.6 Extended Update Support — —
Red Hat Red Hat Enterprise Linux 6 — —
Red Hat Red Hat Enterprise Linux 7 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 gimp 3.2.4-1 —
Debian 13 gimp 3.0.4-3+deb13u10 —
Debian 12 gimp No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS gimp No fix yet —
Ubuntu 25.10 gimp No fix yet —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS gimp No fix yet —
Ubuntu Pro 22.04 LTS gimp No fix yet —
Ubuntu Pro 20.04 LTS gimp No fix yet —
Ubuntu Pro 18.04 LTS gimp No fix yet —
Ubuntu Pro 16.04 LTS gimp No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 gimp +1 2:3.0.4-4.el9_8.7 RHSA-2026:40751
RHEL 8 gimp +3 2:2.8.22-26.module+el8.10.0+24752+9e6a86ef.8 RHSA-2026:62507
RHEL 8 pygobject2 +3 2.28.7-5.module+el8.10.0+22676+becd68d6 RHSA-2026:62507
RHEL 8 pygtk2 +3 2.24.0-25.module+el8.9.0+21228+8e80d31d RHSA-2026:62507
RHEL 8 python2-cairo +2 1.16.3-7.module+el8.10.0+22676+becd68d6 RHSA-2026:62507
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.6 EUS gimp +1 2:2.99.8-4.el9_6.20 RHSA-2026:73768
RHEL 9.4 E4S gimp +1 2:2.99.8-4.el9_4.19 RHSA-2026:80509
RHEL 9.2 E4S gimp +1 2:2.99.8-4.el9_2.7 RHSA-2026:93589

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 gimp +1 2:3.0.4-4.el9_8.7 ALSA-2026:40751
AlmaLinux 8 gimp +3 2:2.8.22-26.module_el8.10.0+4267+35168c80.8 ALSA-2026:62507
AlmaLinux 8 pygobject2 +3 2.28.7-5.module_el8.10.0+4267+35168c80 ALSA-2026:62507
AlmaLinux 8 pygtk2 +3 2.24.0-25.module_el8.9.0+3725+d1441900 ALSA-2026:62507
AlmaLinux 8 python2-cairo +1 1.16.3-7.module_el8.10.0+4267+35168c80 ALSA-2026:62507

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 gimp 2:2.8.22-26.module+el8.10.0+1927+52edb5a0 RLSA-2026:62507
Rocky Linux 8 pygobject2 2.28.7-5.module+el8.10.0+1927+52edb5a0 RLSA-2026:62507
Rocky Linux 8 pygtk2 2.24.0-25.module+el8.9.0+1723+9bc93544 RLSA-2026:62507
Rocky Linux 8 python2-pycairo 1.16.3-7.module+el8.10.0+1927+52edb5a0 RLSA-2026:62507
ReleasePackageFixed inAdvisory
SLES 15 SP7 gimp 2.10.30-150400.3.58.1 SUSE-SU-2026:3399-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 gimp 3.0.8-bp160.5.1 openSUSE-SU-2026:21359-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 gimp +1 2:3.0.4-4.el9_8.7 ELSA-2026-40751

Advisories 12

References