CVE-2026-135709: FFmpeg before 9.1 Out-of-Bounds Write via ogg_buffer_data() in oggenc.c
FFmpeg before 9.1 contains an out-of-bounds write vulnerability in oggbufferdata() in libavformat/oggenc.c because oggbufferpage() leaves a full page current after failed allocation. When page allocation fails, a memset with length (sizet)-1 or an overflowing memcpy writes past the segment table, causing heap memory corruption and crashes when writing Ogg output.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Systems using FFmpeg versions before 9.1 that write Ogg output are exposed. The vulnerable code is in libavformat/oggenc.c.
What conditions are required for exploitation?
An attacker needs local access and user interaction, according to the supplied CVSS vector. Exploitation also depends on a page-allocation failure while Ogg output is being written.
What is the impact of a successful trigger?
The failed allocation can cause an oversized memset or overflowing memcpy to write beyond the segment table. This results in heap memory corruption and crashes, with high confidentiality, integrity, and availability impact in the supplied severity vector.
How can the issue be remediated?
Upgrade FFmpeg to version 9.1 or later. The provided references identify fixes in commits 6d40aa17395aaba80922441bcfb58399a88475e3 and a659cd842b122e2f41973ac7c4e826426cc0d756.