JLSEC-2026-2160: FFmpeg through 9.0.2 contains a memory leak vulnerability in ff_mjpeg_decode_sof() in libavcodec...
FFmpeg through 9.0.2 contains a memory leak vulnerability in ffmjpegdecodesof() in libavcodec/mjpegdec.c, which overwrites the hwaccelpictureprivate 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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/FFMPEG_jllto a version that resolves this vulnerability.Fixed in 9.1.0+0 - Upgrade
Upgrade
julia/FFMPEG_nogpl_jllto a version that resolves this vulnerability.Fixed in 9.1.0+0
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which deployments are most exposed to this issue?
Deployments that decode attacker-controlled MJPEG streams using VAAPI or NVDEC hardware acceleration are the affected scenario described. The issue can leak hardware-acceleration private data and hardware buffers.
What must an attacker provide to trigger the leak?
An attacker needs to cause decoding of a crafted MJPEG stream containing repeated SOF markers or frames that fail during decoding. The supplied CVSS vector indicates local attack access and user interaction are required.
How can I assess whether a system may be affected?
Check whether the deployment uses julia/ffmpeg_jll or julia/ffmpeg_nogpl_jll with FFmpeg through 9.0.2, and whether MJPEG decoding is performed with VAAPI or NVDEC enabled. Review workloads for untrusted or externally supplied MJPEG input.