Double free in FFmpeg - CVE-2024-35365

 

Double free in FFmpeg - CVE-2024-35365

Published: January 24, 2025


Vulnerability identifier: #VU103288
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-35365
CWE-ID: CWE-415
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the new_stream_audio() function in fftools/ffmpeg_mux_init.c. A remote attacker can pass specially crafted data to the application, trigger double free error and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

FFmpeg
SUSE Linux Enterprise Server 15 SP3
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise Workstation Extension 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Desktop 15
SUSE Enterprise Storage
Desktop Applications Module
SUSE Package Hub 15
openSUSE Leap
Ubuntu
openEuler
ffmpeg (Ubuntu package)
libpostproc54
libswscale4
libavdevice-devel
libswresample2
libavcodec57
libavdevice57
libavformat57
libavfilter6-debuginfo
ffmpeg-private-devel
libavfilter6
libavformat-devel
libavformat57-debuginfo
libpostproc54-32bit
libavdevice57-32bit-debuginfo
libavresample3-32bit
libavcodec57-32bit-debuginfo
libavfilter6-32bit
libavutil55-32bit-debuginfo
libavformat57-32bit-debuginfo
libswresample2-32bit
libavformat57-32bit
libswresample2-32bit-debuginfo
libpostproc54-32bit-debuginfo
libavdevice57-32bit
libavresample3-32bit-debuginfo
libavutil55-32bit
libswscale4-32bit
libavfilter6-32bit-debuginfo
libswscale4-32bit-debuginfo
libavcodec57-32bit
libavfilter-devel
libpostproc54-debuginfo
libswscale4-debuginfo
libswresample-devel
libavutil-devel
ffmpeg
libpostproc-devel
ffmpeg-debugsource
ffmpeg-debuginfo
libswresample2-debuginfo
libavresample3-debuginfo
libavutil55
libavcodec-devel
libavdevice57-debuginfo
libavresample3
libavutil55-debuginfo
libavresample-devel
libavcodec57-debuginfo
libswscale-devel
ffmpeg-devel
ffmpeg-libs
libavdevice

How to mitigate CVE-2024-35365

Install updates from vendor's website.

FFmpeg - update to 7.0
ffmpeg (Ubuntu package) - addressed in versions 7:2.8.17-0ubuntu0.1+esm12, 7:3.4.11-0ubuntu0.1+esm10, 7:4.2.7-0ubuntu0.1+esm10, 7:4.4.2-0ubuntu0.22.04.1+esm9, 7:6.1.1-3ubuntu5+esm5
libpostproc54 - update to 3.4.2-150200.11.60.1
libswscale4 - update to 3.4.2-150200.11.60.1
libavdevice-devel - update to 3.4.2-150200.11.60.1
libswresample2 - update to 3.4.2-150200.11.60.1
libavcodec57 - update to 3.4.2-150200.11.60.1
libavdevice57 - update to 3.4.2-150200.11.60.1
libavformat57 - update to 3.4.2-150200.11.60.1
libavfilter6-debuginfo - update to 3.4.2-150200.11.60.1
ffmpeg-private-devel - update to 3.4.2-150200.11.60.1
libavfilter6 - update to 3.4.2-150200.11.60.1
libavformat-devel - update to 3.4.2-150200.11.60.1
libavformat57-debuginfo - update to 3.4.2-150200.11.60.1
libpostproc54-32bit - update to 3.4.2-150200.11.60.1
libavdevice57-32bit-debuginfo - update to 3.4.2-150200.11.60.1
libavresample3-32bit - update to 3.4.2-150200.11.60.1
libavcodec57-32bit-debuginfo - update to 3.4.2-150200.11.60.1
libavfilter6-32bit - update to 3.4.2-150200.11.60.1
libavutil55-32bit-debuginfo - update to 3.4.2-150200.11.60.1
libavformat57-32bit-debuginfo - update to 3.4.2-150200.11.60.1
libswresample2-32bit - update to 3.4.2-150200.11.60.1
libavformat57-32bit - update to 3.4.2-150200.11.60.1
libswresample2-32bit-debuginfo - update to 3.4.2-150200.11.60.1
libpostproc54-32bit-debuginfo - update to 3.4.2-150200.11.60.1
libavdevice57-32bit - update to 3.4.2-150200.11.60.1
libavresample3-32bit-debuginfo - update to 3.4.2-150200.11.60.1
libavutil55-32bit - update to 3.4.2-150200.11.60.1
libswscale4-32bit - update to 3.4.2-150200.11.60.1
libavfilter6-32bit-debuginfo - update to 3.4.2-150200.11.60.1
libswscale4-32bit-debuginfo - update to 3.4.2-150200.11.60.1
libavcodec57-32bit - update to 3.4.2-150200.11.60.1
libavfilter-devel - update to 3.4.2-150200.11.60.1
libpostproc54-debuginfo - update to 3.4.2-150200.11.60.1
libswscale4-debuginfo - update to 3.4.2-150200.11.60.1
libswresample-devel - update to 3.4.2-150200.11.60.1
libavutil-devel - update to 3.4.2-150200.11.60.1
ffmpeg - update to 3.4.2-150200.11.60.1
libpostproc-devel - update to 3.4.2-150200.11.60.1
ffmpeg-debugsource - update to 3.4.2-150200.11.60.1
ffmpeg-debuginfo - update to 3.4.2-150200.11.60.1
libswresample2-debuginfo - update to 3.4.2-150200.11.60.1
libavresample3-debuginfo - update to 3.4.2-150200.11.60.1
libavutil55 - update to 3.4.2-150200.11.60.1
libavcodec-devel - update to 3.4.2-150200.11.60.1
libavdevice57-debuginfo - update to 3.4.2-150200.11.60.1
libavresample3 - update to 3.4.2-150200.11.60.1
libavutil55-debuginfo - update to 3.4.2-150200.11.60.1
libavresample-devel - update to 3.4.2-150200.11.60.1
libavcodec57-debuginfo - update to 3.4.2-150200.11.60.1
libswscale-devel - update to 3.4.2-150200.11.60.1
ffmpeg-debuginfo - update to 6.1.1-20
ffmpeg-debugsource - update to 6.1.1-20
ffmpeg-devel - update to 6.1.1-20
ffmpeg-libs - update to 6.1.1-20
libavdevice - update to 6.1.1-20
ffmpeg - update to 6.1.1-20

External References

Related Security Bulletins