FFmpeg through 9.0.2 Memory Leak via MediaCodec JNI setBuffer

State
Published
Severity
2.0 Low
Published
Nov 9, 2026
Updated
Nov 13, 2026
Reserved
Nov 9, 2026

Read the record on cve.org

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.

ProductVersions
FFmpeg FFmpeg9.0.2 and earlier Affected

Weaknesses

  • CWE-401 Missing Release of Memory after Effective Lifetime

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.