CVE Catalog

CVE-2026-125208

HighCVSS 7.0
Published: Translated: NVD NIST

Summary

FFmpeg through 9.0.2 contains an out-of-bounds write vulnerability in v4l2_buffer_swframe_to_buf() in libavcodec/v4l2_buffers.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 v4l2_bufref_to_buf(), making memcpy() write past the mmaped driver buffer during V4L2 M2M encoding.

Risk Assessment

Writing past the driver buffer can corrupt memory and lead to crashes or potential code execution. Organizations using V4L2 M2M acceleration to encode untrusted video are exposed.

Recommendation

Update FFmpeg to a version containing the fix (later than 9.0.2) and avoid encoding untrusted video files via V4L2 M2M. Consider validating video dimensions before processing.

Other vulnerabilities in FFmpeg

See all
Original NVD description (English source)

FFmpeg through 9.0.2 contains an out-of-bounds write vulnerability in v4l2_buffer_swframe_to_buf() in libavcodec/v4l2_buffers.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 v4l2_bufref_to_buf(), making memcpy() write past the mmaped driver buffer during V4L2 M2M encoding.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS