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.
Published: 2026-11-09
Score: 5.8 Medium
EPSS: n/a
KEV: No
Impact: Denial of Service
Action: Immediate Patch
AI Analysis

Impact

The vulnerability is a use‑after‑free in FFmpeg’s MJPEG decoding path. In libavcodec/mjpegdec.c, an attacker can send a JPEG stream that contains a SOF marker without the required SOI marker. The decoder then passes a stale raw_image_buffer pointer to hardware accelerators such as NVDEC, causing the application to read freed memory. The result is either a crash that can be triggered by any client providing a malicious stream, or an accidental disclosure of heap contents that may contain sensitive data used by the caller.

Affected Systems

Affected products are FFmpeg software versions up to and including 9.0.2. The issue is present in the default build that enables hardware‑accelerated MJPEG decoding. All users deploying FFmpeg 9.0.2 or earlier for decoding MJPEG data are potentially vulnerable. No specific sub‑releases are excluded unless the vendor explicitly back‑ported the fix.

Risk and Exploitability

The CVSS score of 5.8 reflects a moderate severity combined with the lack of remote code execution. EPSS is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting limited public exploitation so far. An attacker requires the ability to supply a crafted MJPEG stream to the ffmpeg decoder, which is a realistic scenario for media servers or any service that accepts user video input. The attack could cause denial of service or leak heap data, but it would not directly grant code execution.

Generated by OpenCVE AI on November 9, 2026 at 21:23 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade FFmpeg to version 9.0.3 or later, where the stale pointer is guarded and the bug is fixed.
  • If an upgrade cannot be performed immediately, disable MJPEG hardware acceleration for FFmpeg jobs that process untrusted input, for example by using command‑line flags or disabling the hwaccel option in the code.
  • Monitor application logs and crash reports for unexpected segmentation faults or abnormal memory access patterns, and investigate any incidents promptly.

Generated by OpenCVE AI on November 9, 2026 at 21:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 09 Nov 2026 19:30:00 +0000

Type Values Removed Values Added
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.
Title FFmpeg through 9.0.2 Use-After-Free in MJPEG Hardware-Accelerated Decoding
First Time appeared Ffmpeg
Ffmpeg ffmpeg
Weaknesses CWE-416
CPEs cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*
Vendors & Products Ffmpeg
Ffmpeg ffmpeg
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H'}

cvssV4_0

{'score': 5.8, 'vector': 'CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-09T19:11:59.708Z

Reserved: 2026-11-09T18:15:31.740Z

Link: CVE-2026-125255

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-09T20:18:11.633

Modified: 2026-11-09T20:18:11.633

Link: CVE-2026-125255

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-09T21:30:11Z

Weaknesses