JLSEC-2026-2146: FFmpeg through 9.0.2 contains an integer overflow in cbs_jpeg_write_scan() in libavcodec/cbs_jpeg...
FFmpeg through 9.0.2 contains an integer overflow in cbsjpegwritescan() in libavcodec/cbsjpeg.c that causes a heap buffer overflow on 32-bit builds. Attackers can supply a crafted MJPEG/JPEG stream with a scan of 512 MiB or more, processed by CBS bitstream filters like filterunits, to corrupt the heap or crash the application.
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 exposed to this issue?
The issue affects julia/ffmpeg_jll and julia/ffmpeg_nogpl_jll when they use vulnerable FFmpeg code on a 32-bit build. The vulnerable code is present through FFmpeg 9.0.2.
What must an attacker provide to trigger the overflow?
An attacker needs to cause the application to process a crafted MJPEG/JPEG stream containing a scan of at least 512 MiB. The stream must be handled by a CBS bitstream filter such as filter_units.
What is the practical impact if exploitation succeeds?
Processing the crafted stream can corrupt the heap or crash the application. The reported severity vector indicates potential impact to confidentiality, integrity, and availability.