CVE-2026-125256: FFmpeg through 9.0.2 Heap Buffer Overflow via RISC-V Vector diff_bytes Routine

Published Nov 9, 2026
·
Updated

FFmpeg through 9.0.2 contains a heap buffer overflow vulnerability in ffllvidencdiffbytesrvv() 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.

Affected Software

13 affected componentsFixes available
FFmpeg FFmpeg<=9.0.2
ubuntu/ffmpeg*
ubuntu/ffmpeg*
ubuntu/ffmpeg*
ubuntu/ffmpeg*
ubuntu/ffmpeg*
ubuntu/ffmpeg*
ubuntu/ffmpeg*
FFmpeg FFmpeg<=9.0.2
debian/ffmpeg<=7:5.1.9-0+deb12u1, <=7:7.1.5-0+deb13u1, <=7:9.0.2-6, <=7:9.1-3
7:7.1.6-0+deb13u1
debian/ffmpeg*
debian/ffmpeg<7:7.1.6-0+deb13u1
7:7.1.6-0+deb13u1
debian/ffmpeg*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/ffmpeg to a version that resolves this vulnerability.

    Fixed in 7:7.1.6-0+deb13u1

Event History

Nov 9, 2026
CVE Published
via MITRE·07:12 PM
Data Sourced
via MITRE·07:12 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:18 PM
DescriptionSeverityWeakness
Event
via NVD·08:18 PM
Nov 12, 2026
Updated
via OSV·05:25 PM
Severity
Nov 16, 2026
Data Sourced
via OSV·12:00 AM
Affected Software
Nov 30, 2026
Data Sourced
via NVD·04:20 PM
RemedyAffected Software
Dec 5, 2026
Updated
via OSV·05:08 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

Which systems are exposed to this issue?

The vulnerable routine is specific to RVV-enabled RISC-V FFmpeg builds. The issue is triggered during Huffyuv transcoding of RGB video.

2

What input is required to trigger the overflow?

An attacker needs to cause FFmpeg to transcode RGB video whose width is narrower than 8 or 16 pixels using the Huffyuv encoder. Those widths can produce negative length values and writes beyond the encoder temporary buffer.

3

Does the provided information identify a workaround when patching is delayed?

Avoid Huffyuv transcoding of RGB inputs narrower than 8 or 16 pixels on RVV-enabled RISC-V builds. The provided data does not describe other mitigations.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203