| Name | CVE-2026-40916 |
| Description | A flaw was found in GIMP. A stack buffer overflow vulnerability in the TIM image loader's 4BPP decoding path allows a local user to cause a Denial of Service (DoS). By opening a specially crafted TIM image file, the application crashes due to an unconditional overflow when writing to a variable-length array. |
| 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 | fixed |
| bullseye (security) | 2.10.22-4+deb11u7 | fixed |
| bookworm | 2.10.34-1+deb12u5 | fixed |
| bookworm (security) | 2.10.34-1+deb12u9 | fixed |
| trixie (security), trixie | 3.0.4-3+deb13u7 | fixed |
| forky, sid | 3.2.2-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|
| gimp | source | bullseye | (not affected) | | | |
| gimp | source | bookworm | (not affected) | | | |
| gimp | source | trixie | (not affected) | | | |
| gimp | source | (unstable) | 3.2.2-1 | | | |
Notes
[trixie] - gimp <not-affected> (Vulnerable code not present)
[bookworm] - gimp <not-affected> (Vulnerable code not present)
[bullseye] - gimp <not-affected> (Vulnerable code not present)
https://gitlab.gnome.org/GNOME/gimp/-/issues/16052
Fixed by: https://gitlab.gnome.org/GNOME/gimp/-/commit/b6d43ec0fe70da87c066a185987f6cee156f278e (GIMP_3_2_2)
Introduced by: https://gitlab.gnome.org/GNOME/gimp/-/commit/d5cdeb96e868308fa529916edbf3034981a664f3 (GIMP_3_1_2)