CVE-2026-125218: FFmpeg through 9.0.2 APNG Encoder Heap Buffer Overflow via encode_apng()
FFmpeg through 9.0.2 contains a heap buffer overflow vulnerability in the APNG encoder's encodeapng() function in libavcodec/pngenc.c when frame size changes mid-stream. Attackers can supply crafted media whose resolution grows mid-stream, causing APNGDISPOSEOPBACKGROUND memset writes past prevframe and crashing or corrupting heap memory in transcoding applications.