CVE-2026-125097: FFmpeg through 9.0.2 Uninitialized Heap Memory Disclosure via rawdec.c Raw Video Decoder
FFmpeg through 9.0.2 contains an uninitialized memory disclosure vulnerability in rawdecode() in libavcodec/rawdec.c that fails to verify packet stride covers a full row for 1 to 8 bits per pixel video. Attackers can supply crafted AVI, MOV or NUT files with truncated low bit depth rawvideo packets to leak uninitialized heap memory through decoded frame output.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
alpine/ffmpegto a version that resolves this vulnerability.Fixed in 8.1.4-r0 - Upgrade
Upgrade
debian/ffmpegto a version that resolves this vulnerability.Fixed in 7:7.1.6-0+deb13u1
Event History
Frequently Asked Questions
Who is exposed to this issue?
Any FFmpeg use that decodes untrusted AVI, MOV, or NUT files containing low-bit-depth rawvideo is exposed. The affected decoder path applies to rawvideo formats using 1 to 8 bits per pixel.
What must an attacker do to exploit it?
An attacker must provide a crafted media file with a truncated low-bit-depth rawvideo packet whose stride does not cover a complete row, and cause FFmpeg to decode it. The attack requires user interaction according to the supplied vector.
What information could be disclosed?
Decoded frame output can contain uninitialized heap memory. The provided impact rating identifies confidentiality impact as low, with no integrity or availability impact.
How can I determine whether an environment is affected?
Check whether the deployed FFmpeg version is through 9.0.2 and whether it decodes AVI, MOV, or NUT content from untrusted sources. Review uses of the raw video decoder for 1 to 8 bits per pixel input.