CVE-2026-125245 FFmpeg through 9.0.2 Memory Leak in MJPEG Hwaccel SOF Decoding

Medium 5.7 Published Updated
Exploited in the wild
Not known
Fix
None listed

What is CVE-2026-125245?

CVE-2026-125245 is a medium-severity vulnerability in FFmpeg, published on 9 Nov 2026.

Official 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.

Weakness: CWE-401

Which versions are affected by CVE-2026-125245?

How do I fix CVE-2026-125245?

No fix has been published for CVE-2026-125245 yet. Limit exposure of the affected software until one is available.

Is CVE-2026-125245 being exploited?

There is no known exploitation of CVE-2026-125245 in the wild and no public exploit code.

Sources

Also known as GHSA-97hh-vm9v-mprx, UBUNTU-CVE-2026-125245.

Is CVE-2026-125245 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free