Bug 1927237 (CVE-2020-29385) - CVE-2020-29385 gdk-pixbuf: DoS in lzw.c
Summary: CVE-2020-29385 gdk-pixbuf: DoS in lzw.c
Keywords:
Status: NEW
Alias: CVE-2020-29385
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1927239 1928670 1928673
Blocks: 1927240
TreeView+ depends on / blocked
 
Reported: 2021-02-10 11:40 UTC by Dhananjay Arunesh
Modified: 2021-02-15 10:40 UTC (History)
10 users (show)

Fixed In Version: gdk-pixbuf 2.42.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Dhananjay Arunesh 2021-02-10 11:40:49 UTC
GNOME gdk-pixbuf (aka GdkPixbuf) before 2.42.2 allows a denial of service (infinite loop) in lzw.c in the function write_indexes. if c->self_code equals 10, self->code_table[10].extends will assign the value 11 to c. The next execution in the loop will assign self->code_table[11].extends to c, which will give the value of 10. This will make the loop run infinitely. This bug can, for example, be triggered by calling this function with a GIF image with LZW compression that is crafted in a special way.

References:
https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/blob/master/NEWS
https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/issues/164

Comment 1 Dhananjay Arunesh 2021-02-10 11:41:37 UTC
Created gdk-pixbuf2 tracking bugs for this issue:

Affects: fedora-all [bug 1927239]

Comment 5 Stefan Cornelius 2021-02-15 10:40:02 UTC
Created mingw-gdk-pixbuf tracking bugs for this issue:

Affects: fedora-all [bug 1928673]


Note You need to log in before you can comment on or make changes to this bug.