JLSEC-2026-2148: FFmpeg through 9.0.2 contains an out-of-bounds memory access vulnerability in the encode_frame()...
FFmpeg through 9.0.2 contains an out-of-bounds memory access vulnerability in the encodeframe() function of libavcodec/huffyuvenc.c, because encodeinit() never validates minimum frame dimensions for the median predictor. Attackers can supply a tiny video, such as a 2-pixel-wide or 1-2-pixel-tall frame, that causes negative submedianpred lengths and out-of-bounds reads and writes when transcoded to huffyuv or ffvhuff, crashing the encoder.
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 transcoding workflows are exposed?
Workflows that encode attacker-supplied video to the huffyuv or ffvhuff codecs are exposed. The affected code is in the encoder, so decoding or transcoding to other output codecs is not identified as affected by the provided data.
What input is needed to trigger the issue?
An attacker needs to supply a tiny video frame that is transcoded with the affected encoder. Examples include a frame that is 2 pixels wide or 1–2 pixels tall; no attacker privileges are required, but user interaction is required according to the supplied vector.
What happens if exploitation succeeds?
The malformed dimensions can produce negative median-predictor lengths, leading to out-of-bounds reads and writes in the encoder. The described outcome is an encoder crash, while the supplied severity vector indicates potential impact to confidentiality, integrity, and availability.
What can be done before patching?
Avoid encoding untrusted inputs to huffyuv or ffvhuff. If those codecs must be used, reject frames with very small dimensions before they reach the transcoding pipeline.