Description
Netpbm through 11.16.00 contains a heap out-of-bounds write vulnerability in the rasttopnm Sun rasterfile run-length decoder pr_load_image in converter/other/rast.c. Attackers can supply a byte-encoded rasterfile with tiny dimensions and a long run-length body to write controlled bytes past md_image, causing memory corruption and crashes.
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/rast.c technical-description
- https://sourceforge.net/p/netpbm/code/5400/tree/super_stable/converter/other/rast.c technical-description
- https://netpbm.sourceforge.net/ product
- VulnCheck Advisory: Netpbm through 11.16.00 Heap Out-of-Bounds Write via rasttopnm pr_load_image third-party-advisory