Red Hat Enterprise Linux 9
Gimp: gimp: heap buffer overflow in dds loader on crafted directdraw surface file
A heap-based buffer overflow was found in GIMP’s DirectDraw Surface (DDS) loader. When loading a crafted DDS image, buffer sizes derived from width, height, and pitch can be computed using 32-bit arithmetic that overflows. The allocated buffer is too small for the amount of pixel data written through GEGL, following integer overflow in size calculations. This may allow heap corruption and, in the worst case, arbitrary code execution in the context of the GIMP process.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Fixed in 2:3.0.4-4.el9_8.15
Fixed in 2:3.0.4-8.el9_9.5
Mitigation
Upgrade Red Hat Enterprise Linux 9 to 2:3.0.4-4.el9_8.15 or later.
Upgrade Red Hat Enterprise Linux 9 to 2:3.0.4-8.el9_9.5 or later.
Workaround
To mitigate this do not open DDS files from untrusted sources. Exploitation may be harder on hardened systems (Full RELRO/PIE, ASLR, FORTIFY_SOURCE, heap allocator protections) but the vulnerability remains.
References
- Vendor advisory access.redhat.com/errata/RHSA-2026:93975
- Vendor advisory access.redhat.com/errata/RHSA-2026:98495
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.