Vulnerability in Ffmpeg
CVE-2026-125198
FFmpeg through 9.0.2 contains a memory leak vulnerability in mediaformat_jni_setBuffer() in libavcodec/mediacodec_wrapper.c that never frees buffers wrapped with NewDirectByteBuffer(). Attackers can supply crafted media files with large extradata, leaking native memory on each MediaCodec decoder configuration in Android applications and causing resource exhaustion.
Published .
CVSS v3 metric
CVSS v3 base score 2.5 (Low). Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L.
EPSS exploit prediction
No EPSS score from FIRST.org yet. New CVEs usually get one within a few days; no score means no signal yet, not low risk. How EPSS works.
Affected products
Weakness classification (CWE)
References
- code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22550 (issue-tracking)
- github.com/FFmpeg/FFmpeg (product)
- github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/mediacodec_wrapper.c (technical-description)
- github.com/FFmpeg/FFmpeg/commit/e5d295b3cd467fc713300e208ba2dacc7ff603a0 (patch)
- www.vulncheck.com/advisories/ffmpeg-through-9.0.2-memory-leak-via-mediacodec-jn… (third-party-advisory)
Frequently asked questions
- What is CVE-2026-125198?
- CVE-2026-125198 is a low-severity vulnerability in Ffmpeg, classified under Missing Release of Memory after Effective Lifetime. CVSS score: 2.5/10. Published 2026-11-09.
- How severe is CVE-2026-125198?
- Low severity. CVSS v3 base score is 2.5 out of 10.