Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft bottom-up AVI/PNM with negative linesize
-
DeliverySubmit file to FFmpeg transcode job
-
ExploitTarget V4L2 M2M encoder output path
-
ExecutionTrigger OOB read in v4l2_buffers.c
-
ImpactCrash process or leak heap into output
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a Linux-specific, non-default output configuration: FFmpeg must be transcoding to a V4L2 M2M hardware encoder (typically embedded/ARM media devices), which is not exercised in ordinary software-only transcoding. An operator must then process an attacker-supplied bottom-up AVI or PNM/PFM file whose negative linesize reaches v4l2_buffer_swframe_to_buf(). Limiting factors: the vector is local (AV:L), not remote-network; it requires operator-initiated transcoding (UI:P) and the AT:P attack requirement; and it is unreachable without the specific V4L2 M2M encoder device/pipeline, so despite PR:N the practical reach is narrow. Impact is bounded to a heap-memory leak into encoded output plus a crash. |
| Impact | Signals point to a moderate, not urgent, priority. The supplied CVSS 4.0 vector (5.8) is Local (AV:L), high complexity (AC:H) with a present attack requirement (AT:P) and required user interaction (UI:P), and impact is limited to a minor heap leak into output (VC:L) plus a crash (VA:H); no integrity impact. PR:N means the attacker needs no privileges, but the vector still depends on an operator locally transcoding an attacker-supplied file through a V4L2 M2M encoder - a narrow, Linux-specific path. Decision signals align with this: the vuln.today priority is 'this_month' (not act_now/emergency), there is NO CISA KEV listing and NO active-exploitation claim, and no EPSS score was provided in the input, so exploitation probability cannot be quantified here. No public exploit code is identified. This is therefore a legitimate but lower-tier issue: a real CWE-125 bug confirmed in source and patched by the vendor, yet gated behind local access, operator action, and a rarely-used hardware-encoder configuration, which keeps real-world risk well below what a raw 'critical FFmpeg bug' framing might suggest. Note the gap between FFmpeg's ubiquity and the niche reachability of this specific code path when judging urgency. |
| Exploit ScenarioDerived | An attacker crafts a bottom-up AVI or PNM/PFM file with a negative linesize and gets it ingested by a victim running an FFmpeg pipeline that transcodes to a V4L2 M2M hardware encoder (for example an automated media-processing service on a Linux or embedded host). When the frame is copied in v4l2_buffer_swframe_to_buf(), the negative linesize drives a heap out-of-bounds read that either crashes the process or leaks adjacent heap bytes into the encoded output. No public exploit code is identified at time of analysis, and exploitation requires local processing plus operator action (AV:L/UI:P). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 09, 2026
Heap out-of-bounds read in FFmpeg's V4L2 M2M encoder path (v4l2_buffer_swframe_to_buf() in libavcodec/v4l2_buffers.c) lets a crafted bottom-up AVI or PNM/PFM file leak heap memory into encoded output or crash the transcoding process. Exploitation is confined to Linux deployments that transcode attacker-supplied media to a V4L2 memory-to-memory hardware encoder, an output configuration FFmpeg does not use for ordinary software-only transcoding; the CVSS v4.0 vector scores 5.8 (AV:L/AC:H/AT:P/PR:N/UI:P, high availability impact, low confidentiality impact) and our assessment rates the practical reach as narrow. No public exploit code has been identified at time of analysis, there is no CISA KEV listing, and the vendor fix is already upstream in commit b8f1598 (PR 24328).
RemediationAI
Apply the upstream fix - commit b8f159858e2fd29dae4fa34d9e713bbf9bbf190e, merged via https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24328 - or take the FFmpeg release or distribution package that carries it; no specific tagged fixed version is listed in the available data, so confirm the commit is present in the build you deploy (patch is available from the vendor). Until then, the exposure is entirely tied to the V4L2 M2M output path: on hosts that do not need hardware encoding, ensure FFmpeg is not configured to output through a V4L2 M2M device, which removes the vulnerable code path at the cost of software-encoder CPU overhead; where hardware encoding is required, do not transcode untrusted bottom-up AVI or PNM/PFM files through the M2M encoder, pre-converting such inputs to top-down formats before submission, accepting that this relies on input handling discipline rather than an in-code enforcement.
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
The flaw is a CWE-125 out-of-bounds read in FFmpeg's V4L2 memory-to-memory (M2M) hardware-encoder glue. When a decoded software AVFrame is handed to a V4L2 output buffer, the frame's negative linesize - characteristic of bottom-up storage such as certain AVI and PNM/PFM inputs - was previously used directly to compute per-plane sizes and offsets (size = frame->linesize[i] * h), so a negative stride propagated into buffer geometry instead of being rejected, allowing reads past the allocated heap plane and, in turn, copying heap content into the encoded bitstream or crashing. The upstream fix replaces that arithmetic with v4l2_buffer_swframe_to_single_buffer(), which derives active versus driver-aligned storage linesizes via av_image_fill_linesizes(), validates the full av_image_fill_pointers() layout against the driver-reported length and sizeimage before any copy, rejects frames whose visible geometry exceeds the negotiated buffer, and normalizes negative source strides by magnitude before calling av_image_copy2(). The vulnerability is reachable only through the V4L2 M2M encoder device path on Linux (typically embedded/ARM media hardware); software encoders never enter v4l2_buffers.c, so the trigger is not described as affecting ordinary libavcodec encoding.
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:L/VI:N/VA:H/SC:N/SI:N/SA:N
Local V4L2 encoder path needs operator-initiated transcode and non-default config (AV:L/AC:H/UI:R); crash gives A:H, heap leak only C:L, no integrity impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
FFmpeg through 9.0.2 contains a heap out-of-bounds read vulnerability in v4l2_buffer_swframe_to_buf() in libavcodec/v4l2_buffers.c that mishandles frames with negative linesize. Attackers can supply bottom-up AVI or PNM/PFM files that are transcoded to a V4L2 M2M encoder, crashing the application or leaking heap memory into encoded output.
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.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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-120220
GHSA-mjj3-3wfp-gvm7
NVD
CVE.org
EPSS
Exploit-DB