Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply crafted video to V4L2 encoder
-
ExploitTrigger unsigned wraparound in v4l2_bufref_to_buf
-
Executionmemcpy writes past mmaped driver buffer
-
ImpactMemory 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
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.
Articles & Coverage 1
Executive ViewAI
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the concat protocol
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
FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the subfile protoco
The av_reallocp_array function in libavutil/mem.c in FFmpeg before 2.0.1 has an unspecified impact and remote vectors re
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
Out-of-bounds heap write in FFmpeg's RASC video decoder (decode_dlta in libavcodec/rasc.c) allows attackers to corrupt m
Memory corruption in FFmpeg before 8.1 allows an attacker who can supply a crafted H.264/HEVC media file to corrupt heap
Memory exhaustion in FFmpeg git-master builds before commit d5873b can occur when a victim processes attacker-controlled
Integer Overflow vulnerability in function filter_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacker
Integer Overflow vulnerability in function filter_robert in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacke
Integer Overflow vulnerability in function filter_prewitt in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
Integer Overflow vulnerability in function filter16_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
EUVD-2026-120297
GHSA-4rxc-7q96-c86h
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB