# CVE-2020-29385: gir1.2-gdkpixbuf-2.0: GNOME gdk-pixbuf (aka GdkPixbuf) before 2.42.2 allows a denial of service (infinite loop) in lzw.c in the function wr...

CVE-2020-29385 is fixed in 4 products on 1 platform, first by gir1.2-gdkpixbuf-2.0 2.40.0+dfsg-3ubuntu0.1, released December 7, 2020. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2020-29385
- Priority: Routine
- CVSS: n/a (Medium)
- EPSS: 0.0154
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Dec 7, 2020

## 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-&gt;self_code equals 10, self-&gt;code_table[10].extends will assign the value 11 to c. The next execution in the loop will assign self-&gt;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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | gir1.2-gdkpixbuf-2.0 Ubuntu 20.04 LTS (focal) | 2.40.0+dfsg-3ubuntu0.1 | [gir1.2-gdkpixbuf-2.0 2.40.0+dfsg-3ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-gir1.2-gdkpixbuf-2.0-2.40.0-dfsg-3ubuntu0.1.md) | Dec 7, 2020 |
| Linux | libgdk-pixbuf2.0-0 Ubuntu 20.04 LTS (focal) | 2.40.0+dfsg-3ubuntu0.1 | [libgdk-pixbuf2.0-0 2.40.0+dfsg-3ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libgdk-pixbuf2.0-0-2.40.0-dfsg-3ubuntu0.1.md) | Dec 7, 2020 |
| Linux | libgdk-pixbuf2.0-bin Ubuntu 20.04 LTS (focal) | 2.40.0+dfsg-3ubuntu0.1 | [libgdk-pixbuf2.0-bin 2.40.0+dfsg-3ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libgdk-pixbuf2.0-bin-2.40.0-dfsg-3ubuntu0.1.md) | Dec 7, 2020 |
| Linux | libgdk-pixbuf2.0-common Ubuntu 20.04 LTS (focal) | 2.40.0+dfsg-3ubuntu0.1 | [libgdk-pixbuf2.0-common 2.40.0+dfsg-3ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libgdk-pixbuf2.0-common-2.40.0-dfsg-3ubuntu0.1.md) | Dec 7, 2020 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
