FFMPEG · CVE-2026-125256 · Package
NO FIX YET · SEE WHAT TO DO
FFmpeg through 9.0.2 has a heap buffer overflow in the RISC-V vector (RVV) Huffyuv encoder routine ff_llvidenc_diff_bytes_rvv(). Supplying RGB video narrower than 8 or 16 pixels makes a negative length write past the encoder's temporary buffer, corrupting heap memory.
first public Nov 9, 2026 · 2 sources
Could this affect your app?
Free first check from your website. Connect your repo for the full answer.
FFmpeg 7.0 through 9.0.2 built for RISC-V with the vector extension (RVV) enabled, when it encodes RGB video to Huffyuv. A user-supplied very narrow video (under 8 or 16 pixels wide) causes a heap write past the temporary buffer. Everyone on x86, ARM or non-RVV builds, and anyone who never encodes to Huffyuv, can skip it.
Not affected if no-huffyuv-encoding, no-untrusted-media, non-risc-v-hosts, non-riscv, rvv-disabled
Who cares ffmpeg, huffyuv, media-transcoding, risc-v, rvv
ffmpeg -version and check the configuration for a riscv target, and whether libavcodec/riscv/llvidencdsp_rvv.S is built in9.0.2 that includes itFFmpeg 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.
This page as .md · .json · CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.
Check it with your coding agent
It reads this page and tells you if your code is affected.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.