Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft video with deliberate slice errors
-
DeliveryDeliver to NVDEC-enabled FFmpeg decoder
-
ExploitPicture abandoned before end_frame, bitstream freed
-
ExecutioncuvidDecodePicture reads stale pointer
-
ImpactApplication crash or stale heap disclosure
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an FFmpeg deployment (through 9.0.2) that is built with and actively using the NVIDIA NVDEC/CUVID hardware-accelerated decode path in libavcodec/nvdec.c; software-only decoders are not affected. The attacker must supply a crafted video that triggers a slice error causing the picture to be abandoned before end_frame, so that ctx->bitstream is not reset and cuvidDecodePicture() dereferences freed heap memory. Limiting factors: the victim must process the attacker-supplied media (UI:P), the vector is local (AV:L) rather than a direct network service, the trigger condition is non-trivial (AC:H/AT:P), and the realistic outcome is an application crash with possible low-fidelity stale-heap disclosure rather than code execution. No privileges are required (PR:N). |
| Impact | This is a medium-severity, defensively-triaged issue rather than an urgent priority. The supplied CVSS 4.0 vector (5.8) stacks multiple friction factors against exploitation: AV:L (local - the crafted media must be fed to a local decode pipeline), AC:H and AT:P (a specific slice-error condition that abandons a picture before end_frame must be met), and UI:P (a victim must process the attacker's file). Impact is dominated by availability (VA:H, an application crash) with only low confidentiality exposure (VC:L, stale heap contents) and no integrity impact. No CISA KEV listing is present and no EPSS score was provided, so no probabilistic or confirmed-exploitation signal supports elevation; the vuln.today decision label is 'this_month', not act_now/emergency. No confirmed working exploit code is indicated in the input. The single most important real-world limiter - not captured by the raw score - is that the vulnerable code lives in libavcodec/nvdec.c, so only FFmpeg builds that are actually using NVIDIA NVDEC/CUVID hardware decoding are exposed; software-only decode paths are unaffected. Net: patch within the normal maintenance cycle as the 'this_month' label implies; treat as a crash/info-leak hardening fix, not an emergency. Note that EPSS is missing from the input and could not be weighed. |
| Exploit ScenarioDerived | An attacker crafts a malicious video that deliberately induces a slice decoding error, causing a picture to be abandoned before end_frame while ctx->bitstream still points at freed heap memory. When a victim decodes this file on an FFmpeg build using NVIDIA NVDEC hardware acceleration, cuvidDecodePicture() reads the stale pointer, crashing the application or surfacing stale heap contents. No public exploit was identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 09, 2026
Heap use-after-free in FFmpeg (all versions through 9.0.2) affects only builds that use the NVIDIA NVDEC/CUVID hardware-accelerated decode path in libavcodec/nvdec.c; software-only decoders are not exposed. When a crafted video triggers a slice error that abandons a picture before end_frame, ff_nvdec_start_frame() fails to clear ctx->bitstream, so cuvidDecodePicture() later reads freed heap memory, crashing the host application and potentially surfacing stale heap contents in the output. The issue is rated medium severity (CVSS 4.0: 5.8; assessed CVSS 3.1: AV:L/AC:H/PR:N/UI:R, C:L/I:N/A:H), the trigger is non-trivial and requires the victim to process attacker-supplied media, and there is no CISA KEV listing or public exploit code identified at time of analysis.
RemediationAI
Apply the upstream fix in FFmpeg commit 03cd7851955c023f1ff4c8a495d47e996d01485a (PR https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25231), which sets ctx->bitstream = NULL in ff_nvdec_start_frame(); patch status is 'available from vendor', but because the listed reference is a source commit, a tagged release carrying the fix is not independently confirmed - rebuild against a tree that includes the commit or backport the one-line change to your vendored FFmpeg. Where rebuilding is not immediately possible, the practical compensating control is to avoid the NVDEC/CUVID path for untrusted media: force software decoding (for example by disabling hwaccel selection for the affected decoders in the application or CLI), which removes exposure entirely at the cost of higher CPU usage and loss of GPU-offload throughput. Restricting which media sources are fed to NVDEC-enabled decoders to trusted content also reduces exposure, but it is a policy control rather than a fix and depends on the consuming application's input handling. Consult the VulnCheck advisory (https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-use-after-free-via-nvdec-stale-bitstream-pointer) for vendor and third-party tracking details.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
libavcodec/nvdec.c is FFmpeg's thin wrapper around NVIDIA's CUVID/NVDEC hardware decoding API, used by the hwaccel framework to hand compressed bitstreams to the GPU decoder. ff_nvdec_start_frame() prepares an AVFrame and stores the current packet buffer in ctx->bitstream, which cuvidDecodePicture() later consumes; the corresponding teardown normally happens in end_frame. The root cause is CWE-416 (use-after-free): the error/slice-failure path abandons the picture before end_frame runs, leaving ctx->bitstream pointing at a bitstream buffer that has already been released, and a subsequent cuvidDecodePicture() dereferences that dangling pointer. The upstream fix (commit 03cd7851955c023f1ff4c8a495d47e996d01485a, PR 25231) adds a single 'ctx->bitstream = NULL;' assignment in ff_nvdec_start_frame() so each frame starts with a clean pointer. Because the defect lives in the NVDEC wrapper only, FFmpeg deployments using software decoders (or other hwaccels) do not reach the vulnerable code path; the CPE cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:* and EUVD range 'FFmpeg 0 through 9.0.2' reflect that the flaw is present in every release up to and including 9.0.2. The supplied evidence describes the mechanism as stale-pointer dereference after a slice error; it does not provide a proof-of-concept or demonstrate exploitation beyond memory corruption and crash.
Know when Ffmpeg gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Local crafted-file processing via the NVDEC path gives AV:L; the specific slice-error trigger justifies AC:H; victim must decode the file (UI:R); impact is a crash (A:H) with minor stale-heap leak (C:L), no integrity effect.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the concat protocol
FFmpeg before 2.8.12, 3.0.x and 3.1.x before 3.1.9, 3.2.x before 3.2.6, and 3.3.x before 3.3.2 does not properly restric
FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the subfile protoco
The av_reallocp_array function in libavutil/mem.c in FFmpeg before 2.0.1 has an unspecified impact and remote vectors re
cbs_jpeg_split_fragment in libavcodec/cbs_jpeg.c in FFmpeg 4.1 and 4.2.2 has a heap-based buffer overflow during JPEG_MA
Out-of-bounds heap write in FFmpeg's RASC video decoder (decode_dlta in libavcodec/rasc.c) allows attackers to corrupt m
Memory corruption in FFmpeg before 8.1 allows an attacker who can supply a crafted H.264/HEVC media file to corrupt heap
Memory exhaustion in FFmpeg git-master builds before commit d5873b can occur when a victim processes attacker-controlled
Integer Overflow vulnerability in function filter_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacker
Integer Overflow vulnerability in function filter_robert in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacke
Integer Overflow vulnerability in function filter_prewitt in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
Integer Overflow vulnerability in function filter16_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
EUVD-2026-120215
GHSA-fq5x-phj3-f454
NVD
CVE.org
EPSS
Exploit-DB