---
id: CVE-2026-125254
title: FFmpeg through 9.0.2 Division by Zero via VVC ff_vvc_slice_rpl()
summary: >-
  FFmpeg through 9.0.2 contains a division by zero vulnerability in the VVC
  decoder because ff_vvc_slice_rpl() fails to validate num_ref_idx_active
  against built reference list entries. Attackers can supply a crafted VVC
  bitstream whose ex…
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-369
vendor: FFmpeg
product: FFmpeg
affected:
  - FFmpeg <= 9.0.2
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-09T20:55:19.505683Z'
published: '2026-11-09'
updated: '2026-11-09'
sourceUpdated: '2026-11-09T20:56:48.691Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-125254'
references:
  - url: 'https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25572'
  - url: >-
      https://github.com/FFmpeg/FFmpeg/commit/8732d7585cd8ab9d1dd9baeb4db5e93466c0efa7
    label: Patch Commit
  - url: 'https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/vvc/mvs.c#L77'
  - url: 'https://github.com/FFmpeg/FFmpeg'
  - url: >-
      https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-division-by-zero-via-vvc-ff-vvc-slice-rpl
    label: >-
      VulnCheck Advisory: FFmpeg through 9.0.2 Division by Zero via VVC
      ff_vvc_slice_rpl()
tags:
  - cve.org
ingestedAt: '2026-11-09T20:27:27.087Z'
---

## Overview

FFmpeg through 9.0.2 contains a division by zero vulnerability in the VVC decoder because ff_vvc_slice_rpl() fails to validate num_ref_idx_active against built reference list entries. Attackers can supply a crafted VVC bitstream whose excess reference indices yield a zero POC difference in ff_vvc_mv_scale(), crashing the decoding process.

## Affected

- `FFmpeg <= 9.0.2`

## Remediation

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