---
id: CVE-2026-125200
title: FFmpeg through 9.0.2 Memory Leak via libx265 Dolby Vision RPU Payloads
summary: >-
  FFmpeg through 9.0.2 contains a memory leak vulnerability in
  libavcodec/libx265.c because libx265_encode_frame() never frees the
  rpu.payload allocated by ff_dovi_rpu_generate(). Attackers can supply crafted
  Dolby Vision HEVC or AV1 files…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'
cvssSource: cna
cwe:
  - CWE-401
vendor: FFmpeg
product: FFmpeg
affected:
  - FFmpeg >= 7.1 <= 9.0.2
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-09T21:01:08.583421Z'
published: '2026-11-09'
updated: '2026-11-09'
sourceUpdated: '2026-11-09T21:06:56.564Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-125200'
references:
  - url: 'https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25416'
  - url: >-
      https://github.com/FFmpeg/FFmpeg/commit/8dc4af2bbbd0d650e299a3d327bd48c775120e11
    label: Patch Commit
  - url: 'https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/libx265.c#L880'
  - url: 'https://github.com/FFmpeg/FFmpeg'
  - url: >-
      https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-memory-leak-via-libx265-dolby-vision-rpu-payloads
    label: >-
      VulnCheck Advisory: FFmpeg through 9.0.2 Memory Leak via libx265 Dolby
      Vision RPU Payloads
tags:
  - cve.org
ingestedAt: '2026-11-09T19:18:02.600Z'
---

## Overview

FFmpeg through 9.0.2 contains a memory leak vulnerability in libavcodec/libx265.c because libx265_encode_frame() never frees the rpu.payload allocated by ff_dovi_rpu_generate(). Attackers can supply crafted Dolby Vision HEVC or AV1 files that leak one RPU allocation per encoded frame during libx265 transcoding, causing unbounded memory growth and denial of service.

## Affected

- `FFmpeg >= 7.1 <= 9.0.2`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
