Skip to main content

FFmpeg EUVDEUVD-2026-120297

| CVE-2026-125208 HIGH
Out-of-bounds Write (CWE-787)
2026-11-09 disclosure@vulncheck.com GHSA-4rxc-7q96-c86h
7.3
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply crafted video to V4L2 encoder
  2. Exploit
    Trigger unsigned wraparound in v4l2_bufref_to_buf
  3. Execution
    memcpy writes past mmaped driver buffer
  4. Impact
    Memory corruption, potential code execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires FFmpeg (through 9.0.2) built with V4L2 M2M encoding support and running on Linux with an actual V4L2 memory-to-memory hardware encoder device, and the application must drive video through that V4L2 M2M encode path. The attacker must supply a video whose dimensions or padding cause unsigned integer wraparound when cumulative plane offsets are computed, so that memcpy() overruns the mmaped driver buffer. Limiting factors that reduce realistic risk below the raw score: the vector is local (AV:L), exploitation is high-complexity with a required attack precondition (AC:H/AT:P), it depends on passive user interaction to process the malicious input (UI:P), and it only applies to the non-default, Linux-specific V4L2 M2M encoding configuration rather than ordinary file decoding.

Impact

This is a genuine memory-corruption flaw (CWE-787 out-of-bounds write) but a conditional, lower-urgency one rather than a drop-everything emergency. The only scoring signal supplied is a CVSS 4.0 vector of 7.3 (High): AV:L (local), AC:H (high complexity), AT:P (a specific attack requirement must hold), PR:N (no privileges), UI:P (passive user interaction), with high vulnerable-system confidentiality/integrity/availability impact and no scope change (SC:N/SI:N/SA:N). The combination of local vector, high complexity, and required attack precondition signals that reliable exploitation is non-trivial, not a mass-exploitable remote bug. There is NO CISA KEV listing and NO EPSS score in the provided data, so exploitation probability cannot be quantified; the only vuln.today decision signal is 'this_week', consistent with a serious-but-not-emergency triage. No public exploit code is referenced - the references are the fix commit, pull request #24328, the FFmpeg repository, and a VulnCheck advisory, not a working PoC. The key tension is reach versus severity: FFmpeg is ubiquitous, but the vulnerable v4l2_buffer_swframe_to_buf() path only executes during V4L2 M2M (Linux hardware) encoding, a narrow deployment mode, which materially lowers real-world exposure below what the 7.3 score alone implies. Missing data to note explicitly: no CVSS 3.1 vector, no EPSS, no KEV, and no fixed release tag (only a commit) are provided.

Exploit ScenarioDerived

An attacker crafts a video whose dimensions or padding force unsigned wraparound in v4l2_bufref_to_buf(), then induces a victim who runs FFmpeg with V4L2 M2M hardware encoding on Linux to encode it. During encoding, cumulative plane offsets are not validated against the V4L2 buffer length, so memcpy() writes past the mmaped driver buffer, corrupting memory and potentially leading to code execution. The CVSS local vector (AV:L), high complexity (AC:H), and passive user interaction (UI:P) mean the target must actually process the malicious input through the V4L2 encode pipeline; no public exploit was identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 09, 2026

Out-of-bounds write in FFmpeg's V4L2 memory-to-memory encoder path (all versions through 9.0.2) allows a local, unauthenticated attacker who can supply crafted video to overflow an mmaped driver buffer during hardware-accelerated encoding. The flaw lives in v4l2_buffer_swframe_to_buf() in libavcodec/v4l2_buffers.c, where cumulative plane offsets are computed without being checked against the V4L2 buffer length, so frame dimensions or padding that cause unsigned wraparound make memcpy() write past the mapped buffer. Exposure is narrow: it requires a build with V4L2 M2M encoding enabled, a Linux host with a real V4L2 memory-to-memory hardware encoder, and an application that routes video through that encode path; the CVSS 4.0 vector is local (AV:L), high complexity with an attack precondition (AC:H/AT:P) and passive user interaction (UI:P). No public exploit code has been identified at time of analysis and exploitation has not been confirmed in the wild; an upstream fix commit and PR exist but no tagged patched release has been independently confirmed.

RemediationAI

Vendor-released patch: no tagged patched release has been independently confirmed; the fix is available upstream as commit b8f159858e2fd29dae4fa34d9e713bbf9bbf190e (https://github.com/FFmpeg/FFmpeg/commit/b8f159858e2fd29dae4fa34d9e713bbf9bbf190e), tracked by FFmpeg pull request https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24328, so the practical action is to build or consume a revision that contains that commit once a release carrying it is available, checking the VulnCheck advisory at https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-v4l2-m2m-encoder-out-of-bounds-write-in-v4l2-buffers-c for updated version guidance. Because the defect only manifests in the non-default V4L2 M2M encoding configuration on Linux with real hardware encoders, environments that do not need hardware-accelerated V4L2 M2M encoding can avoid the vulnerable path by not enabling that encoder support at build time or by not routing untrusted video through it; the trade-off is loss of hardware-offloaded encoding and higher CPU cost. Do not rely on input validation of dimensions alone as a compensating control, since the flaw is in FFmpeg's own plane-offset computation.

Affected VersionsENISA

FFmpeg 0 ≤9.0.2

Affected Packages

euvd ffmpeg no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

FFmpeg's V4L2 layer (libavcodec/v4l2_buffers.c) bridges AVFrame data and buffers exported by Linux V4L2 memory-to-memory hardware encoders. In the affected code, a non-planar software frame is pushed into a single contiguous V4L2 plane by iterating over the pixel format's components, computing a per-plane size as linesize * height (with chroma planes shifted by log2_chroma_h), and accumulating a running offset that is passed to v4l2_bufref_to_buf(); that helper memcpy()s into out->plane_info[0].mm_addr, the driver's mmaped buffer. Because the accumulated plane offset is never validated against the mapped plane length, attacker-influenced frame dimensions or driver-supplied padding can cause the unsigned offset/size arithmetic to wrap, and the copy lands beyond the end of the mmaped region. This is a classic CWE-787 out-of-bounds write whose root cause is missing bounds validation of a computed layout before a memory copy. The upstream fix commit b8f159858e2fd29dae4fa34d9e713bbf9bbf190e refactors the path into v4l2_buffer_swframe_to_single_buffer(), which derives the storage layout with av_image_fill_pointers(), rejects the whole layout via a size_t comparison against the plane length and sizeimage before any write occurs, validates that source and destination linesizes accommodate the active row widths, and then copies only visible pixels with av_image_copy2(). Note that CVSS metrics such as AC:H and AT:P describe exploitation preconditions and not the internal trigger, and the trigger mechanism beyond the wraparound in cumulative plane offset computation is not further described in the available sources.

Know when Ffmpeg gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vulncheck) PRIMARY 7.3 HIGH
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
vuln.today AI 7.0 HIGH

AV:L and UI:R because a user must encode attacker-supplied video via the local V4L2 M2M path; AC:H as triggering unsigned wraparound needs specific crafted dimensions/padding; PR:N; heap OOB write yields high C/I/A.

3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

A high-severity vulnerability in FFmpeg's V4L2 hardware encoding path (CVE-2026-125208) could allow a local attacker to cause memory corruption, potentially leading to crashes or arbitrary code execution on affected systems. However, exploitation requires a specific hardware configuration and user interaction, and no public exploit code has been identified, so the immediate risk to the organization is limited to targeted scenarios involving hardware-accelerated video encoding on Linux.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Ubiquitous
ubiquitous media framework; vulnerable V4L2 M2M encoder path is Linux-only, rarely enabled
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
Medium
Technical Impact
Total

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

More in Ffmpeg

View all
CVE-2016-1897 MEDIUM POC
5.5 Jan 15

FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the concat protocol

CVE-2017-9993 HIGH
7.5 Jun 28

FFmpeg before 2.8.12, 3.0.x and 3.1.x before 3.1.9, 3.2.x before 3.2.6, and 3.3.x before 3.3.2 does not properly restric

CVE-2016-1898 MEDIUM POC
5.5 Jan 15

FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the subfile protoco

CVE-2013-4265 CRITICAL POC
10.0 Nov 23

The av_reallocp_array function in libavutil/mem.c in FFmpeg before 2.0.1 has an unspecified impact and remote vectors re

CVE-2020-12284 CRITICAL POC
9.8 Apr 28

cbs_jpeg_split_fragment in libavcodec/cbs_jpeg.c in FFmpeg 4.1 and 4.2.2 has a heap-based buffer overflow during JPEG_MA

CVE-2026-58049 HIGH POC
8.8 Jun 28

Out-of-bounds heap write in FFmpeg's RASC video decoder (decode_dlta in libavcodec/rasc.c) allows attackers to corrupt m

CVE-2026-30754 HIGH POC
8.8 Sep 08

Memory corruption in FFmpeg before 8.1 allows an attacker who can supply a crafted H.264/HEVC media file to corrupt heap

CVE-2025-25469 HIGH POC
8.8 Feb 18

Memory exhaustion in FFmpeg git-master builds before commit d5873b can occur when a victim processes attacker-controlled

CVE-2021-38094 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacker

CVE-2021-38093 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_robert in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacke

CVE-2021-38092 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_prewitt in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack

CVE-2021-38091 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter16_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy