CVE-2026-125265 FFmpeg through 9.0.2 Use-After-Free via NVDEC Stale Bitstream Pointer
- Exploited in the wild
- Not known
- Fix
- None listed
What is CVE-2026-125265?
CVE-2026-125265 is a medium-severity vulnerability in FFmpeg, published on 9 Nov 2026.
Official 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.
Weakness: CWE-416
Which versions are affected by CVE-2026-125265?
How do I fix CVE-2026-125265?
No fix has been published for CVE-2026-125265 yet. Limit exposure of the affected software until one is available.
Is CVE-2026-125265 being exploited?
There is no known exploitation of CVE-2026-125265 in the wild and no public exploit code.
Sources
Also known as GHSA-fq5x-phj3-f454, UBUNTU-CVE-2026-125265.