FFmpeg through 9.0.2 Heap Buffer Overflow via RISC-V Vector diff_bytes Routine
- State
- Published
- Severity
- 7.3 High
- Published
- Nov 9, 2026
- Updated
- Nov 10, 2026
- Reserved
- Nov 9, 2026
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.
| Product | Versions |
|---|---|
| FFmpeg FFmpeg | 7.0 through 9.0.2 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 7.3 High | VulnCheck | |
| 3.1 | 7.0 High | VulnCheck |
Weaknesses
- CWE-787 Out-of-bounds Write
References
- https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25573Issue Tracker
- Patch CommitPatch
- https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/riscv/llvidencdsp_rvv.S#L26Technical Details
- https://github.com/FFmpeg/FFmpegProduct Page
- VulnCheck Advisory: FFmpeg through 9.0.2 Heap Buffer Overflow via RISC-V Vector diff_bytes RoutineThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.