CVE-2026-125245

FFmpeg through 9.0.2 Memory Leak in MJPEG Hwaccel SOF Decoding

Medium published · updated

5.7
CVSS score out of 10 · NVD (vulncheck.com)

Description

FFmpeg through 9.0.2 contains a memory leak vulnerability in ff_mjpeg_decode_sof() in libavcodec/mjpegdec.c, which overwrites the hwaccel_picture_private pointer without freeing it. Attackers can supply crafted MJPEG streams with repeated SOF markers or failing frames to leak hwaccel private data and hardware buffers under VAAPI or NVDEC decoding.

Affected products and versions

Product / packageEcosystem / vendorVersionsFixed inSource
ffmpeg ffmpeg ≤9.0.2— CVE.org

References