Cloudanix VulnDB

CVE-2025-25473

Medium · 5.3

CVSS

5.3

EPSS

0.4%

Published

Feb 18, 2025

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in media processing software can cause it to slowly use up more memory than needed, which might slow down or crash systems handling lots of video or audio files over time.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Data Tampering
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The vulnerability is a memory leak in the avformat_free_context function, which fails to properly release allocated memory resources associated with AVFormatContext structures.

Why it matters to the business

Applications using FFmpeg for media processing may experience gradual memory exhaustion, potentially leading to degraded performance or service disruptions over extended operation periods, especially in high-volume environments with many downstream dependents.

How an attack unfolds

An attacker can trigger the memory leak by causing the application to repeatedly allocate and free AVFormatContext objects through crafted media inputs or repeated media handling operations, leading to increased memory consumption without proper reclamation.

How to fix it

Update FFmpeg to the fixed commit c08d300481b8ebb846cd43a473988fdbc6793d1b or later. For GitLab Bitnami, upgrade to version 12.8.1 or newer.

How to confirm the fix worked

Verify the FFmpeg version or commit hash to ensure it includes the fix. Monitor memory usage during context operations to confirm no leaks.

Typical attack path

  1. Identify a target application using vulnerable FFmpeg version
  2. Craft input that triggers repeated context allocation and freeing
  3. Monitor for memory growth in the process
  4. Repeat operations to exhaust available resources

How to detect it

Monitor system logs and process memory metrics for unexpected increases during media processing tasks. Check application logs for repeated calls to format context functions.

What your security team should do

  • Prioritize updating FFmpeg installations to the patched version
  • Review dependent applications for FFmpeg usage and apply fixes promptly
  • Implement resource monitoring for early detection of abnormal memory growth

The record

FFmpeg git master before commit c08d30 was discovered to contain a memory leak in the avformat_free_context function in libavutil/mem.c.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 ffmpeg 0 No fix
Debian:12 ffmpeg 0 No fix
Debian:13 ffmpeg 0 No fix
Debian:14 ffmpeg 0 No fix
Mageia:9 ffmpeg 0 5.1.6-1.3.mga9
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS ffmpeg-4 0 4.4.5-150400.3.46.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS ffmpeg-4 0 4.4.5-150400.3.46.1
SUSE:Linux Enterprise Module for Package Hub 15 SP6 ffmpeg-4 0 4.4.5-150600.13.16.1
SUSE:Linux Enterprise Server 15 SP4-LTSS ffmpeg-4 0 4.4.5-150400.3.46.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP4 ffmpeg-4 0 4.4.5-150400.3.46.1
SUSE:Linux Enterprise Workstation Extension 15 SP6 ffmpeg-4 0 4.4.5-150600.13.16.1
openSUSE:Leap 15.6 ffmpeg-4 0 4.4.5-150600.13.16.1
openSUSE:Leap 16.0 ffmpeg-7 0 7.1.4-160000.1.1
openSUSE:Tumbleweed ffmpeg-4 0 4.4.5-3.1
openSUSE:Tumbleweed ffmpeg-6 0 6.1.2-3.1
openSUSE:Tumbleweed ffmpeg-7 0 7.1-3.1

Related vulnerabilities