JLSEC-2026-2129: FFmpeg through 9.0.2 contains an out-of-bounds write vulnerability in v4l2_buffer_swframe_to_buf(...
FFmpeg through 9.0.2 contains an out-of-bounds write vulnerability in v4l2bufferswframetobuf() in libavcodec/v4l2buffers.c because cumulative plane offsets are not checked against the V4L2 buffer length. Attackers can supply crafted video whose dimensions or padding cause unsigned wraparound in v4l2bufreftobuf(), making memcpy() write past the mmaped driver buffer during V4L2 M2M encoding.
Affected Software
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which deployments are exposed to this issue?
The issue affects the julia/ffmpeg_jll and julia/ffmpeg_nogpl_jll packages when FFmpeg is used for V4L2 memory-to-memory encoding. The affected FFmpeg versions are through 9.0.2.
What is required to trigger the vulnerability?
An attacker must be able to supply crafted video input with dimensions or padding that causes unsigned wraparound while FFmpeg prepares a V4L2 buffer. Exploitation occurs during V4L2 M2M encoding and requires user interaction according to the provided vector.
What is the potential impact if exploitation succeeds?
The crafted input can cause memcpy() to write beyond the mapped V4L2 driver buffer. The provided severity vector indicates potential impact to confidentiality, integrity, and availability.