Description
DevIL through 1.8.0 contains a heap-based buffer overflow in iGetPalette() in il_gif.cpp that allows attackers to write beyond a 768-byte palette buffer when loading GIF images. Attackers can supply a crafted two-frame GIF whose second frame uses disposal method 1 with a local colour table, writing up to 384 controlled bytes past the heap allocation and possibly executing code.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| DentonW | DevIL | ≤ 1.8.0 | — |
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 | devil | No fix yet | — |
| Debian 13 | devil | No fix yet | — |
| Debian 12 | devil | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | devil | No fix yet | — |
| Ubuntu 26.04 LTS | devil | No fix yet | — |
| Ubuntu 24.04 LTS | devil | No fix yet | — |
| Ubuntu 22.04 LTS | devil | No fix yet | — |
| Ubuntu 20.04 LTS | devil | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | devil | No fix yet | — |
| Ubuntu 16.04 LTS | devil | No fix yet | — |
References
- https://github.com/DentonW/DevIL/issues/67 issue-tracking
- https://hackmd.io/@haind-pwn/devil-gif-palette-reuse-heap-overflow third-party-advisory
- https://github.com/DentonW/DevIL/blob/a2d9193fed0c7f93519c0c4c28b3348e0cb5759b/DevIL/src-IL/src/il_gif.cpp#L189-L226 technical-description
- https://github.com/DentonW/DevIL/blob/a2d9193fed0c7f93519c0c4c28b3348e0cb5759b/DevIL/src-IL/src/il_gif.cpp#L314-L324 technical-description
- VulnCheck Advisory: DevIL through 1.8.0 Heap Buffer Overflow via GIF iGetPalette third-party-advisory