FFmpeg through 9.0.2 Memory Leak in MJPEG Hwaccel SOF Decoding

State
Published
Severity
5.7 Medium
Published
Nov 9, 2026
Updated
Nov 9, 2026
Reserved
Nov 9, 2026

Read the record on cve.org

Description

FFmpeg through 9.0.2 contains a memory leak vulnerability in ff_mjpeg_decode_sof() in libavcodec/mjpegdec.c, which overwrites the hwaccel_picture_private pointer without freeing it. Attackers can supply crafted MJPEG streams with repeated SOF markers or failing frames to leak hwaccel private data and hardware buffers under VAAPI or NVDEC decoding.

ProductVersions
FFmpeg FFmpeg9.0.2 and earlier Affected

Weaknesses

  • CWE-401 Missing Release of Memory after Effective Lifetime

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.