CVE-2025-71476: 
Ffmpeg vulnerability analysis and mitigation

Overview

CVE-2025-71476 is a NULL pointer dereference vulnerability in FFmpeg's HEVC decoder that causes denial of service when processing crafted video streams. The flaw exists in decode_slice() within libavcodec/hevc/hevcdec.c, where a stale slice_initialized flag is left set after early returns, allowing dependent slice segments to decode against inconsistent state and crash hls_prediction_unit(). It affects FFmpeg versions 7.1 through 8.0.x (fixed in 8.1). The vulnerability carries a CVSS v3.1 score of 5.5 (Medium) and a CVSS v4.0 score of 6.8 (Medium) (Github Advisory, Feedly).

Technical details

The root cause is classified as CWE-476 (NULL Pointer Dereference). In the vulnerable code path, decode_slice() calls hls_slice_header() and only resets s->slice_initialized to 0 on failure of that specific function. If decode_slice() returns early for any other reason before decode_slice_data() is called to reinitialize the decoder context, the slice_initialized flag remains set, falsely indicating a valid prior slice. A subsequent dependent slice segment then proceeds to use this inconsistent state, triggering a NULL pointer dereference (segmentation fault) in hls_prediction_unit(). The fix, applied in commit 76827a6, moves the s->slice_initialized = 0 assignment to immediately after hls_slice_header() is called — regardless of success or failure — ensuring the flag is always cleared until the context is fully reinitialized (FFmpeg Commit, Github Advisory).

Impact

Successful exploitation results in a crash of the FFmpeg decoder process, causing a denial of service. There is no impact on confidentiality or integrity — the vulnerability is limited to availability. Any application or service that uses FFmpeg 7.1–8.0.x to process untrusted or user-supplied HEVC video content is at risk, including media servers, transcoding pipelines, and video players (Github Advisory, Feedly).

Exploitability

There is no known public proof-of-concept exploit and no evidence of in-the-wild exploitation at the time of disclosure. The vulnerability requires user interaction (a user or process must open/process the crafted HEVC file) and has a local attack vector, limiting its exploitability. The EPSS score is 0.0, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog (Github Advisory, Feedly).

Exploitation steps

  1. Craft a malicious HEVC stream: Create a specially crafted HEVC video file containing a sequence where an initial slice segment causes decode_slice() to return early (after hls_slice_header() succeeds but before decode_slice_data() completes), leaving slice_initialized set to a non-zero value in an inconsistent state.
  2. Embed a dependent slice segment: Follow the malformed initial slice with a dependent slice segment in the same bitstream. The dependent slice will pass the slice_initialized check in hls_slice_header() and proceed to decode using the corrupted context.
  3. Deliver the file to the target: Provide the crafted HEVC file to a victim system running a vulnerable FFmpeg version (7.1–8.0.x) — for example, via a web upload, email attachment, or media share — requiring the user or an automated process to open or transcode the file.
  4. Trigger the crash: When FFmpeg processes the dependent slice segment against the inconsistent decoder state, hls_prediction_unit() dereferences a NULL pointer, causing a segmentation fault and crashing the FFmpeg process (FFmpeg Commit, Github Advisory).

Indicators of compromise

  • Process: Unexpected termination (segmentation fault / SIGSEGV) of the FFmpeg process or any application embedding libavcodec while processing HEVC video content.
  • Logs: Crash reports or core dumps referencing hls_prediction_unit() or decode_slice() in libavcodec/hevc/hevcdec.c; error messages such as "Independent slice segment missing." in FFmpeg output logs prior to a crash.
  • File System: Presence of crafted .hevc, .mp4, .mkv, or .ts files with unusual or malformed HEVC slice structures in directories processed by FFmpeg-based services.

Mitigation and workarounds

The primary remediation is to upgrade FFmpeg to version 8.1 or later, which includes the fix in commit 76827a6 (FFmpeg Release n8.1). As a workaround where upgrading is not immediately possible, restrict FFmpeg-based services from processing untrusted or externally supplied HEVC video files, and implement input validation to reject malformed HEVC streams before they reach the decoder. Monitoring for unexpected FFmpeg process crashes can help detect exploitation attempts (Github Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Ubuntu

Unknown

bionic (esm-apps)

ffmpeg

Unknown

devel

ffmpeg

Unknown

focal (esm-apps)

ffmpeg

Unknown

jammy

ffmpeg

Unknown

jammy (esm-apps)

ffmpeg

Unknown

noble

ffmpeg

Unknown

noble (esm-apps)

ffmpeg

Unknown

resolute

ffmpeg

Unknown

RHEL / CentOS

Unknown

Source: This report was generated using AI

Related Ffmpeg vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-144456MEDIUM6.8
  • Ffmpeg logoFfmpeg
  • libavdevice-free
NoYesDec 04, 2026
CVE-2025-71476MEDIUM6.8
  • Ffmpeg logoFfmpeg
  • libavutil-free-devel
NoYesNov 29, 2026
CVE-2025-71475MEDIUM6.8
  • Ffmpeg logoFfmpeg
  • ffmpeg
NoYesNov 29, 2026
CVE-2026-144455MEDIUM5.8
  • Ffmpeg logoFfmpeg
  • ffmpeg-free
NoYesDec 04, 2026
CVE-2026-137911MEDIUM5.8
  • Ffmpeg logoFfmpeg
  • libavcodec-free
NoYesNov 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management