CVE-2024-35365
Ffmpeg vulnerability analysis and mitigation

Overview

FFmpeg version n6.1.1 contains a double-free vulnerability in the fftools/ffmpegmuxinit.c component, specifically within the newstreamaudio function. The vulnerability was discovered and disclosed on January 3, 2025 (NVD, MITRE).

Technical details

The vulnerability is classified as a double-free issue (CWE-415) in the FFmpeg's audio stream initialization code. The bug occurs when the MATCHPERSTREAM_OPT macro iterates over options and prematurely sets ost->apad, leading to potential double-free scenarios when an error occurs later in the execution. The vulnerability has been assigned a CVSS v3.1 base score of 8.8 HIGH with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (NVD).

Impact

A double-free vulnerability can lead to memory corruption, potentially allowing attackers to execute arbitrary code, cause program crashes, or achieve denial of service conditions. The high CVSS score indicates significant potential impact on the confidentiality, integrity, and availability of affected systems (CISA-ADP).

Mitigation and workarounds

The vulnerability has been fixed in FFmpeg through a patch that modifies the audio stream initialization code to use a temporary variable instead of directly setting ost->apad, and only performing strdup on non-NULL strings. Users should update to the patched version of FFmpeg (GitHub Commit).

Additional resources


SourceThis report was generated using AI

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

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