CVE-2026-125099: FFmpeg through 9.0.2 Uninitialized Memory Disclosure via GEM Raster Decoder
FFmpeg through 9.0.2 contains an uninitialized memory disclosure vulnerability in the GEM raster image decoder in libavcodec/gemdec.c that exposes uninitialized row-buffer bytes. Attackers can supply a crafted GEM .img image using SKIP or pattern opcodes to copy uninitialized heap memory into decoded frames, disclosing heap contents.
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
What must an attacker provide to trigger the disclosure?
An attacker must supply a crafted GEM .img image that uses SKIP or pattern opcodes. The issue occurs when the GEM raster decoder copies uninitialized row-buffer bytes into decoded frames.
When is an application exposed?
An application is exposed when it decodes attacker-controlled GEM .img files using the affected FFmpeg GEM raster decoder. The supplied data does not establish that merely having FFmpeg installed, without processing such images, is sufficient.
What information can be disclosed?
Decoded frames can contain uninitialized heap memory from the row buffer, potentially exposing heap contents. The reported impact is information disclosure; no integrity or availability impact is specified.