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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | gdk-pixbuf | 2.42.2+dfsg-1 | — |
| Debian 13 | gdk-pixbuf | 2.42.2+dfsg-1 | — |
| Debian 12 | gdk-pixbuf | 2.42.2+dfsg-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | gdk-pixbuf | 2.40.0+dfsg-3ubuntu0.1 | USN-4663-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP2 | gdk-pixbuf | 2.40.0-3.3.1 | SUSE-SU-2021:0184-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | gdk-pixbuf | 2.42.6-3.2 | openSUSE-SU-2024:10779-1 |
| openSUSE Leap 15.2 | gdk-pixbuf | 2.40.0-lp152.2.3.1 | openSUSE-SU-2021:0150-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | gdk-pixbuf | 2.42.2-r0 | — |
| Alpine v3.23 | gdk-pixbuf | 2.42.2-r0 | — |
| Alpine v3.22 | gdk-pixbuf | 2.42.2-r0 | — |
| Alpine v3.21 | gdk-pixbuf | 2.42.2-r0 | — |
| Alpine v3.20 | gdk-pixbuf | 2.42.2-r0 | — |
Show 9 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | gdk-pixbuf | 2.42.2-r0 | — |
| Alpine v3.18 | gdk-pixbuf | 2.42.2-r0 | — |
| Alpine v3.17 | gdk-pixbuf | 2.42.2-r0 | — |
| Alpine v3.16 | gdk-pixbuf | 2.42.2-r0 | — |
| Alpine v3.15 | gdk-pixbuf | 2.42.2-r0 | — |
| Alpine v3.14 | gdk-pixbuf | 2.42.2-r0 | — |
| Alpine v3.13 | gdk-pixbuf | 2.42.2-r0 | — |
| Alpine v3.12 | gdk-pixbuf | 2.40.0-r4 | — |
| Alpine v3.11 | gdk-pixbuf | 2.40.0-r2 | — |
Advisories 4
- USN-4663-1 gdk-pixbuf vulnerability Ubuntu Security Notices (USN) · Apr 22, 2026
- openSUSE-SU-2021:0150-1 Security update for gdk-pixbuf SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:0184-1 Security update for gdk-pixbuf SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10779-1 gdk-pixbuf-devel-2.42.6-3.2 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- 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
- FEDORA-2021-2e59756cbe vendor-advisory
- FEDORA-2021-755ba8968a vendor-advisory
- FEDORA-2021-c918632e13 vendor-advisory