CVE-2026-106062

Summary

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 (CWE-787), following integer overflow in size calculations (CWE-190). This may allow heap corruption and, in the worst case, arbitrary code execution in the context of the GIMP process.

Affected Software

VendorProductVersion RangeStatus

Weaknesses

  • CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer

Workarounds

To mitigate this do not open DDS files from untrusted sources (CME-1311). Exploitation may be harder on hardened systems (Full RELRO/PIE, ASLR, FORTIFY_SOURCE, heap allocator protections) but the vulnerability remains.

References