Description
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.
Published: 2026-11-09
Score: 7.3 High
EPSS: n/a
KEV: No
Impact: Out-of-Bounds Write enabling memory corruption
Action: Apply Patch
AI Analysis

Impact

FFmpeg versions through 9.0.2 suffer from an out-of-bounds write in the V4L2 M2M encoder path. The flaw occurs when cumulative plane offsets are not validated against the buffer length, allowing crafted video input to cause an unsigned wraparound that makes a memcpy write past the mmaped driver buffer. This flaw is classified as CWE‑787 and can lead to arbitrary code execution, privilege escalation, or denial of service by corrupting memory while encoding video streams.

Affected Systems

The vulnerability affects the FFmpeg multimedia framework, including all builds using the default libavcodec v4l2_buffers implementation up to and including release 9.0.2. Users must verify that they are running a version earlier than 9.0.3 or later, which incorporates the patch.

Risk and Exploitability

The CVSS score is 7.3, indicating a high severity. No EPSS score was reported, and the vulnerability is not listed in the CISA KEV catalog. The attack vector is likely local or remote via delivery of malicious video data to a process running FFmpeg with V4L2 M2M encoding enabled. An attacker capable of controlling the input can trigger the out-of-bounds write, potentially compromising the process or host. The mitigation requires applying a patched FFmpeg build or otherwise preventing the vulnerable code path from executing with untrusted input.

Generated by OpenCVE AI on November 9, 2026 at 22:03 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest FFmpeg release that contains the fixed V4L2 M2M encoder code (for example 9.0.3 or newer).
  • If an upgrade is not immediately possible, configure FFmpeg to reject or sanitize all untrusted video streams, or disable the V4L2 M2M encoder feature entirely.
  • Continuously monitor system logs and memory protection exceptions for signs of buffer overrun attempts, and apply additional exposure controls such as sandboxing the FFmpeg process.

Generated by OpenCVE AI on November 9, 2026 at 22:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 09 Nov 2026 19:15:00 +0000

Type Values Removed Values Added
Description 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.
Title FFmpeg through 9.0.2 V4L2 M2M Encoder Out-of-Bounds Write in v4l2_buffers.c
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Weaknesses CWE-787
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*
Vendors & Products Ffmpeg
Ffmpeg ffmpeg
References
Metrics cvssV3_1

{'score': 7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 7.3, 'vector': 'CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-09T19:11:25.840Z

Reserved: 2026-11-09T18:15:14.816Z

Link: CVE-2026-125208

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-09T19:16:57.493

Modified: 2026-11-09T19:16:57.493

Link: CVE-2026-125208

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-09T22:30:17Z

Weaknesses