Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-125198— FFmpeg through 9.0.2 Memory Leak via MediaCodec JNI setBuffer

Quick assessment

Affected
FFmpeg FFmpeg
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

FFmpeg 9.0.2 及更早版本在 文件的 函数中存在内存泄漏漏洞。该函数从未释放由 包装的缓冲区。攻击者可提供包含大型 extradata 的恶意媒体文件,导致 Android 应用中的每个 MediaCodec 解码器配置时泄露本地内存,最终引发资源耗尽。

CVSS 2.5 · Low EPSS 0.15% · P2

Possible ATT&CK Techniques 1 AI

T1499 · Endpoint Denial of Service

Affected Version Matrix 1

VendorProduct Version RangeStatus
FFmpeg FFmpeg ≤ 9.0.2 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-125198

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
FFmpeg through 9.0.2 Memory Leak via MediaCodec JNI setBuffer
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
在移除最后引用时对内存的释放不恰当(内存泄露)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
FFmpeg FFmpeg 0 ~ 9.0.2 -

II. Public POCs for CVE-2026-125198

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-125198

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-125198 (3)

Vendor Advisories for CVE-2026-125198 (1)

Same Patch Batch · FFmpeg · 2026-11-09 · 121 CVEs total

CVE-2026-125233 7.8 HIGH FFmpeg through 9.0.2 Heap Buffer Overflow via DVB Subtitle Encoder
CVE-2026-125209 7.8 HIGH FFmpeg before 8.1.3 and 9.x before 9.0.2 Heap Buffer Overflow via dvdsubenc.c
CVE-2026-125250 7.8 HIGH FFmpeg through 9.0.2 GIF Encoder Heap Buffer Overflow via shrunk_buf Remap
CVE-2026-125267 7.8 HIGH FFmpeg before 8.1.3 and 9.x before 9.0.2 Heap Out-of-Bounds Write via APAC Decoder
CVE-2026-125259 7.8 HIGH FFmpeg through 9.0.2 Heap Buffer Overflow via ProRes prores_ks Encoder
CVE-2026-125203 7.8 HIGH FFmpeg before 8.1.3 and 9.x before 9.0.2 Heap Buffer Overflow in Cook Multichannel Decoder
CVE-2026-125229 7.8 HIGH FFmpeg through 9.0.2 Out-of-Bounds Memory Access in Huffyuv/FFVHUFF Median Predictor
CVE-2026-125262 7.8 HIGH FFmpeg through 9.0.2 Heap Buffer Overflow via LCEVC Enhancement Decoding
CVE-2026-125244 7.8 HIGH FFmpeg before 8.1.3 and 9.x before 9.0.2 VVC Decoder Out-of-Bounds Write via sh_entry_poin
CVE-2026-125249 7.0 HIGH FFmpeg 7.1 through 9.0.2 Heap Out-of-Bounds Write via Vulkan Slice Buffer Sizing
CVE-2026-125196 7.0 HIGH FFmpeg through 9.0.2 Heap Buffer Overflow via liboapv APV Encoder Wrapper
CVE-2026-125211 7.0 HIGH FFmpeg through 9.0.2 Heap Corruption via libaribcaption ASS Error Cleanup
CVE-2026-125222 7.0 HIGH FFmpeg through 9.0.2 Heap Buffer Overflow via hap_parse_frame_header()
CVE-2026-125218 7.0 HIGH FFmpeg through 9.0.2 APNG Encoder Heap Buffer Overflow via encode_apng()
CVE-2026-125260 7.0 HIGH FFmpeg through 9.0.2 Heap Buffer Overflow in EXR Encoder RLE Path
CVE-2026-125241 7.0 HIGH FFmpeg through 9.0.2 Heap Buffer Overflow via FLIC Decoder check_pixel_ptr
CVE-2026-125239 7.0 HIGH FFmpeg through 9.0.2 Heap Buffer Overflow via HEVC DXVA Tile Parameters
CVE-2026-125181 7.0 HIGH FFmpeg through 9.0.2 FLIC Decoder Out-of-Bounds Write via FLI_BRUN Byte Swap
CVE-2026-125213 7.0 HIGH FFmpeg through 9.0.2 Heap Buffer Overflow via PSD Decoder RLE Path
CVE-2026-125248 7.0 HIGH FFmpeg 9.0 through 9.0.2 Integer Overflow via FFV1 Vulkan Encoder Remap Buffer

Showing top 20 of 121 CVEs. View all on vendor page → →

IV. Related Vulnerabilities