CVE-2026-125255: FFmpeg through 9.0.2 Use-After-Free in MJPEG Hardware-Accelerated Decoding

Published Nov 9, 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

14 affected componentsFixes available
FFmpeg FFmpeg<=9.0.2
debian/ffmpeg*
debian/ffmpeg*
debian/ffmpeg*
ubuntu/ffmpeg*
ubuntu/ffmpeg*
ubuntu/ffmpeg*
ubuntu/ffmpeg*
ubuntu/ffmpeg*
ubuntu/ffmpeg*
ubuntu/ffmpeg*
FFmpeg FFmpeg<=9.0.2
debian/ffmpeg<=7:5.1.9-0+deb12u1, <=7:7.1.5-0+deb13u1, <=7:9.0.2-6, <=7:9.1-3
alpine/ffmpeg<8.1.4-r0
8.1.4-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/ffmpeg to a version that resolves this vulnerability.

    Fixed in 8.1.4-r0

Event History

Nov 9, 2026
CVE Published
via MITRE·07:11 PM
Data Sourced
via MITRE·07:11 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:18 PM
DescriptionSeverityWeakness
Event
via NVD·08:18 PM
Nov 12, 2026
Updated
via OSV·05:25 PM
Severity
Nov 16, 2026
Data Sourced
via OSV·12:00 AM
Affected Software
Nov 30, 2026
Data Sourced
via NVD·04:21 PM
RemedyAffected Software

Frequently Asked Questions

1

Which deployments are most exposed?

Applications that decode attacker-supplied MJPEG streams using FFmpeg, particularly with hardware-accelerated decoders such as NVDEC, are exposed. The affected code is in FFmpeg's MJPEG decoder.

2

What does an attacker need to provide?

The attacker needs to cause the application to process a crafted MJPEG stream containing a SOF marker without a preceding SOI marker. The supplied stream can cause a stale raw_image_buffer pointer to be passed to a hardware-acceleration decoder.

3

What is the practical impact?

Successful triggering can crash the application or expose heap contents through reads from freed buffers. The CVSS vector indicates local attack access, high attack complexity, no required privileges, and user interaction.

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