Vulnerability · Published Aug 8, 2026 · Assigned by redhat
CVE-2026-42170Gimp: gimp dds plug-in heap-based buffer overflow via bpp mismatch in load_layer() (ddsread.c)
High 7.8
In plain English
A high-severity security flaw in Red Hat Enterprise Linux 6 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 9% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | gimp | no fix listed | DEBIAN-CVE-2026-42170 |
| Debian:13 | gimp | 3.0.4-3+deb13u10 | DEBIAN-CVE-2026-42170 |
| Debian:14 | gimp | 3.2.4-1 | DEBIAN-CVE-2026-42170 |
| Ubuntu:26.04:LTS | gimp | no fix listed | UBUNTU-CVE-2026-42170 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Enterprise Linux 6 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
Weakness: CWE-131 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://access.redhat.com/security/cve/CVE-2026-42170 vdb-entry, x_refsource_REDHAT
- RHBZ#2461726 issue-tracking, x_refsource_REDHAT