Description
Netpbm through 11.16.00 contains a heap out-of-bounds read vulnerability in rasttopnm that allows attackers to read heap memory by supplying Sun rasterfiles with short colormaps. Attackers can craft colormapped rasterfiles with pixel bytes exceeding the palette length to leak up to 255 adjacent heap bytes into the PNM output or crash the program.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Netpbm | Netpbm | ≤ 11.16.00 | — |
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 | netpbm-free | No fix yet | — |
| Debian 13 | netpbm-free | No fix yet | — |
| Debian 12 | netpbm-free | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | netpbm-free | No fix yet | — |
| Ubuntu 26.04 LTS | netpbm-free | No fix yet | — |
| Ubuntu 24.04 LTS | netpbm-free | No fix yet | — |
| Ubuntu 22.04 LTS | netpbm-free | No fix yet | — |
| Ubuntu 20.04 LTS | netpbm-free | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | netpbm-free | No fix yet | — |
| Ubuntu 16.04 LTS | netpbm-free | No fix yet | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | netpbm | No fix yet | — |
References
- https://hackmd.io/@haindpwn/netpbm-sunraster-rle-oob-write-palette-oob-read third-party-advisory
- https://sourceforge.net/p/netpbm/code/5400/tree/advanced/converter/other/rasttopnm.c technical-description
- https://sourceforge.net/p/netpbm/code/5400/tree/advanced/converter/other/rast.c technical-description
- https://netpbm.sourceforge.net/ product
- VulnCheck Advisory: Netpbm through 11.16.00 Heap Out-of-Bounds Read via rasttopnm Colormap third-party-advisory