CVE-2026-96546: Gimp: gimp: one-byte out-of-bounds heap read in the uncompressed dds loader

Published Sep 23, 2026
·
Updated

A one-byte out-of-bounds heap read flaw was found in GIMP's DDS image loader. In loadlayer(), the bit-reader unconditionally increments the input pointer and fetches the next byte whenever the current byte's bits are exhausted. After processing the final pixel of an uncompressed DDS image, this logic dereferences exactly one byte beyond the allocated pixel buffer. The issue occurs with ordinary well-formed uncompressed DDS files, including files produced by GIMP itself, and was confirmed with AddressSanitizer in GIMP 3.2.6. The same code remained present in the main and gimp-3-2 branches when reported, and all versions are reported as affected. In a normal non-instrumented build, the adjacent byte is read into a local variable after the final pixel and is not known to influence the decoded image. No information disclosure or code-execution primitive was demonstrated, and a crash would require the byte immediately following the allocation to be inaccessible. This issue is distinct from CVE-2026-42170, which concerns a separate pitch-overflow write in the same file. A patch was available, but no fixed release had been identified at the time of reporting.

Other sources

A one-byte out-of-bounds heap read flaw was found in GIMP's uncompressed DDS image loader. When a user opens an uncompressed DDS image, the file-dds plug-in performs an unconditional one-byte look-ahead after processing the final pixel. This may cause the plug-in to crash if the byte immediately following the pixel buffer is inaccessible; no information disclosure or code execution has been demonstrated.

MITRE

Affected Software

1 affected component
GIMP GIMP

Event History

Sep 23, 2026
Data Sourced
via Red Hat·06:04 PM
DescriptionSeverityAffected Software
CVE Published
via MITRE·06:29 PM
Data Sourced
via MITRE·06:29 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:19 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What files and user actions can trigger the issue?

The flaw is triggered while loading an uncompressed DDS image, including ordinary well-formed files and DDS files produced by GIMP itself. Exploitation requires a user to open or otherwise load such an image; no attacker privileges are required.

2

How likely is this to have a practical security impact?

The out-of-bounds read is exactly one byte beyond the pixel buffer. In normal non-instrumented builds, that byte is stored in a local variable after the final pixel and is not known to affect the decoded image; no information disclosure or code-execution primitive was demonstrated. A crash requires the byte immediately following the allocation to be inaccessible.

3

Are installations affected by default, and which versions are vulnerable?

The affected code was present in GIMP 3.2.6 and remained in the main and gimp-3-2 branches when reported. All versions are reported as affected, and no fixed release had been identified at the time of reporting.

4

What can be done before a fixed release is available?

A patch was available at the time of reporting, so maintainers can apply or backport that patch where feasible. Otherwise, reduce exposure by avoiding the loading of untrusted uncompressed DDS files.

5

Is this the same issue as the DDS pitch-overflow vulnerability?

No. This is a separate one-byte out-of-bounds read in the DDS loader, whereas CVE-2026-42170 concerns a pitch-overflow write in the same file.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203