FFmpegのHuffyuv・FFVHUFFで範囲外メモリアクセスの脆弱性、細工した動画で異常終了のおそれ
Summary
FFmpeg 9.0.2以前のHuffyuv・FFVHUFFエンコーダーには、幅2ピクセルなど極端に小さい動画を変換すると範囲外のメモリにアクセスする脆弱性があります。細工された動画を変換させられると、エンコーダーが異常終了するおそれがあります。修正版の有無は事実に含まれていないため、最新の情報を確認してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
FFmpeg 9.0.2以前のHuffyuv・FFVHUFFエンコーダーには、幅2ピクセルなど極端に小さい動画を変換すると範囲外のメモリにアクセスする脆弱性があります。細工された動画を変換させられると、エンコーダーが異常終了するおそれがあります。修正版の有無は事実に含まれていないため、最新の情報を確認してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| FFmpegFFmpeg |
≤ 9.0.2→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Alpine Linux ALPINE-CVE-2026-125229 ffmpeg Fix available
- Debian DEBIAN-CVE-2026-125229 ffmpeg No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-125229 ffmpeg No fixed version in this record
Original description The description as published by the source.
FFmpeg through 9.0.2 contains an out-of-bounds memory access vulnerability in the encode_frame() function of libavcodec/huffyuvenc.c, because encode_init() never validates minimum frame dimensions for the median predictor. Attackers can supply a tiny video, such as a 2-pixel-wide or 1-2-pixel-tall frame, that causes negative sub_median_pred lengths and out-of-bounds reads and writes when transcoded to huffyuv or ffvhuff, crashing the encoder.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- report code.ffmpeg.org
- web github.com
- web github.com
- web code.ffmpeg.org