Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft media file with oversized extradata
-
ExploitVictim opens file in Android app using FFmpeg MediaCodec decoder
-
ExecutionEach decoder configuration leaks native buffer
-
ImpactRepeated configuration exhausts memory, app/resource failure
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource cleanup, leak prevention
|
| Exploitation Conditions | Exploitation requires an FFmpeg build that uses the Android MediaCodec JNI decoder path (libavcodec/mediacodec_wrapper.c, the mediaformat_jni_setBuffer() routine), i.e. hardware-accelerated decoding on Android - it does not affect software-only FFmpeg builds or non-Android platforms. The attacker must deliver a crafted media file whose codec extradata is large, and a victim must open or play it (UI:P/UI:R), triggering MediaCodec decoder configuration. Because the leak is per-configuration, meaningful resource exhaustion requires repeated or looped decoder setup rather than a single decode. Limiting factors: local vector (file must reach the device/app), user interaction to process the file, dependence on the non-default MediaCodec code path, and impact confined to availability (no code execution or data exposure). |
| Impact | This is a genuinely low-priority issue, and the signals agree rather than conflict. The input CVSS 4.0 vector scores 2.0 (LOW) with AV:L (local), AC:H, AT:P (a specific attack requirement must hold), PR:N, UI:P (passive user interaction), and impact limited to VA:L - availability only, no confidentiality or integrity effect (VC:N/VI:N). This matches CWE-401 (memory leak) and the described outcome: native memory is leaked on each MediaCodec decoder configuration, degrading resource availability rather than enabling code execution or data disclosure. The vuln.today decision label is 'monitor', the lowest urgency tier, consistent with the low score. No CISA KEV entry is present, so this is not confirmed actively exploited; no EPSS probability was supplied; and no public exploit code or PoC reference is provided - the references are the upstream fix PR/commit and a VulnCheck advisory, not weaponized code. Net: a real but minor availability/resource-exhaustion bug limited to the Android MediaCodec JNI code path, not a priority for emergency patching. The only mild caveat is scope: FFmpeg is extremely widely deployed, but this specific defect only manifests in builds that use the Android MediaCodec JNI wrapper, which narrows real-world exposure well below FFmpeg's overall footprint. |
| Exploit ScenarioDerived | An attacker crafts a media file containing abnormally large codec extradata and gets a victim to open or play it in an Android application that uses FFmpeg's MediaCodec (JNI) hardware decoder. Each time the app configures the MediaCodec decoder, the buffer wrapped via NewDirectByteBuffer() is never freed, leaking native memory; repeated or looped decoder configuration drives resource exhaustion and can crash the app or degrade the device. No public exploit identified at time of analysis - only the upstream fix is published. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 09, 2026
Memory exhaustion in FFmpeg's Android MediaCodec JNI decoder path (libavcodec/mediacodec_wrapper.c) allows a crafted media file with oversized codec extradata to leak native memory each time a MediaCodec decoder is configured, degrading availability of affected Android applications over repeated decoder setup. Only builds that use the MediaCodec JNI hardware-decoding wrapper are in scope; software-only and non-Android FFmpeg builds are not affected. Impact is confined to availability, with no code execution or data exposure, no public exploit identified at time of analysis, and no confirmed active exploitation (not in CISA KEV); an upstream fix commit exists but a released patched version is not independently confirmed.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed. Apply upstream commit e5d295b3cd467fc713300e208ba2dacc7ff603a0 (pull request https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22550) or upgrade to the first FFmpeg release that includes it once that release is confirmed, and track the advisory at https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-memory-leak-via-mediacodec-jni-setbuffer. Where rebuilding or upgrading is not immediately possible, the exposure can be reduced by avoiding the MediaCodec JNI hardware-decode path for untrusted media and forcing software decoding instead, at the cost of higher CPU load, lower throughput, and increased battery drain on Android devices; additionally, restricting repeated or looped decoder re-initialization on attacker-supplied files (for example bounding decode sessions per file or per app) limits accumulation of the per-configuration leak, though it does not remove the underlying defect. Note that the vulnerability is local-vector and requires a victim to open or play a crafted file, so limiting ingestion of untrusted media from untrusted sources reduces practical reachability without addressing the leak itself.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
MediaCodec is Android's native API for hardware-accelerated audio/video codecs, and FFmpeg reaches it through JNI glue in libavcodec/mediacodec_wrapper.c, where AMediaFormat buffers are marshalled between native and Java memory. In the affected code path, mediaformat_jni_setBuffer() allocated a native buffer with av_malloc(), copied the caller's data into it, and handed it to Java via NewDirectByteBuffer(); each configuration of a hardware decoder therefore left the native allocation unreachable and unfreed, a CWE-401 (missing release of memory after effective lifetime) defect. Because leaked volume scales with buffer size, crafted media carrying large extradata amplifies the leak per decoder configuration, and only repeated or looped decoder initialization accumulates enough loss to matter. The upstream patch commit e5d295b3cd467fc713300e208ba2dacc7ff603a0 rewrites this path to allocate a Java byte[] with NewByteArray(), fill it via SetByteArrayRegion(), wrap it with ByteBuffer.wrap(), and release the local reference, eliminating the native allocation entirely; the same commit hardens mediaformat_jni_getBuffer() to duplicate-and-slice the incoming ByteBuffer and copy through GetByteArrayRegion() instead of reading the direct buffer address. Reachability depends on the FFmpeg build actually using the MediaCodec JNI wrapper, which is a deployment-specific, typically hardware-decode configuration on Android.
Know when Ffmpeg gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
A local Android app must decode an attacker-supplied file (AV:L, UI:R); the leak triggers deterministically on configuration (AC:L); impact is availability-only resource exhaustion (A:L, C/I:N).
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the concat protocol
FFmpeg before 2.8.12, 3.0.x and 3.1.x before 3.1.9, 3.2.x before 3.2.6, and 3.3.x before 3.3.2 does not properly restric
FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the subfile protoco
The av_reallocp_array function in libavutil/mem.c in FFmpeg before 2.0.1 has an unspecified impact and remote vectors re
cbs_jpeg_split_fragment in libavcodec/cbs_jpeg.c in FFmpeg 4.1 and 4.2.2 has a heap-based buffer overflow during JPEG_MA
Out-of-bounds heap write in FFmpeg's RASC video decoder (decode_dlta in libavcodec/rasc.c) allows attackers to corrupt m
Memory corruption in FFmpeg before 8.1 allows an attacker who can supply a crafted H.264/HEVC media file to corrupt heap
Memory exhaustion in FFmpeg git-master builds before commit d5873b can occur when a victim processes attacker-controlled
Integer Overflow vulnerability in function filter_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacker
Integer Overflow vulnerability in function filter_robert in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacke
Integer Overflow vulnerability in function filter_prewitt in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
Integer Overflow vulnerability in function filter16_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
EUVD-2026-120287
GHSA-4q2x-vx5w-h3m6
NVD
CVE.org
EPSS
Exploit-DB