CVE-2026-125256
Received Received - Intake

Heap Buffer Overflow in FFmpeg Huffyuv Encoder

Vulnerability report for CVE-2026-125256, 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 buffer overflow vulnerability in ff_llvidenc_diff_bytes_rvv() that allows attackers to corrupt heap memory by triggering negative length values in the Huffyuv encoder. Attackers can supply RGB video narrower than 8 or 16 pixels for huffyuv transcoding on RVV-enabled RISC-V builds, causing writes past the encoder's temp buffer.

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-09
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

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

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-787 The product writes 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

This vulnerability is a heap buffer overflow in FFmpeg through version 9.0.2. It occurs in the function ff_llvidenc_diff_bytes_rvv() when attackers provide RGB video input narrower than 8 or 16 pixels for Huffyuv transcoding on RISC-V builds with RVV support. This causes negative length values, leading to writes beyond the encoder's temporary buffer and corrupting heap memory.

Detection Guidance

To detect this vulnerability, check if your FFmpeg version is between 7.0 and 9.0.2 and if it was compiled with RISC-V Vector (RVV) support. Use commands like 'ffmpeg -version' to check the version and 'ffmpeg -buildconf' to verify RVV support. If vulnerable, update FFmpeg to a patched version.

Impact Analysis

An attacker could exploit this to execute arbitrary code, crash applications, or gain unauthorized access to sensitive data. Systems processing video files with FFmpeg, especially on RISC-V hardware, are at risk if they handle maliciously crafted narrow RGB video inputs.

Compliance Impact

This vulnerability could potentially impact compliance with GDPR and HIPAA by enabling memory corruption attacks that may lead to unauthorized data access or processing. Exploitation could result in data breaches, unauthorized modifications, or denial of service, which are critical concerns under these regulations.

Mitigation Strategies

Update FFmpeg to a version later than 9.0.2 to address the heap buffer overflow in the Huffyuv encoder. Avoid using RVV-enabled RISC-V builds for huffyuv transcoding with RGB video narrower than 8 or 16 pixels.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-125256. 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...