Description
The DGifDecompressLine function in dgif_lib.c in GIFLIB (possibly version 3.0.x), as later shipped in cgif.c in sam2p 0.49.4, has a heap-based buffer overflow because a certain "Private->RunningCode - 2" array index is not checked. This will lead to a denial of service or possibly unspecified other impact.
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 | giflib | 5.1.9-1 | — |
| Debian 13 | giflib | 5.1.9-1 | — |
| Debian 12 | giflib | 5.1.9-1 | — |
| Debian 10 | giflib | 5.1.4-3+deb10u1 | DLA-3223-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | giflib | 5.1.4-2ubuntu0.1 | USN-4107-1 |
| Ubuntu 16.04 LTS | giflib | 5.1.4-0.3~16.04.1 | USN-4107-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP3 | giflib | 5.2.1-150000.4.8.1 | SUSE-SU-2022:1565-1 |
| SLES 15 SP2 | giflib | 5.2.1-150000.4.8.1 | SUSE-SU-2023:1970-2 |
| SLES 15 SP1 | giflib | 5.2.1-150000.4.8.1 | SUSE-SU-2023:1970-2 |
| SLES 12 SP5 | giflib | 5.0.5-13.3.1 | SUSE-SU-2024:1622-1 |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP2 | giflib | 5.2.1-150000.4.8.1 | SUSE-SU-2023:1970-2 |
| SLES for SAP 15 SP1 | giflib | 5.2.1-150000.4.8.1 | SUSE-SU-2023:1970-2 |
| SLES for SAP 12 SP5 | giflib | 5.0.5-13.3.1 | SUSE-SU-2024:1622-1 |
| SLE Real Time 15 SP2 | giflib | 5.2.1-150000.4.8.1 | SUSE-SU-2022:1565-1 |
| SLE HPC 15 SP2 | giflib | 5.2.1-150000.4.8.1 | SUSE-SU-2023:1970-2 |
| SLE HPC 15 SP1 | giflib | 5.2.1-150000.4.8.1 | SUSE-SU-2023:1970-2 |
| SUSE Enterprise Storage 7 | giflib | 5.2.1-150000.4.8.1 | SUSE-SU-2023:1970-2 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | giflib | 5.2.1-2.3 | openSUSE-SU-2024:10784-1 |
| openSUSE Leap 15.4 | giflib | 5.2.1-150000.4.8.1 | SUSE-SU-2022:1565-1 |
| openSUSE Leap 15.3 | giflib | 5.2.1-150000.4.8.1 | SUSE-SU-2022:1565-1 |
Advisories 6
- USN-4107-1 giflib vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DLA-3223-1 giflib - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2022:1565-1 Security update for giflib SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:1970-2 Security update for giflib SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10784-1 giflib-devel-32bit-5.2.1-2.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:1622-1 Security update for giflib SUSE / openSUSE Security Updates · May 2, 2025
References
- 104327 vdb-entry
- https://github.com/pts/sam2p/issues/38
- USN-4107-1 vendor-advisory
- [debian-lts-announce] 20221205 [SECURITY] [DLA 3223-1] giflib security update mailing-list