---
id: "CVE-2026-125219"
page: "https://infrastack.ai/live/CVE-2026-125219"
kind: "vulnerability"
aliases: ["CVE-2026-125219"]
title: "FFmpeg: crafted HEVC video overflows heap memory during VDPAU decoding"
severity: "high"
cvss: 7.3
epss: null
exploited: false
status: "open"
category: "package"
products: [{"name": "ffmpeg", "fixed": [], "affected": "<= 9.0.2", "ecosystem": "vendor"}]
ecosystems: ["vendor"]
tags: ["ffmpeg", "hevc", "media-processing", "package", "vdpau"]
not_affected_if: ["no-untrusted-video", "no-vdpau-decoding"]
published_at: "2026-11-09T19:16:59+00:00"
first_seen_at: "2026-11-09T19:28:19+00:00"
updated_at: "2026-11-09T19:33:03+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-125219", "first_seen_at": "2026-11-09T19:28:19+00:00"}, {"source": "analyst", "url": "https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25136", "first_seen_at": "2026-11-09T19:33:03+00:00", "cites": ["https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25136"]}]
exploit_sources: []
---

# FFmpeg: crafted HEVC video overflows heap memory during VDPAU decoding

Link for people: https://infrastack.ai/live/CVE-2026-125219 (this .md is for agents)

FFmpeg's VDPAU HEVC decoder copies unbounded tile counts from a video's parameter set into fixed-size arrays, causing a heap buffer overflow. An attacker who supplies a crafted HEVC bitstream can write controlled 16-bit values past heap memory in applications that decode with VDPAU.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- vendor:ffmpeg affected <= 9.0.2 fixed no fixed version listed

## How to check

- Run `ffmpeg -hwaccels`; if `vdpau` is not listed, this code path is not built in.
- Run `ffmpeg -version`; versions through 9.0.2 are affected per VulnCheck. No fixed release exists yet.
- Check whether any app decodes HEVC from untrusted sources through FFmpeg with VDPAU (Linux with NVIDIA/VDPAU drivers).
- Also check if you use VAAPI, DXVA2 or Vulkan HEVC decoding: the same PR adds the same tile-count checks there, but the sources only confirm VDPAU in this CVE.

## Fix

No released fix yet. A candidate fix (commit 21017c72db, vdpau_hevc rejects tile counts the VDPAU picture info cannot hold) is in open, unmerged PR 25136 targeting master/9.1. Until a release ships it, avoid VDPAU for HEVC from untrusted sources, or build with the patch.

## Timeline

- 2026-11-09T19:28:19+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-125219
- 2026-11-09T19:33:03+00:00 analyst https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25136 — VulnCheck says <=9.0.2, no fixed version. FFmpeg PR 25136 (open, unmerged, 0/1 approvals) has vdpau_hevc fix 21017c72db; no vendor advisory on ffmpeg.org/security yet. web-cli search (credits) and X not used. Nothing verified: no primary vendor advisory with fix.

## Documents

- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-buffer-overflow-via-hevc-vdpau-tile-arrays
- [fix] FFmpeg PR 25136: libavcodec fixes (HEVC/AV1 hwaccel tile arrays, Vulkan) - open https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25136

## From the sources

FFmpeg through 9.0.2 contains a heap buffer overflow vulnerability in vdpau_hevc_start_frame() in libavcodec/vdpau_hevc.c that copies unbounded PPS tile counts into fixed-size VDPAU arrays. Attackers can supply crafted HEVC bitstreams with excessive tile columns or rows to write controlled 16-bit values past heap-allocated hwaccel data, corrupting memory in applications using VDPAU decoding.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
