---
id: CVE-2026-125240
title: FFmpeg through 9.0.2 Resource Leak in libsvtjpegxs JPEG XS Decoder Wrapper
summary: >-
  FFmpeg through 9.0.2 contains a resource leak vulnerability in
  svt_jpegxs_dec_decode() in libsvtjpegxsdec.c that leaks decoder instances when
  ff_set_dimensions() rejects frame dimensions. Attackers can supply a crafted
  JPEG XS stream, fo…
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 >= 8.1 <= 9.0.2
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-09T20:56:38.912875Z'
published: '2026-11-09'
updated: '2026-11-09'
sourceUpdated: '2026-11-09T21:06:53.473Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-125240'
references:
  - url: 'https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25416'
  - url: >-
      https://github.com/FFmpeg/FFmpeg/commit/3aa561b0dd2054182fbb9548b4526e8500d52a52
    label: Patch Commit
  - url: >-
      https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/libsvtjpegxsdec.c#L132
  - url: 'https://github.com/FFmpeg/FFmpeg'
  - url: >-
      https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-resource-leak-in-libsvtjpegxs-jpeg-xs-decoder-wrapper
    label: >-
      VulnCheck Advisory: FFmpeg through 9.0.2 Resource Leak in libsvtjpegxs
      JPEG XS Decoder Wrapper
tags:
  - cve.org
ingestedAt: '2026-11-09T19:18:02.581Z'
---

## Overview

FFmpeg through 9.0.2 contains a resource leak vulnerability in svt_jpegxs_dec_decode() in libsvtjpegxsdec.c that leaks decoder instances when ff_set_dimensions() rejects frame dimensions. Attackers can supply a crafted JPEG XS stream, for example in MPEG-TS, with oversized headers to repeatedly leak decoder threads and buffers, exhausting memory.

## Affected

- `FFmpeg >= 8.1 <= 9.0.2`

## Remediation

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