CVE Catalog

CVE-2026-125255

MediumCVSS 5.3
Published: Translated: NVD NIST

Summary

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.

Risk Assessment

May cause application crashes or expose heap memory contents, posing confidentiality and availability risks. Affects systems decoding untrusted MJPEG streams with hardware acceleration.

Recommendation

Update FFmpeg to a version later than 9.0.2 or apply the patch. Restrict decoding of untrusted MJPEG streams with NVDEC acceleration until updated.

Other vulnerabilities in FFmpeg

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS