
FFmpeg 9.1 Patch Addresses High-Severity WAV Muxer Heap Overflow
A high-severity heap buffer overflow vulnerability, CVE-2026-135722, has been identified in FFmpeg versions prior to 9.1. The flaw resides in the WAV muxer's peak envelope writer functions, specifically peak_init_writer() and wav_write_packet() within libavformat/wavenc.c. Attackers can exploit this by supplying a crafted PCM stream that declares zero channels for WAV output with peak envelope enabled. This triggers out-of-bounds writes past the peak_maxpos and peak_maxneg arrays, potentially leading to memory corruption, application crashes, or code execution. The vulnerability carries a CVSS 4.0 score of 8.5 and a CVSS 3.1 score of 7.8, both rated as High. It requires local access and user interaction but no special privileges. The issue has been resolved in the release of FFmpeg 9.1.