CVE-2026-42170: Incorrect Calculation of Buffer Size in Red Hat Red Hat Enterprise Linux 6
CVE-2026-42170 is a heap-based buffer overflow vulnerability in the GIMP DDS file parser on Red Hat Enterprise Linux 6. It occurs when a crafted DDS file declares a D3D9 pixel format but sets a lower bits-per-pixel value, causing the loader to allocate an undersized heap buffer. This leads to a write past the buffer boundary, potentially resulting in heap metadata corruption and code execution. The vulnerability is triggered when users open specially crafted DDS files with GIMP. Users are advised to avoid opening untrusted DDS files or remove the gimp package if not needed.
AI Analysis
Technical Summary
This vulnerability involves incorrect buffer size calculation in the GIMP DDS (DirectDraw Surface) file parser on Red Hat Enterprise Linux 6. When a DDS file declares a D3D9 pixel format but specifies a lower bits-per-pixel (bpp) value in the header, the loader allocates a heap buffer that is too small. Subsequent pixel data processing writes beyond the allocated buffer boundary, causing heap metadata corruption. This can lead to denial of service or potential arbitrary code execution. The flaw is triggered by opening a crafted DDS image file with GIMP. The vulnerability has a CVSS 3.1 base score of 7.8, indicating high severity, with local attack vector, low attack complexity, no privileges required, user interaction required, and high impact on confidentiality, integrity, and availability.
Potential Impact
Successful exploitation can cause heap metadata corruption, potentially allowing an attacker to execute arbitrary code, crash the application, or cause denial of service. The vulnerability requires local access and user interaction (opening a crafted DDS file) but does not require privileges. It affects confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
Red Hat advises users to avoid opening untrusted DirectDraw Surface (DDS) image files with GIMP. If GIMP is not essential, removing the 'gimp' package eliminates this attack vector. No official patch or fix is currently confirmed; users should monitor the Red Hat advisory for updates. Following these mitigations reduces the risk until a fix is available.
CVE-2026-42170: Incorrect Calculation of Buffer Size in Red Hat Red Hat Enterprise Linux 6
Description
CVE-2026-42170 is a heap-based buffer overflow vulnerability in the GIMP DDS file parser on Red Hat Enterprise Linux 6. It occurs when a crafted DDS file declares a D3D9 pixel format but sets a lower bits-per-pixel value, causing the loader to allocate an undersized heap buffer. This leads to a write past the buffer boundary, potentially resulting in heap metadata corruption and code execution. The vulnerability is triggered when users open specially crafted DDS files with GIMP. Users are advised to avoid opening untrusted DDS files or remove the gimp package if not needed.
CVSS v3.1
Score 7.8high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability involves incorrect buffer size calculation in the GIMP DDS (DirectDraw Surface) file parser on Red Hat Enterprise Linux 6. When a DDS file declares a D3D9 pixel format but specifies a lower bits-per-pixel (bpp) value in the header, the loader allocates a heap buffer that is too small. Subsequent pixel data processing writes beyond the allocated buffer boundary, causing heap metadata corruption. This can lead to denial of service or potential arbitrary code execution. The flaw is triggered by opening a crafted DDS image file with GIMP. The vulnerability has a CVSS 3.1 base score of 7.8, indicating high severity, with local attack vector, low attack complexity, no privileges required, user interaction required, and high impact on confidentiality, integrity, and availability.
Potential Impact
Successful exploitation can cause heap metadata corruption, potentially allowing an attacker to execute arbitrary code, crash the application, or cause denial of service. The vulnerability requires local access and user interaction (opening a crafted DDS file) but does not require privileges. It affects confidentiality, integrity, and availability of the affected system.
Mitigation Recommendations
Red Hat advises users to avoid opening untrusted DirectDraw Surface (DDS) image files with GIMP. If GIMP is not essential, removing the 'gimp' package eliminates this attack vector. No official patch or fix is currently confirmed; users should monitor the Red Hat advisory for updates. Following these mitigations reduces the risk until a fix is available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- redhat
- Date Reserved
- 2026-04-24T20:54:37.044Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-42170","vendor":"Red Hat"}]
Threat ID: 6a7751bbbf8831d539c81d45
Added to database: 08/08/2026, 15:56:43 UTC
Last enriched: 08/08/2026, 16:11:10 UTC
Last updated: 08/08/2026, 16:11:10 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.