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

- Severity: Low 2.0 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-11-09T19:11:18.674Z
- Modified: 2026-11-25T15:09:21.370Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- FFmpeg FFmpeg: up to 9.0.2

## Every score

- VulnCheck: CVSS:4.0 2.0 Low `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`
- VulnCheck: CVSS:3.1 2.5 Low `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L`

## References

- <https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22550> (issue-tracking, patch)
- <https://github.com/FFmpeg/FFmpeg/commit/e5d295b3cd467fc713300e208ba2dacc7ff603a0> (patch)
- <https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/mediacodec_wrapper.c#L1134> (patch, technical-description)
- <https://github.com/FFmpeg/FFmpeg> (product)
- <https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-memory-leak-via-mediacodec-jni-setbuffer> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-125198](https://www.cve.org/CVERecord?id=CVE-2026-125198), CVE Terms of Use, modified 2026-11-13
- NVD: [CVE-2026-125198](https://nvd.nist.gov/vuln/detail/CVE-2026-125198), Public domain, modified 2026-11-25

---

Page: https://cve.day/CVE-2026-125198 · Whole record: https://cve.day/CVE-2026-125198.json · Rebuilt by cve.day 2026-11-25T22:59:53.294Z
