FFmpeg crash or heap memory exposure in NVDEC frame handling
FFmpeg
FFmpeg
| Product | Affected | Fixed in |
|---|---|---|
| FFmpeg FFmpeg |
| No fix yet |
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.
From the CVE record · VulnCheck
FFmpeg through 9.0.2 has a use-after-free vulnerability in libavcodec/nvdec.c. An attacker who supplies crafted video for an application to process can cause a crash or potentially expose stale heap contents. The input does not specify whether authentication or user interaction is required.
Engineers running FFmpeg through 9.0.2 should check whether their applications process untrusted video.