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 4.0 score 2.0 out of 10.

Reported versions and fixes

  • Source-reported product — Reported version range cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*

Source evidence