Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Android

CVE-2026-125198 — FFmpeg

Low · CVSS 2.0EPSS 0.1% First seen November 09, 2026

One of 121 FFmpeg vulnerabilities published together by NVD.

AndroidOperating systemsMobileVulnerabilities

Research article

FFmpeg through 9.0.2: unreleased native buffers in MediaCodec JNI path cause memory leak (CVE-2026-125198)

CVECVE-2026-125198
Vendor and productFFmpeg
PublishedNovember 12, 2026 08:40 UTC
Research cut-offNovember 12, 2026 07:21 UTC
UpdatedNovember 25, 2026 15:21 UTC
Sources reviewed3: NVD record (last modified 2026-11-10); CISA KEV catalog; FIRST EPSS (2026-11-10)

Update — November 25, 2026

Updates come from the CVE's records (NVD, CISA, GitHub, FIRST) as they change, newest first. The article below is as it was published on November 12, 2026.

Executive summary

CVE-2026-125198 describes a memory leak in FFmpeg's MediaCodec JNI wrapper, where native buffers wrapped as Java direct byte buffers are never released, so each MediaCodec decoder configuration with crafted extradata can leak native memory [1]. NIST NVD lists CVSS 4.0 2.0 LOW (vector 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X) and CVSS 3.1 2.5 LOW (vector CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L), both attributed to disclosure@vulncheck.com [1]. The record states that FFmpeg through 9.0.2 is affected, and it publishes no fixed version [1]. Exploitation requires a crafted media file to be processed by an affected Android application, which the record and the CVSS vectors indicate needs local access and user interaction under the 3.1 vector [1]. The record is in Awaiting Analysis status, the CVE is not listed in the CISA KEV catalog, and the FIRST EPSS estimate is 0.0012 (percentile 0.0181) [1, 2, 3]. The most important immediate action is to inventory every application and system that bundles FFmpeg libavcodec 9.0.2 or earlier and restrict untrusted media from reaching MediaCodec decoding paths until a vendor-confirmed fix is identified and verified [1].

Key points

  • CVE-2026-125198: FFmpeg through 9.0.2 leaks native memory in the MediaCodec JNI wrapper, classified as CWE-401 [1].
  • Severity is low: CVSS 3.1 2.5 LOW and CVSS 4.0 2.0 LOW, both by disclosure@vulncheck.com; the record is in Awaiting Analysis [1].
  • Triggered by crafted media with large extradata during MediaCodec decoder configuration, leading to resource exhaustion [1].
  • No fixed version is published; the commit and pull request in the record are not confirmed as fixes [1].
  • Not in CISA KEV as of 2026-11-12; EPSS 0.0012 with percentile 0.0181 [2, 3].

Vulnerability identification

FieldValueSource
CVE IDCVE-2026-125198[1]
Vendor / projectFFmpeg[1]
ProductFFmpeg (libavcodec component)[1]
Component named in recordlibavcodec/mediacodecwrapper.c, function recorded as mediaformatjnisetBuffer()[1]
Platform named in recordAndroid applications that use the MediaCodec decoder[1]
Published2026-11-09T19:16:55[1]
Last modified2026-11-10T21:46:30[1]
Record statusAwaiting Analysis[1]
CWECWE-401 (Missing Release of Memory after Effective Lifetime)[1]
CVSS 4.0 score2.0 LOW; scorer disclosure@vulncheck.com; labelled Secondary[1]
CVSS 4.0 vectorCVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X[1]
CVSS 3.1 score2.5 LOW; scorer disclosure@vulncheck.com; labelled Primary[1]
CVSS 3.1 vectorCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L[1]
CISA KEVNot listed as of 2026-11-12[2]
EPSS0.0012 (0.12%), percentile 0.0181, dated 2026-11-10[3]
Related identifiersPull request 22550 on the FFmpeg code host; commit e5d295b3cd467fc713300e208ba2dacc7ff603a0; a VulnCheck advisory (listed as a reference only)[1]

Discrepancies: the record gives the source file as mediacodecwrapper.c in the description but the reference path uses mediacodec_wrapper.c [1]. The function name in the description appears to have lost its separators, so the exact symbol is not verified by the reviewed sources [1]. Both CVSS scores are attributed to the same external scorer, with the 3.1 score labelled Primary and the 4.0 score labelled Secondary; the record does not explain this, and the NVD analysis is not yet complete [1]. No GitHub Security Advisory or vendor advisory was included in the reviewed material [1, 2, 3].

Technical background

FFmpeg is an open-source multimedia framework. Its libavcodec library provides audio and video encoders and decoders [1]. The record ties this flaw to a wrapper file that connects libavcodec to Android's MediaCodec API, which is the platform's hardware and software media codec interface [1]. MediaCodec is used by Android applications to decode media streams, and the wrapper is invoked through the Java Native Interface (JNI), the mechanism that lets Java code call native C or C++ code and vice versa [1].

JNI buffer handling matters here. A direct byte buffer is a Java object that refers to memory allocated outside the Java heap. The JNI function NewDirectByteBuffer creates such an object from a native pointer [1]. Native memory behind a direct buffer must be released by native code, because the Java garbage collector does not free it automatically. This is an analyst explanation of general JNI behaviour, not a statement made in the sources.

Extradata is codec-specific configuration data that container formats carry alongside the media stream. The record states that crafted files with large extradata trigger the flaw [1]. The trust boundary is the point where untrusted media content, supplied by a file, network stream or user, enters the decoder configuration path inside an application.

Vulnerability description

The record describes a memory leak in the FFmpeg wrapper function that creates Java direct byte buffers. Buffers wrapped with NewDirectByteBuffer are never freed [1]. The property violated is resource management: native memory allocated for each decoder configuration is not released after it is no longer needed [S1, CWE-401 mapping in S1].

According to the record, an attacker who can supply a crafted media file with large extradata can cause native memory to leak on each MediaCodec decoder configuration performed by an Android application, which can lead to resource exhaustion [1]. The leak is repeatable per configuration event. The record does not describe code execution, information disclosure, or a way to read memory belonging to other processes, and the reviewed sources do not establish any of these [1].

Conditions for the flaw to matter: the application must use the affected FFmpeg code through MediaCodec, and the media input must reach the configuration path with large extradata [1]. Whether a given Android application bundles this code, and whether it is reachable with untrusted input, is not established by the reviewed sources.

Root cause analysis

Confirmed: the record states that the affected function never frees buffers that it wraps with NewDirectByteBuffer [1]. This is the direct coding error described by the source. The record maps the weakness to CWE-401 [1].

Analyst assessment: the leak is likely a missing ownership or lifetime step in the wrapper, where the native allocation that backs a direct buffer has no matching release path when the buffer is no longer used. The reviewed sources do not show the patch or the code diff, so the exact fix and the lifetime rules the maintainers chose are not established [1]. Existing controls such as Java garbage collection do not reclaim native memory, which is why the leak is not caught by the managed runtime (analyst assessment based on general JNI behaviour).

Not established by the reviewed sources: why the leak is triggered by large extradata in particular, and whether the commit listed in the record addresses exactly this defect [1].

Technical mechanics

  1. A media file that contains extradata is supplied to an Android application that uses MediaCodec [1].
  2. The application configures a MediaCodec decoder, which passes codec configuration through the FFmpeg wrapper [1].
  3. The wrapper creates a native buffer for the configuration data and exposes it to Java as a direct byte buffer using NewDirectByteBuffer [1].
  4. The Java side uses the buffer for the configuration. The native memory behind the buffer is not released afterwards, because the wrapper has no release path for it [1].
  5. Each further decoder configuration repeats steps 2 to 4, so the unreleased native memory grows with the number of configurations [1].
  6. Over time the process holds more native memory, which can exhaust available resources [1].

Illustrative flow for defenders: untrusted media input, then decoder configuration, then wrapper buffer creation without release, then growing native memory use. The security control that should have prevented the issue is ownership tracking for native memory that has been exposed to managed code, with a release step matched to the buffer lifetime. The reviewed sources do not describe such a control in the affected code.

Attack surface and exploitation prerequisites

PrerequisiteAssessmentBasis
Network accessNot required by the CVSS 3.1 or 4.0 vectors (AV:L)[1]
Adjacent network accessNot indicated[1]
Local accessIndicated by AV:L in both vectors; the record's attack path is through supplied media files[1]
AuthenticationNone required (PR:N in both vectors)[1]
User interaction3.1 vector sets UI:R (user action needed); 4.0 vector sets UI:P (user action required in the passive sense)[1]
Required configurationApplication uses MediaCodec through the affected FFmpeg code; large extradata in input[1]
Attacker positionAbility to get a crafted media file to the application[1]
Privilege levelNot established by the reviewed sources[1]

The vectors are a summary of the assessor's view. They are not proof that a given application is reachable or exploitable in practice. The reviewed sources do not state which Android applications bundle affected FFmpeg code or whether any application accepts untrusted media through this path [1].

Exploitation scenarios and attack lifecycle

Illustrative scenario: a user opens a crafted media file in an Android application that decodes media through MediaCodec and uses the affected FFmpeg wrapper. Each decoder configuration leaks native memory. The application's memory use grows across repeated sessions until resources are exhausted. The record supports the leak and the resource exhaustion outcome [1], but it does not document any real attack using this scenario, so the scenario is illustrative only.

Illustrative scenario: a service that decodes uploaded media in a long-running process could accumulate leaked memory from many crafted uploads. The record does not describe server deployments, so this scenario is not confirmed for any product.

Defensive opportunities: restrict which inputs reach decoders, run decoding in isolated processes with memory limits so that a leak is contained and restarts are predictable, and monitor memory growth per application process. Detection of the leak itself would rely on memory telemetry rather than a known signature, because the reviewed sources provide no indicators.

No confirmed attack chain is documented in the reviewed sources [1, 2, 3].

Impact analysis

AreaTechnically demonstrated by sourcesPlausible consequence (analyst assessment)
ConfidentialityNot established by the reviewed sourcesNone identified from the record [1]
IntegrityNot established by the reviewed sourcesNone identified from the record [1]
AvailabilityNative memory leak leading to resource exhaustion [1]Application slowdown, crash, or device resource pressure
Authentication and authorizationNot affected per the record; no auth bypass described [1]None identified
Privilege boundariesNot established by the reviewed sourcesNone identified from the record
Data and privacyNot established by the reviewed sourcesNone identified from the record
Business operationsNot established by the reviewed sourcesImpact depends on whether media decoding is a critical function in the application
Regulatory or contractualNot established by the reviewed sourcesDepends on the operator's obligations

The CVSS 3.1 availability impact is rated Low, and the 4.0 vector sets only VA to Low [1]. Both scores reflect limited availability impact.

Affected products and versions

VendorProduct / componentAffected versionsPlatformFixed versionSource and qualification
FFmpeglibavcodec, MediaCodec wrapperThrough 9.0.2 (affected less than or equal to 9.0.2)Android applications using MediaCodecNot published in the record[1], CNA-published range; NVD analysis pending

The record publishes no lower bound, so whether older releases are affected is not established by the reviewed sources [1]. No vendor advisory was included to confirm the range [1, 2, 3]. Downstream Android applications that embed FFmpeg may have their own version and patch status, which is not established by the reviewed sources.

Exploitation and threat intelligence status

Confirmed exploitation in the wild: not established by the reviewed sources. The CVE is not in the CISA KEV catalog as of 2026-11-12; the catalog listing is not evidence that exploitation has not occurred [2].

The FIRST EPSS estimate of probability of exploitation activity in the next 30 days is 0.0012 (0.12%), with percentile 0.0181 [3]. EPSS is a statistical estimate and not evidence of exploitation [3].

Public proof of concept: the record references a VulnCheck advisory, but the content of that advisory is not in the reviewed material, so public exploit availability is not established [1]. Threat actors, campaigns, and sectors: not established by the reviewed sources.

Source reliability: the NVD record is an official CVE-based record but is in Awaiting Analysis status [1]. KEV and EPSS data are dated 2026-11-12 and 2026-11-10 respectively [2, 3].

Indicators of compromise

Not established by the reviewed sources. The reviewed sources provide no file hashes, domains, IP addresses, process names, log events or network patterns for this CVE [1, 2, 3]. Indicators would go stale quickly and must be validated before blocking. Defenders should rely on memory growth telemetry and inventory evidence described in the detection section.

Detection and exposure assessment

Step 1, inventory: identify every Android application build and every server or desktop system that includes FFmpeg libavcodec, and record the bundled FFmpeg version from build manifests or software bills of materials. Affected range per the record is through 9.0.2 [1].

Step 2, version check on hosts where the FFmpeg command-line tool is installed: run the tool's own version command, for example ffmpeg -version, which is standard FFmpeg tooling and is read-only. Prerequisite: the binary must be the one used by the application. Expected output includes the FFmpeg version string. Limitation: this command does not show whether an Android application's embedded library is affected, and a version match is not proof of exploitability.

Step 3, configuration and feature check: for Android applications, identify whether the application uses MediaCodec decoding with the affected FFmpeg code path and whether it accepts media from untrusted sources. Not established by the reviewed sources how to determine this from the application alone; the application's build configuration and source code are the practical evidence.

Step 4, telemetry: review process memory trends for decoding services or applications, looking for steady native memory growth that correlates with decoder configuration events. The reviewed sources provide no log event IDs or signatures for this flaw.

Step 5, scanning: no vendor detection plugin or scanner signature is identified in the reviewed sources.

Immediate mitigation

  1. Restrict untrusted media from reaching affected decoding paths. Protects against crafted input triggering the leak. Limitation: depends on application design. Side effects: some media may not play. Verify by testing that the application rejects or does not decode test files from untrusted sources in an authorized test environment. (Analyst recommendation, follows from the record's description of the trigger [1].)
  2. Run media decoding in isolated processes with memory limits and automatic restart, so that a leak is contained to one process. Verify with process limits and restart logs. (Analyst recommendation.)
  3. Increase memory monitoring for decoding processes with alerts on sustained growth. Verify that alerts fire in a test. (Analyst recommendation.)
  4. Remove public exposure of any service that decodes uploaded media from untrusted users until the affected version is replaced or verified as not affected. (Analyst recommendation.)

None of these measures is a source-documented vendor mitigation, because the reviewed sources publish none [1].

Permanent remediation

Vendor-confirmed fix: not established by the reviewed sources. The record lists a pull request, a commit and a VulnCheck advisory, but does not describe them as fixes [1]. Confirming whether commit e5d295b3cd467fc713300e208ba2dacc7ff603a0 is the fix requires the FFmpeg project's release notes or a vendor advisory, which are not in the pack.

Recommended approach: obtain a FFmpeg release or vendor build that the project or the application vendor identifies as containing the fix, rebuild or update the application or service, and verify the version. Backup, maintenance window and rollback considerations apply to any application update. Restart requirements are not documented in the reviewed sources.

Do not treat the listed commit as a confirmed fix until the project or a vendor advisory states it.

Workarounds and compensating controls

No vendor-supported workaround is documented in the reviewed sources [1]. Process isolation, input restriction, and memory monitoring reduce operational risk but leave the vulnerable code in place. Residual risk remains for any affected build that still processes untrusted media. These controls are not equivalent to a permanent fix because they do not remove the unreleased native memory defect.

Validation and verification

  1. Confirm the installed FFmpeg version or the bundled library version in each inventoried build is above the affected range. The record gives affected as through 9.0.2, but no fixed version is published, so the correct target must be confirmed from a vendor source first [1].
  2. Confirm the application or service no longer uses the affected decoding path with untrusted input, or that the vendor fix is present.
  3. Re-run the inventory and version checks on all systems and record the results with owner, date and exceptions.
  4. Monitor process memory during a controlled test with crafted files in an authorized environment, comparing memory before and after repeated decoder configurations. A stable memory profile is supporting evidence, not proof of security.
  5. Review service health and logs for memory-related restarts or errors over an agreed period.
  6. Confirm compensating controls such as isolation and memory limits remain in place where the fix is not yet deployed.
  7. Do not declare the issue closed based on a single check.

Incident response

No exploitation is confirmed by the reviewed sources [2, 3]. If exploitation is suspected, for example because a service shows unexplained native memory growth after untrusted media uploads:

  1. Triage and scope: identify affected processes and hosts from the inventory, and determine which media sources reached them.
  2. Containment: isolate or restart the affected process, and restrict further untrusted media input to it.
  3. Evidence preservation: capture memory metrics, application logs and the media inputs before cleanup, without destructive actions that erase evidence.
  4. Investigation: correlate decoder configuration events with input sources; no indicators are established by the reviewed sources.
  5. Credentials: rotate secrets only if other evidence warrants it; the record describes no credential exposure [1].
  6. Eradication and recovery: deploy a vendor-confirmed fix when available, then monitor memory behaviour.
  7. Notification and reporting: follow the organization's incident response plan and applicable legal obligations; the reviewed sources do not establish a notification trigger.
  8. Lessons learned: record how untrusted media reached the decoder and how memory monitoring performed.

Security hardening and prevention

Specific to this flaw: require a release step for every native buffer exposed to managed code, and add a regression test that decodes repeated configurations with large extradata while asserting stable native memory (analyst recommendation based on CWE-401 [1]). Validate media container and extradata sizes before they reach the wrapper, which is a defence-in-depth measure rather than a vendor-documented fix.

Broader defence-in-depth measures: run decoders with least privilege and in separate processes, set memory limits, maintain a software bill of materials for embedded media libraries, and include media decoding paths in fuzzing and memory testing.

Risk assessment

Technical severity: the CVSS scores are low (3.1 base 2.5, 4.0 base 2.0), and the record describes a resource exhaustion outcome without code execution or data exposure [1].

Exposure: depends on whether affected applications or services process untrusted media. Not established by the reviewed sources.

Attacker opportunity: the vectors require local access and no privileges [1]. The EPSS estimate is 0.0012 [3].

Evidence of exploitation: none established; the CVE is not in KEV [2].

Business impact: likely limited to availability of affected applications or services, depending on the operator's use of media decoding (analyst assessment).

Existing controls and residual risk: the record is in Awaiting Analysis, no fix is published, and the affected range is open at the lower end [1]. Residual risk remains until a vendor-confirmed fix is identified and deployed.

Recommended priority: medium for internet-facing or multi-tenant services that decode untrusted media, and lower for closed internal use, pending confirmation of the fix. This is an organization-specific assessment with the assumptions above; it is not the CVSS score.

Conclusion

CVE-2026-125198 is a memory leak in the FFmpeg MediaCodec JNI wrapper, where native buffers are not released after use, so crafted media with large extradata can cause resource exhaustion [1]. Owners of Android applications and services that bundle FFmpeg through 9.0.2 should act first by inventorying affected builds and restricting untrusted media from reaching the decoding path [1]. The permanent fix requires a vendor-confirmed fixed version, which the reviewed sources do not provide [1]. The issue can be closed when the vendor fix is identified and deployed, the inventory shows no affected builds, and memory testing and monitoring show stable behaviour, with evidence recorded [1, 3].

Remediation checklist

  1. Inventory every Android application build and server or desktop system that bundles FFmpeg libavcodec, recording version from build manifests or software bill of materials; the record affects FFmpeg through 9.0.2 [1].
  2. Run the FFmpeg command-line version command (ffmpeg -version) on hosts where that binary is the one used, and record the output; a match is not proof of exploitability [1].
  3. Restrict untrusted media from reaching MediaCodec decoding paths in affected applications, and verify with authorized test files that untrusted input is rejected or not decoded [1].
  4. Run decoding in isolated processes with memory limits and automatic restart, and verify restart behaviour in a test [1].
  5. Add alerts for sustained native memory growth in decoding processes, and verify that an alert fires during a controlled test [1].
  6. Remove public exposure of any service that decodes uploaded media from untrusted users until a verified fixed build is deployed [1].
  7. Obtain a vendor-confirmed fixed FFmpeg version or application vendor build from the FFmpeg project or vendor advisory, since none is published in the reviewed sources [1].
  8. Do not treat commit e5d295b3cd467fc713300e208ba2dacc7ff603a0 as a fix until the project confirms it; then rebuild or update and verify the installed version [1].
  9. After the update, re-run inventory checks and a controlled memory test with repeated decoder configurations, and record owner, date and exceptions [1].

Evidence gaps

  • Vendor-confirmed fixed version: not published in the record; a FFmpeg release note or vendor advisory is needed [1].
  • Lower bound of the affected range: the record gives only through 9.0.2; older releases need confirmation from the vendor [1].
  • Whether commit e5d295b3cd467fc713300e208ba2dacc7ff603a0 and pull request 22550 are the fix: not described as fixes in the record; the project's release notes would settle it [1].
  • Content of the VulnCheck advisory, including any proof of concept or technical detail: not in the reviewed material; the advisory itself is needed [1].
  • Exact function and file names: the description and reference path differ, and the function name appears malformed; the source file in the commit would settle it [1].
  • Which Android applications or products embed affected FFmpeg code and whether they accept untrusted media: not established; application inventories or vendor statements would settle it [1].
  • Root cause beyond the missing release: the exact lifetime error in the code is not described; the diff or maintainer analysis would settle it [1].
  • Exploitation evidence and indicators: none in the reviewed sources; KEV absence is not proof of no exploitation [2, 3].
  • NVD analysis and final scores: the record is in Awaiting Analysis and the two scores come from a secondary scorer; NVD's completed analysis would confirm them [1].

References

  1. CVE-2026-125198 record. NIST National Vulnerability Database (NVD), 2026-11-10. https://nvd.nist.gov/vuln/detail/CVE-2026-125198. Accessed 2026-11-12. CVE identity, record status and dates, official description paraphrase, CWE-401 mapping, CVSS 4.0 and 3.1 scores and vectors, scorer attribution, affected range through 9.0.2, absence of published fixed version, reference identifiers (pull request, commit, VulnCheck advisory), file name discrepancy,
  2. Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-12. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-12. CISA KEV status: CVE-2026-125198 not listed as of 2026-11-12, and the caveat that absence is not evidence of no exploitation.
  3. EPSS score for CVE-2026-125198. FIRST, 2026-11-10. https://api.first.org/data/v1/epss?cve=CVE-2026-125198. Accessed 2026-11-12. FIRST EPSS estimate of 0.0012 with percentile 0.0181 dated 2026-11-10, and the caveat that EPSS is not evidence of exploitation.

Written with AI assistance from the 3 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

Summary

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

Low · 2.0 CVSS 4.0 base score from the CNA (vulncheck.com)

An attacker without an account can exploit this with local access if a user views or visits something, but only under specific conditions.

Attack from
local access (a logged-in user, or a malicious file opened on the device)
Attack complexity
high (only works under specific conditions)
Special conditions
only in some setups or conditions
Login needed
no
User action needed
yes, a user must view or visit something
Impact
low on availability, none on confidentiality and integrity
Impact on other systems
none

Vector 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X · CVSS 3.1 2.5 from the CNA (vulncheck.com): CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L

Weakness

  • CWE-401: Missing Release of Memory after Effective Lifetime

Affected and fixed versions

ProductAffected versionsFixed in
FFmpeg≤ 9.0.2—

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Patches and fixed releases

Other references

Details from NVD (public domain).

Affected

  • FFmpeg

Frequently asked questions

What is CVE-2026-125198?

CVE-2026-125198 describes a memory leak in FFmpeg's MediaCodec JNI wrapper, where native buffers wrapped as Java direct byte buffers are never released, so each MediaCodec decoder configuration with crafted extradata can leak native memory. Weakness type: Missing Release of Memory after Effective Lifetime (CWE-401).

How severe is CVE-2026-125198?

CVE-2026-125198 has a CVSS 4.0 base score of 2.0 (low), from the CNA (vulncheck.com). An attacker without an account can exploit this with local access if a user views or visits something, but only under specific conditions.

Is CVE-2026-125198 being exploited?

Not as far as is known: CVE-2026-125198 is not in CISA's Known Exploited Vulnerabilities catalog as of November 29, 2026. EPSS estimates a 0.1% chance that it is exploited in the next 30 days.

Which versions are affected by CVE-2026-125198?

FFmpeg ≤ 9.0.2.

How do I fix CVE-2026-125198?

Inventory every Android application build and server or desktop system that bundles FFmpeg libavcodec, recording version from build manifests or software bill of materials; the record affects FFmpeg through 9.0.2. Run the FFmpeg command-line version command (ffmpeg -version) on hosts where that binary is the one used, and record the output; a match is not proof of exploitability. Restrict untrusted media from reaching MediaCodec decoding paths in affected applications, and verify with authorized test files that untrusted input is rejected or not decoded.

Timeline & sources

References

Related vulnerabilities & news