CVE-2026-125270
Received Received - Intake

Heap Out-of-Bounds Read in FFmpeg via V4L2 Buffer Handling

Vulnerability report for CVE-2026-125270, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-09

Last updated on: 2026-11-09

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-09
Last Modified
2026-11-09
Generated
2026-11-10
AI Q&A
2026-11-10
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
FFmpeg FFmpeg From 0 (inc) to 9.0.2 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-125 The product reads data past the end, or before the beginning, of the intended buffer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

FFmpeg through version 9.0.2 has a heap out-of-bounds read vulnerability in the v4l2_buffer_swframe_to_buf() function. This flaw occurs when frames with negative linesize values are processed, particularly in V4L2 M2M encoders. Attackers can exploit this by providing specially crafted bottom-up AVI or PNM/PFM files, causing crashes or leaking heap memory into encoded output.

Detection Guidance

To detect this vulnerability, monitor FFmpeg processes for crashes when handling AVI or PNM/PFM files with negative linesize. Check logs for heap memory leaks in encoded output. Use static analysis tools to scan for vulnerable FFmpeg versions (9.0.2 or earlier).

  • Check FFmpeg version: ffmpeg -version | grep n9.0.2
  • Test with suspicious files: ffmpeg -i malicious.avi -vcodec libv4l2 output.mp4
  • Monitor system logs for segmentation faults or memory errors during transcoding
Impact Analysis

This vulnerability may allow attackers to crash applications using FFmpeg or leak sensitive memory contents. If exploited, it could lead to denial-of-service conditions or unauthorized data exposure in systems processing malicious media files.

Compliance Impact

This vulnerability may lead to heap memory leaks during video encoding, which could expose sensitive data in encoded output. For GDPR, this could violate data protection principles if personal data is leaked. For HIPAA, it might compromise protected health information if medical video data is involved.

Mitigation Strategies

Upgrade FFmpeg to a patched version (commit b8f159858e2fd29dae4fa34d9e713bbf9bbf190e or later). Avoid transcoding untrusted AVI or PNM/PFM files with V4L2 M2M encoders. Implement input validation for media files.

  • Apply the patch from commit b8f159858e2fd29dae4fa34d9e713bbf9bbf190e
  • Disable V4L2 M2M encoding for untrusted files until patched
  • Monitor for crashes or memory leaks in FFmpeg processes

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-125270. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...