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
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.
| Product | Versions |
|---|---|
| FFmpeg FFmpeg | 9.0.2 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 2.0 Low | VulnCheck | |
| 3.1 | 2.5 Low | VulnCheck |
Weaknesses
- CWE-401 Missing Release of Memory after Effective Lifetime
References
- https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22550Issue Tracker
- Patch CommitPatch
- https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/mediacodec_wrapper.c#L1134Technical Details
- https://github.com/FFmpeg/FFmpegProduct Page
- VulnCheck Advisory: FFmpeg through 9.0.2 Memory Leak via MediaCodec JNI setBufferThird-Party Advisory
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.