CVE-2026-42170
7.8high
Gimp: gimp dds plug-in heap-based buffer overflow via bpp mismatch in load_layer() (ddsread.c)
- Severity
- 7.8high CVSS:3.1 by redhat
- Exploit likelihood
- 0.16% (higher than 5% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
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
| Product or package | Versions | Reported by |
|---|---|---|
| gimp | Not specified | CVE List |
| gimp:2.8/gimp | Not specified | CVE List |
| redhat enterprise_linux | 6.0, 7.0, 8.0, 9.0 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
References
| https://access.redhat.com/security/cve/CVE-2026-42170 | vdb-entry, vendor-advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2461726 | issue-tracking | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42170 changed 2026-11-23 | CVE Terms of Use |
| NVD | CVE-2026-42170 changed 2026-11-23 | Public domain |