Description
FFmpeg through 9.0.2 contains a use-after-free vulnerability in libavcodec/nvdec.c because ff_nvdec_start_frame() fails to reset ctx->bitstream after slice errors. Attackers can supply crafted video that abandons a picture before end_frame, causing cuvidDecodePicture() to read freed heap memory, crashing applications or exposing stale heap contents.
Published: 2026-11-09
Score: 5.8 Medium
EPSS: n/a
KEV: No
Impact: Denial of service and potential data exposure
Action: Patch immediately
AI Analysis

Impact

The vulnerability is a use‑after‑free in FFmpeg's NVDEC decoder, triggered when ff_nvdec_start_frame() fails to reset the bitstream pointer after a slice error. Crafting a video that abandons a picture before the end‑frame causes cuvidDecodePicture() to read freed heap memory. The result can be a crash or exposure of stale heap contents, leading to denial of service or information disclosure.

Affected Systems

FFmpeg 9.0.2 and earlier releases. The issue affects builds that enable NVIDIA NVDEC hardware acceleration, which is present in most FFmpeg distributions compiled with NVIDIA support.

Risk and Exploitability

The CVSS score of 5.8 indicates moderate severity. EPSS data is currently unavailable, so the likelihood of exploitation is not quantified; however, the vulnerability is not listed in CISA's KEV catalog. Because the flaw is triggered by supplying a malicious video, an attacker would need the ability to feed crafted media to the vulnerable FFmpeg process. If the application runs with local or network‑exposed media input, the attacker could execute the exploit remotely or locally, depending on how the media is provided. The crash or information leak would affect the application process and potentially the environment in which it runs.

Generated by OpenCVE AI on November 9, 2026 at 21:19 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FFmpeg to the latest stable release, which includes the fix for NVDEC use‑after‑free.
  • If an upgrade is not immediately possible, disable NVDEC hardware acceleration or rebuild FFmpeg without NVDEC support.
  • Run media decoding in a privileged sandbox or container to isolate the FFmpeg process from the rest of the system, limiting the impact of a crash or memory exposure.

Generated by OpenCVE AI on November 9, 2026 at 21:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 09 Nov 2026 19:30:00 +0000

Type Values Removed Values Added
Description FFmpeg through 9.0.2 contains a use-after-free vulnerability in libavcodec/nvdec.c because ff_nvdec_start_frame() fails to reset ctx->bitstream after slice errors. Attackers can supply crafted video that abandons a picture before end_frame, causing cuvidDecodePicture() to read freed heap memory, crashing applications or exposing stale heap contents.
Title FFmpeg through 9.0.2 Use-After-Free via NVDEC Stale Bitstream Pointer
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Weaknesses CWE-416
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*
Vendors & Products Ffmpeg
Ffmpeg ffmpeg
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H'}

cvssV4_0

{'score': 5.8, 'vector': 'CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-09T19:12:06.735Z

Reserved: 2026-11-09T18:15:35.137Z

Link: CVE-2026-125265

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-09T20:18:13.090

Modified: 2026-11-09T20:18:13.090

Link: CVE-2026-125265

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-09T21:30:11Z

Weaknesses