CVE-2026-125198 FFmpeg through 9.0.2 Memory Leak via MediaCodec JNI setBuffer
- Exploited in the wild
- Not known
- Fix
- None listed
What is CVE-2026-125198?
CVE-2026-125198 is a low-severity vulnerability in FFmpeg, published on 9 Nov 2026.
Official description
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.
Weakness: CWE-401
Which versions are affected by CVE-2026-125198?
How do I fix CVE-2026-125198?
No fix has been published for CVE-2026-125198 yet. Limit exposure of the affected software until one is available.
Is CVE-2026-125198 being exploited?
There is no known exploitation of CVE-2026-125198 in the wild and no public exploit code.
Sources
Also known as GHSA-4q2x-vx5w-h3m6, UBUNTU-CVE-2026-125198.