CVE-2026-135712: FFmpeg before 9.1 Integer Overflow Out-of-Bounds Read via img2enc.c write_packet()
FFmpeg before 9.1 contains an integer overflow vulnerability in the splitplanes size check of writepacket() in libavformat/img2enc.c that allows out-of-bounds heap reads. Attackers can supply a crafted input whose rawvideo stream declares very large width and height, remuxed into .y image files, to leak heap memory into output files or crash the application.
Affected Software
Event History
Frequently Asked Questions
What conditions are required to exploit this issue?
An attacker needs to provide a crafted input containing a rawvideo stream with very large declared width and height. The affected application must remux that input into .y image files, reaching the split_planes size check in img2enc.c write_packet().
What is the practical impact of successful exploitation?
The integer overflow can cause an out-of-bounds heap read. This may leak heap memory into generated output files or crash the application.
Which FFmpeg versions should be considered affected?
FFmpeg versions before 9.1 are affected. The supplied data does not identify a narrower affected version range.