CVE-2026-125255
FFmpeg through 9.0.2 contains a use after free vulnerability in …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25231
- github.com/FFmpeg/FFmpeg
- github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/mjpegdec.c#L831
- github.com/FFmpeg/FFmpeg/commit/f58a6776546567367baf5223df9ffbfd289299f8
- www.vulncheck.com/advisories/ffmpeg-through-9.0.2-use-after-free-in-mjpeg-hardware-acceler
- nvd.nist.gov/vuln/detail/CVE-2026-125255
- cve.org/CVERecord?id=CVE-2026-125255
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.