JLSEC-2026-2168: FFmpeg through 9.0.2 contains a use after free vulnerability in libavcodec/mjpegdec.c that allows...
FFmpeg through 9.0.2 contains a use after free vulnerability in libavcodec/mjpegdec.c that allows attackers to trigger freed buffer reads by sending a SOF marker without a preceding SOI. Attackers can supply crafted MJPEG streams causing ffmjpegdecodesof() to pass a stale rawimagebuffer pointer to hwaccel decoders like NVDEC, crashing applications or leaking heap contents.
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
What conditions are required to trigger this issue?
An attacker must be able to provide a crafted MJPEG stream containing a SOF marker without a preceding SOI marker. Exploitation also depends on the application decoding that stream through an affected FFmpeg build and a hardware-acceleration decoder such as NVDEC receiving the stale buffer pointer.
What could happen if an affected application processes a malicious stream?
The crafted stream can cause freed-buffer reads through a stale raw_image_buffer pointer. This may crash the application or disclose heap contents.
Which packaged software entries are identified as affected?
The affected software entries are julia/ffmpeg_jll and julia/ffmpeg_nogpl_jll. The issue is described as affecting FFmpeg through version 9.0.2.