CVE-2026-42170

NameCVE-2026-42170
DescriptionA heap-based buffer overflow vulnerability exists in the GIMP DDS (DirectDraw Surface) file parser. When a crafted DDS file declares a D3D9 pixel format but sets a lower bits-per-pixel (bpp) value in the header, the loader allocates an undersized heap buffer. Subsequent pixel data consumption at the real format's stride causes a write past the heap buffer boundary, leading to heap metadata corruption and potential code execution.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
gimp (PTS)bullseye2.10.22-4+deb11u2vulnerable
bullseye (security)2.10.22-4+deb11u8vulnerable
bookworm, bookworm (security)2.10.34-1+deb12u10vulnerable
trixie3.0.4-3+deb13u9vulnerable
trixie (security)3.0.4-3+deb13u8vulnerable
forky, sid3.2.4-3fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
gimpsource(unstable)3.2.4-1

Notes

https://gitlab.gnome.org/GNOME/gimp/-/work_items/16161
https://gitlab.gnome.org/GNOME/gimp/-/merge_requests/2758
Fixed by: https://gitlab.gnome.org/GNOME/gimp/-/commit/7dff816fbd58fe17456405f19db332ef5d2a44a0 (GIMP_3_2_4)

Search for package or bug name: Reporting problems