CVE-2026-42170
published high CVSS 3.1 · 7.8Gimp: gimp dds plug-in heap-based buffer overflow via bpp mismatch in load_layer() (ddsread.c)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | 6, 7 | gimp | Affected | Not stated | redhat |
| Red Hat Enterprise Linux | 8 | gimp:2.8/gimp | Affected | Not stated | redhat |
| Red Hat Enterprise Linux | 9 | gimp | Unknown | Not stated | redhat |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | trixie | gimp | Advisory build | 3.0.4-3+deb13u10 | DSA-6470-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Red Hat | Red Hat Enterprise Linux 6 | Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 7 | Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 8 | Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 9 | Default: unknown | redhat · cna |
Weaknesses
1- CWE-131 Incorrect Calculation of Buffer Size
References
2- https://access.redhat.com/security/cve/CVE-2026-42170
- RHBZ#2461726 https://bugzilla.redhat.com/show_bug.cgi?id=2461726
Provider assertions
2redhat · cna
Gimp: gimp dds plug-in heap-based buffer overflow via bpp mismatch in load_layer() (ddsread.c)
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0f173491c5178d710296f9b79b027d11104d8b0833eb49d9c8000ea78d3d1b1f
- Ingested
- 23 Nov 2026, 15:28:07 UTC
- Source record
- Official CVE record