CVE-2020-29385
Vulnerability Summary
Timeline
Description
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.
CVSS Metrics
- v3.1•MEDIUM•Score: 5.5CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- v2.0•MEDIUM•Score: 4.3AV:N/AC:M/Au:N/C:N/I:N/A:P
EPSS Trends
Current EPSS score: 1.48%• Percentile: 73%
Techniques & Countermeasures
- CWE-835•Loop with Unreachable Exit Condition ('Infinite Loop')
The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.
Affected Systems
- alpine•gdk-pixbuf
< 2.40.0-r2 | < 2.40.0-r4 | < 2.42.2-r0 | < 2.42.2-r0 | < 2.42.2-r0 | < 2.42.2-r0 | < 2.42.2-r0 | < 2.42.2-r0 | < 2.42.2-r0 | < 2.42.2-r0 | < 2.42.2-r0 | < 2.42.2-r0 | < 2.42.2-r0
- canonical•ubuntu_linux
20.04 | 20.10
- debian•gdk-pixbuf
< 2.42.2+dfsg-1 | < 2.42.2+dfsg-1 | < 2.42.2+dfsg-1 | < 2.42.2+dfsg-1
- fedoraproject•fedora
33 | 34
- gnome•gdk-pixbuf
> 2.39.2, < 2.42.2
References (10)
- https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/blob/master/NEWS
- https://security.gentoo.org/glsa/202012-15
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=977166
- https://ubuntu.com/security/CVE-2020-29385
- https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/issues/164
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EANWYODLOJDFLMBH6WEKJJMQ5PKLEWML/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B5H3GNVWMZTYZR3JBYCK57PF7PFMQBNP/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BGZVCTH5O7WBJLYXZ2UOKLYNIFPVR55D/
- https://security.alpinelinux.org/vuln/CVE-2020-29385
- https://security-tracker.debian.org/tracker/CVE-2020-29385