FFmpeg heap corruption in APNG encoding after resolution changes
FFmpeg
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| FFmpeg FFmpeg |
| No fix yet |
Original description
FFmpeg through 9.0.2 contains a heap buffer overflow vulnerability in the APNG encoder's encode_apng() function in libavcodec/pngenc.c when frame size changes mid-stream. Attackers can supply crafted media whose resolution grows mid-stream, causing APNG_DISPOSE_OP_BACKGROUND memset writes past prev_frame and crashing or corrupting heap memory in transcoding applications.
From the CVE record · VulnCheck