Description
The gif_read_lzw function in filter/image-gif.c in CUPS 1.4.8 and earlier does not properly handle the first code word in an LZW stream, which allows remote attackers to trigger a heap-based buffer overflow, and possibly execute arbitrary code, via a crafted stream, a different vulnerability than CVE-2011-2896.
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 | cups | 1.5.0-8 | — |
| Debian 13 | cups | 1.5.0-8 | — |
| Debian 12 | cups | 1.5.0-8 | — |
| Debian 6.0 | cups | 1.4.4-7+squeeze1 | DSA-2354-1 |
| Debian 5.0 | cups | 1.3.8-1+lenny10 | DSA-2354-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | swi-prolog | No fix yet | — |
| Ubuntu 26.04 LTS | swi-prolog | No fix yet | — |
| Ubuntu 25.10 | swi-prolog | No fix yet | — |
| Ubuntu 24.04 LTS | swi-prolog | No fix yet | — |
| Ubuntu 22.04 LTS | swi-prolog | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | swi-prolog | No fix yet | — |
| Ubuntu 18.04 LTS | swi-prolog | No fix yet | — |
| Ubuntu 16.04 LTS | swi-prolog | No fix yet | — |
Advisories 1
- DSA-2354-1 cups - several Debian Security (DSA / DLA) · Mar 9, 2026
References
- USN-1207-1 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=727800
- DSA-2354 vendor-advisory
- 46024 third-party-advisory
- 1025980 vdb-entry
- GLSA-201207-10 vendor-advisory
- MDVSA-2011:146 vendor-advisory
- 45796 third-party-advisory
- cups-gifreadlzw-function-bo(69380) vdb-entry
- MDVSA-2011:147 vendor-advisory
- 49323 vdb-entry
- http://cups.org/str.php?L3914