CVE-2026-42170
Description
A 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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Mitigation details
CVE-2026-42170 NameCVE-2026-42170 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…
CVE-2026-42170
| Name | CVE-2026-42170 |
| Source | CVE (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 Package | Release | Version | Status |
|---|---|---|---|
| gimp (PTS) | bullseye | 2.10.22-4+deb11u2 | vulnerable |
| bullseye (security) | 2.10.22-4+deb11u8 | vulnerable | |
| bookworm, bookworm (security) | 2.10.34-1+deb12u10 | vulnerable | |
| trixie | 3.0.4-3+deb13u9 | vulnerable | |
| trixie (security) | 3.0.4-3+deb13u8 | vulnerable | |
| forky, sid | 3.2.4-3 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| gimp | source | (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)
Apply commands
https://gitlab.gnome.org/GNOME/gimp/-/work_items/16161https://gitlab.gnome.org/GNOME/gimp/-/merge_requests/2758Fixed by: https://gitlab.gnome.org/GNOME/gimp/-/commit/7dff816fbd58fe17456405f19db332ef5d2a44a0 (GIMP_3_2_4)
OS impact
Debian Mixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Affected | — |
| sid | Fixed | 3.2.4-1 |
| forky | Fixed | 3.2.4-1 |
| bullseye | Affected | — |
| bookworm | Affected | — |
References
CWEs
CWE-131
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.