UBUNTU-CVE-2026-125255: Use After Free

Published Nov 10, 2026
·
Updated

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 ffmjpegdecodesof() to pass a stale rawimagebuffer pointer to hwaccel decoders like NVDEC, crashing applications or leaking heap contents.

Affected Software

7 affected components
ubuntu/ffmpeg*
ubuntu/ffmpeg*
ubuntu/ffmpeg*
ubuntu/ffmpeg*
ubuntu/ffmpeg*
ubuntu/ffmpeg*
ubuntu/ffmpeg*

Event History

Nov 10, 2026
CVE Published
via OSV·12:00 AM
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What input or attacker capability is needed to trigger the issue?

An attacker needs to supply a crafted MJPEG stream containing an SOF marker without a preceding SOI marker. Exploitation requires the affected application to process that stream and user interaction is required.

2

Which deployments are most exposed?

Applications that decode untrusted MJPEG streams through FFmpeg are exposed, particularly when using hardware-accelerated decoders such as NVDEC. The described impact is application crashes or possible disclosure of heap contents.

3

How can I determine whether an application may be affected?

Check whether the application uses FFmpeg through version 9.0.2, processes MJPEG input, and can route decoding through a hardware-acceleration decoder such as NVDEC. The vulnerable path involves ff_mjpeg_decode_sof() passing a stale raw_image_buffer pointer after malformed marker ordering.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203