Skip to main content

FFmpeg EUVDEUVD-2026-120220

| CVE-2026-125270 MEDIUM
Out-of-bounds Read (CWE-125)
2026-11-09 VulnCheck GHSA-mjj3-3wfp-gvm7
5.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Craft bottom-up AVI/PNM with negative linesize
  2. Delivery
    Submit file to FFmpeg transcode job
  3. Exploit
    Target V4L2 M2M encoder output path
  4. Execution
    Trigger OOB read in v4l2_buffers.c
  5. Impact
    Crash 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).

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 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

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

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

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

Vendor (VulnCheck) PRIMARY 5.8 MEDIUM
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
vuln.today AI 5.3 MEDIUM

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.

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

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
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Ubiquitous
FFmpeg ubiquitous, but vulnerable V4L2 M2M encoder path rarely configured
Data Quality
5 sources
Confidence: Medium

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

29
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +29
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.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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

Vendor StatusVendor

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