---
id: "CVE-2026-125216"
page: "https://infrastack.ai/live/CVE-2026-125216"
kind: "vulnerability"
aliases: ["CVE-2026-125216"]
title: "FFmpeg: crafted 12-bit RGB image crashes DPX encoding with a NULL pointer"
severity: "medium"
cvss: 6.8
epss: null
exploited: false
status: "open"
category: "runtime"
products: []
ecosystems: []
tags: ["ffmpeg", "media-processing", "runtime", "self-hosted"]
not_affected_if: ["no-dpx-output", "no-untrusted-input"]
published_at: "2026-11-09T19:16:58+00:00"
first_seen_at: "2026-11-09T19:28:19+00:00"
updated_at: "2026-11-09T19:31:25+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-125216", "first_seen_at": "2026-11-09T19:28:19+00:00"}]
exploit_sources: []
---

# FFmpeg: crafted 12-bit RGB image crashes DPX encoding with a NULL pointer

Link for people: https://infrastack.ai/live/CVE-2026-125216 (this .md is for agents)

FFmpeg's DPX encoder in libavcodec/dpxenc.c dereferences a NULL plane pointer when it transcodes a 12-bit RGB image, because bits_per_raw_sample is not validated for RGB48 input. An attacker who supplies such an image can crash the process, causing denial of service.

_Summary, check and fix written by a model from the sources; labelled as such._

## Timeline

- 2026-11-09T19:28:19+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-125216

## Documents

- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-dpx-encoder-null-pointer-dereference-via-encode-gbrp12
- [fix] Patch: github.com https://github.com/FFmpeg/FFmpeg/commit/aa5fd7d287db4f469fdcbe444f7f9f38c8c289c7

## From the sources

FFmpeg through 9.0.2 contains a NULL pointer dereference vulnerability in libavcodec/dpxenc.c that allows attackers to crash the process via unvalidated bits_per_raw_sample for RGB48 input. Attackers can supply a 12-bit RGB image, such as JPEG 2000, that when transcoded to DPX selects encode_gbrp12() and dereferences NULL plane pointers, causing denial of service.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
