FFmpegのWAV出力処理に脆弱性、細工した音声で任意のコードを実行されるおそれ
Summary
FFmpegの9.1より前のバージョンには、WAVの書き出し処理にヒープバッファオーバーフローの脆弱性があります。チャンネル数がゼロの細工されたPCMストリームを読み込ませると、ヒープメモリが壊され、クラッシュや任意のコードの実行につながるおそれがあります。修正版の9.1が公開されているため、9.1以降へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
FFmpegの9.1より前のバージョンには、WAVの書き出し処理にヒープバッファオーバーフローの脆弱性があります。チャンネル数がゼロの細工されたPCMストリームを読み込ませると、ヒープメモリが壊され、クラッシュや任意のコードの実行につながるおそれがあります。修正版の9.1が公開されているため、9.1以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| FFmpegFFmpeg |
< 9.1→ 9.1 |
9.1 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-135722 ffmpeg No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-135722 libav, ffmpeg No fixed version in this record
Original description The description as published by the source.
FFmpeg before 9.1 contains a heap-based buffer overflow vulnerability in peak_init_writer() and wav_write_packet() in libavformat/wavenc.c that allows attackers to corrupt heap memory by supplying audio with zero channels. Attackers can provide a crafted PCM stream declaring no channels for WAV output with peak envelope enabled, causing out-of-bounds writes past peak_maxpos and peak_maxneg arrays, crashes, and potential code execution.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory vulncheck.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- report code.ffmpeg.org
- web github.com
- web code.ffmpeg.org
- web github.com