---
id: CVE-2026-125185
title: FFmpeg through 9.0.2 Division by Zero via AFGS1 Film Grain Scaling Points
summary: >-
  FFmpeg through 9.0.2 contains a division by zero vulnerability in
  ff_aom_parse_film_grain_sets() that fails to reject AFGS1 scaling points with
  repeated x values. Attackers can supply crafted HEVC or VVC files with
  zero-increment scaling…
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-09T21:03:00.308514Z'
published: '2026-11-09'
updated: '2026-11-09'
sourceUpdated: '2026-11-09T21:06:57.846Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-125185'
references:
  - url: 'https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25572'
  - url: >-
      https://github.com/FFmpeg/FFmpeg/commit/b8daf520dd03f6139aa053acb768f3c4594599d9
    label: Patch Commit
  - url: >-
      https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/aom_film_grain_template.c#L457
  - url: 'https://github.com/FFmpeg/FFmpeg'
  - url: >-
      https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-division-by-zero-via-afgs1-film-grain-scaling-points
    label: >-
      VulnCheck Advisory: FFmpeg through 9.0.2 Division by Zero via AFGS1 Film
      Grain Scaling Points
tags:
  - cve.org
ingestedAt: '2026-11-09T19:18:02.610Z'
---

## Overview

FFmpeg through 9.0.2 contains a division by zero vulnerability in ff_aom_parse_film_grain_sets() that fails to reject AFGS1 scaling points with repeated x values. Attackers can supply crafted HEVC or VVC files with zero-increment scaling points in T.35 SEI messages, causing generate_scaling() to divide by zero and crash the decoder.

## Affected

- `FFmpeg <= 9.0.2`

## Remediation

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