
FFmpeg 9.1 Patch Fixes Integer Overflow in Image Encoder
A medium-severity integer overflow vulnerability, CVE-2026-135712, has been identified in FFmpeg versions prior to 9.1. The flaw exists in the write_packet() function within libavformat/img2enc.c, specifically in the split_planes size check. Attackers can exploit this by crafting rawvideo streams with excessive width and height values, remuxing them into .y image files, to trigger out-of-bounds heap reads. This can result in memory leakage or application crashes. The issue has been resolved in FFmpeg 9.1.