CVE-2026-125270

FFmpeg through 9.0.2 Heap Out-of-Bounds Read in V4L2 M2M Encoder

Published Nov 9, 2026 CVSS 4.0 · 5.8 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The flaw exists in libavcodec/v4l2_buffers.c of FFmpeg versions up to 9.0.2. A heap out‑of‑bounds read occurs when frames with a negative linesize are processed by v4l2_buffer_swframe_to_buf(). Attackers can supply specially crafted bottom‑up AVI or PNM/PFM files that are transcoded to a V4L2 M2M encoder, causing the application to crash or causing heap content to be incorporated into the encoded output, potentially leaking sensitive data.

Affected Systems

FFmpeg, versions through 9.0.2. Any system running these releases and using the V4L2 M2M encoder for media processing is impacted. The vendor is FFmpeg.

Risk and Exploitability

The CVSS score is 5.8, indicating moderate severity. EPSS score is not available, so the likelihood of exploitation in the wild is unclear. The vulnerability is not listed in the CISA KEV catalogue. The likely attack vector is the ingestion of a crafted media file by an application that invokes the V4L2 M2M encoder, which is often a privileged process. Exploitation could lead to denial of service and information disclosure from heap memory. With no known public exploits, the risk remains moderate but should be mitigated promptly.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update FFmpeg to the latest stable release (9.1 or newer), which contains the fix for this issue.
  • If an upgrade is not immediately possible, disable or restrict use of the V4L2 M2M encoder for untrusted media input.
  • Sanitize and validate media files before feeding them to the encoder, ensuring that frames do not have negative linesize values.
  • Monitor application logs and system stability for indications of crashes or segmentation faults triggered by media processing.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

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

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

cvssV4_0

{'score': 5.8, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 13, 2026, 1:06 PM
Reserved
Nov 9, 2026, 6:15 PM
Status
Analyzed
Published
Nov 9, 2026, 8:18 PM
Modified
Nov 25, 2026, 3:06 PM