CVE-2026-125198
Received Received - Intake

Memory Leak in FFmpeg MediaCodec Wrapper

Vulnerability report for CVE-2026-125198, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-09

Last updated on: 2026-11-09

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-09
Last Modified
2026-11-09
Generated
2026-11-09
AI Q&A
2026-11-09
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
FFmpeg FFmpeg From 0 (inc) to 9.0.2 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-401 The product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

FFmpeg version 9.0.2 has a memory leak in mediaformat_jni_setBuffer() where buffers created with NewDirectByteBuffer() are not freed. Attackers can exploit this by providing media files with large extradata, causing native memory leaks during MediaCodec decoder setup in Android apps, leading to resource exhaustion.

Impact Analysis

This vulnerability can cause native memory exhaustion in Android applications using FFmpeg, potentially leading to crashes, slowdowns, or denial of service. Users may experience app instability or forced closures when processing malicious media files.

Mitigation Strategies

Update FFmpeg to version 9.0.3 or later to address the memory leak in mediaformat_jni_setBuffer(). Avoid using NewDirectByteBuffer() for large extradata in MediaCodec configurations.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-125198. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...