FFmpegに整数オーバーフローの脆弱性、細工した映像で改ざんやクラッシュのおそれ
Summary
FFmpegの9.0.2までの版には、cbs_jpeg_write_scan()の整数オーバーフローにより、32ビット版のビルドでヒープバッファオーバーフローが起きる脆弱性があります。細工したMJPEG/JPEGのストリームを処理させると、ヒープの破損やアプリケーションのクラッシュを招くおそれがあります。修正版の有無については、最新の情報を確認してください。
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までの版には、cbs_jpeg_write_scan()の整数オーバーフローにより、32ビット版のビルドでヒープバッファオーバーフローが起きる脆弱性があります。細工したMJPEG/JPEGのストリームを処理させると、ヒープの破損やアプリケーションのクラッシュを招くおそれがあります。修正版の有無については、最新の情報を確認してください。
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-125227 ffmpeg Fix available
- Debian DEBIAN-CVE-2026-125227 ffmpeg No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-125227 ffmpeg No fixed version in this record
Original description The description as published by the source.
FFmpeg through 9.0.2 contains an integer overflow in cbs_jpeg_write_scan() in libavcodec/cbs_jpeg.c that causes a heap buffer overflow on 32-bit builds. Attackers can supply a crafted MJPEG/JPEG stream with a scan of 512 MiB or more, processed by CBS bitstream filters like filter_units, to corrupt the heap or crash the application.
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