CVE Catalog

CVE-2026-125198

LowCVSS 2.5
Published: Translated: NVD NIST

Summary

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.

Risk Assessment

Android applications using FFmpeg with MediaCodec may suffer memory exhaustion when processing malicious files, leading to crashes or denial of service. Risk mainly affects mobile apps processing untrusted media.

Recommendation

Update FFmpeg to a patched version in Android applications. Restrict processing of untrusted media files and monitor native memory usage.

Other vulnerabilities in FFmpeg

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS