CVE-2026-125255

FFmpeg through 9.0.2 contains a use after free vulnerability in libavcodec/mjpegdec.c that allows attackers to trigger freed buffer reads by sending a SOF marker without a preceding SOI. Attackers can supply crafted MJPEG streams causing ff_mjpeg_decode_sof() to pass a stale raw_image_buffer pointer to hwaccel decoders like NVDEC, crashing applications or leaking heap contents.
Configurations

Configuration 1 (hide)

cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*

History

30 Nov 2026, 16:21

Type Values Removed Values Added
References () https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25231 - () https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25231 - Issue Tracking, Patch
References () https://github.com/FFmpeg/FFmpeg - () https://github.com/FFmpeg/FFmpeg - Product
References () https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/mjpegdec.c#L831 - () https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/mjpegdec.c#L831 - Patch
References () https://github.com/FFmpeg/FFmpeg/commit/f58a6776546567367baf5223df9ffbfd289299f8 - () https://github.com/FFmpeg/FFmpeg/commit/f58a6776546567367baf5223df9ffbfd289299f8 - Patch
References () https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-use-after-free-in-mjpeg-hardware-accelerated-decoding - () https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-use-after-free-in-mjpeg-hardware-accelerated-decoding - Third Party Advisory
First Time Ffmpeg ffmpeg
Ffmpeg
CPE cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*

09 Nov 2026, 20:18

Type Values Removed Values Added
New CVE

Information

Published : 2026-11-09 20:18

Updated : 2026-11-30 16:21


NVD link : CVE-2026-125255

Mitre link : CVE-2026-125255

CVE.ORG link : CVE-2026-125255


JSON object : View

Products Affected

ffmpeg

  • ffmpeg
CWE
CWE-416

Use After Free