Description
Use-after-free vulnerability in the GIFReadNextExtension function in lib/pngxtern/gif/gifread.c in OptiPNG 0.6.2 and earlier allows context-dependent attackers to cause a denial of service (application crash) via a crafted GIF image that causes the realloc function to return a new pointer, which triggers memory corruption when the old pointer is accessed.
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.6.2.1-1 | — |
| Debian 13 | optipng | 0.6.2.1-1 | — |
| Debian 12 | optipng | 0.6.2.1-1 | — |
References
- 34201 third-party-advisory
- 34259 third-party-advisory
- 34035 third-party-advisory
- 33873 vdb-entry
- SUSE-SR:2009:006 vendor-advisory
- ADV-2009-0510 vdb-entry
- http://optipng.sourceforge.net
- http://sourceforge.net/tracker/index.php?func=detail&aid=2582013&group_id=151404&atid=780913
- 35685 third-party-advisory
- SUSE-SR:2009:012 vendor-advisory
- [oss-security] 20090224 CVE request: optipng security release mailing-list
- [oss-security] 20090225 Re: CVE request: optipng security release mailing-list
- GLSA-200903-12 vendor-advisory
- optipng-gifreadnextextension-code-execution(48879) vdb-entry