GdkPixbuf GIF Decoder Uninitialized Memory Disclosure Vulnerability

Vulnerability

A memory disclosure vulnerability has been identified in GdkPixbuf's GIF parser, specifically within the LZW decoder. When the decoder encounters an invalid symbol during the decompression process, it erroneously reports the output size as the full buffer length instead of the actual number of bytes written. This flaw allows uninitialized portions of the buffer to be included in the output, potentially leaking arbitrary memory contents through the processed image.

Impact

Exploitation of this vulnerability can lead to unauthorized access to uninitialized memory, which may contain sensitive information.

Reproduction

To reproduce this vulnerability, create a crafted GIF file that includes invalid LZW symbols. When this GIF is processed by GdkPixbuf, the decoder will incorrectly handle the invalid symbols, leading to the inclusion of uninitialized memory in the output image. After processing, the leaked memory contents can be accessed from the resulting pixbuf.

Added: Jun 17, 2025, 3:17 PM
Updated: Jun 17, 2025, 3:17 PM

Vulnerability Rating

Custom Algorithm
spread
7.8
impact
3.3
exploitability
4.8
remediation
0.0
relevance
0.2
threat
1.6
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.