CVE-2026-125255
Received Received - Intake

Heap Use-After-Free in FFmpeg MJPEG Decoder

Vulnerability report for CVE-2026-125255, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-09

Last updated on: 2026-11-09

Assigner: VulnCheck

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-09
Last Modified
2026-11-09
Generated
2026-11-10
AI Q&A
2026-11-09
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
FFmpeg FFmpeg From 0 (inc) to 9.0.2 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-416 The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a use-after-free issue in FFmpeg through version 9.0.2. It occurs in the libavcodec/mjpegdec.c component when processing MJPEG streams. Attackers can exploit it by sending a crafted stream with a SOF marker without a preceding SOI marker. This causes the function ff_mjpeg_decode_sof() to pass a stale raw_image_buffer pointer to hardware accelerators like NVDEC, leading to crashes or heap content leaks.

Detection Guidance

To detect this vulnerability, monitor FFmpeg applications for crashes when processing MJPEG streams. Check logs for errors related to libavcodec/mjpegdec.c or hardware-accelerated decoders like NVDEC. Use network traffic analysis tools to inspect for malformed MJPEG streams with SOF markers lacking preceding SOI markers.

Impact Analysis

This vulnerability can impact users by causing applications to crash when processing malicious MJPEG streams. It may also lead to information disclosure if heap memory contents are leaked. Attackers could exploit this to execute arbitrary code or gain unauthorized access to sensitive data.

Compliance Impact

This vulnerability could potentially impact compliance with GDPR and HIPAA by enabling unauthorized access to memory contents through heap leaks or application crashes. Exploitation may lead to exposure of sensitive data processed by affected applications, violating confidentiality requirements under these regulations.

Mitigation Strategies

Update FFmpeg to version 9.0.3 or later to address the use after free vulnerability in libavcodec/mjpegdec.c.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-125255. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...