Skip to main content
EPSS 0.2%top 94%

CVE-2026-42170: Incorrect Calculation of Buffer Size in Red Hat Red Hat Enterprise Linux 6

0
High
VulnerabilityCVE-2026-42170cvecve-2026-42170
Published: 08/08/2026 (08/08/2026, 15:51:23 UTC)
Source: CVE Database V5
Vendor/Project: Red Hat
Product: Red Hat Enterprise Linux 6

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.

CVSS v3.1

Score 7.8high

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected software

Red Hat

Red Hat Enterprise Linux 6

Red Hat

Red Hat Enterprise Linux 7

Red Hat

Red Hat Enterprise Linux 8

Red Hat

Red Hat Enterprise Linux 9

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/16/2026, 14:45:12 UTC

Technical Analysis

This vulnerability exists in the GIMP DDS (DirectDraw Surface) file parser on Red Hat Enterprise Linux 6. When a malicious DDS file declares a D3D9 pixel format but sets a lower bits-per-pixel (bpp) value in the header, the parser allocates a heap buffer that is too small. Subsequent pixel data processing writes beyond this buffer, corrupting heap metadata and potentially allowing arbitrary code execution. The flaw is triggered by opening a crafted DDS image file with GIMP. The vulnerability has a CVSS 3.1 score of 7.8 (high severity) with local attack vector, low attack complexity, no privileges required, and user interaction required. Red Hat advises avoiding untrusted DDS files and removing GIMP if it is not essential. No official fix or patch is currently confirmed in the advisory.

Potential Impact

Successful exploitation can lead to heap metadata corruption and potentially arbitrary code execution on affected systems. The vulnerability affects confidentiality, integrity, and availability, with a high impact rating. It requires local access and user interaction (opening a crafted DDS file) but no privileges. This could allow an attacker to execute code with the privileges of the user running GIMP.

Mitigation Recommendations

Red Hat advises users to avoid opening untrusted DirectDraw Surface (DDS) image files with GIMP. As a security measure, only process DDS files from trusted sources. If GIMP is not essential, consider removing the 'gimp' package to eliminate this attack vector. There is no official fix or patch currently confirmed; users should monitor the Red Hat advisory for updates.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
redhat
Date Reserved
2026-04-24T20:54:37.044Z
Cvss Version
3.1
State
PUBLISHED
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/16/2026, 14:45:12 UTC

Last updated: 09/23/2026, 01:47:42 UTC

Views: 63

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses