Description
The bmp_read_rows function in pngxtern/pngxrbmp.c in OptiPNG before 0.7.6 allows remote attackers to cause a denial of service (invalid memory write and crash) via a series of delta escapes in a crafted BMP image.
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 | optipng | 0.7.6-1 | — |
| Debian 13 | optipng | 0.7.6-1 | — |
| Debian 12 | optipng | 0.7.6-1 | — |
| Debian 8 | optipng | 0.7.5-1+deb8u1 | DSA-3546-1 |
| Debian 7 | optipng | 0.6.4-1+deb7u2 | DSA-3546-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | optipng | 0.6.4-1ubuntu0.14.04.1 | USN-2951-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | optipng | 0.7.6-1.4 | openSUSE-SU-2024:10140-1 |
Advisories 3
- DSA-3546-1 optipng - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-2951-1 optipng vulnerabilities Ubuntu Security Notices (USN) · Feb 10, 2026
- openSUSE-SU-2024:10140-1 optipng-0.7.6-1.4 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://sourceforge.net/p/optipng/bugs/59/
- [oss-security] 20160404 CVE-2016-2191: optipng: invalid write mailing-list
- openSUSE-SU-2016:1082 vendor-advisory
- DSA-3546 vendor-advisory
- USN-2951-1 vendor-advisory
- openSUSE-SU-2016:1078 vendor-advisory
- 20160404 CVE-2016-2191: optipng: invalid write mailing-list
- 20160404 CVE-2016-2191: optipng: invalid write mailing-list
- GLSA-201608-01 vendor-advisory
- http://packetstormsecurity.com/files/136553/Optipng-Invalid-Write.html