CVE-2025-25473
Medium · 5.3CVSS
5.3
EPSS
0.4%
Published
Feb 18, 2025
CISA due date
—
Cloudanix analysis
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
- Identify a target application using vulnerable FFmpeg version
- Craft input that triggers repeated context allocation and freeing
- Monitor for memory growth in the process
- 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
- CVE-2025-9951 A heap-buffer-overflow write exists in jpeg2000dec FFmpeg which allows an attacker to… Also affects ffmpeg
- CVE-2025-1594 A vulnerability, which was classified as critical, was found in FFmpeg up to 7.1. Also affects ffmpeg
- CVE-2025-22919 A reachable assertion in FFmpeg git-master commit N-113007-g8d24a28d06 allows attackers… Also affects ffmpeg
- CVE-2025-22921 FFmpeg git-master,N-113007-g8d24a28d06 was discovered to contain a segmentation violation… Also affects ffmpeg
- CVE-2025-0518 Unchecked Return Value, Out-of-bounds Read vulnerability in FFmpeg allows Read Sensitive… Also affects ffmpeg
- CVE-2023-6601 A flaw was found in FFmpeg's HLS demuxer. Also affects ffmpeg
- CVE-2023-6604 A flaw was found in FFmpeg. Also affects ffmpeg
- CVE-2023-6605 A flaw was found in FFmpeg's DASH playlist support. Also affects ffmpeg