Division by zero in FFmpeg - CVE-2019-13390

 

Division by zero in FFmpeg - CVE-2019-13390

Published: July 15, 2019 / Updated: July 12, 2020


Vulnerability identifier: #VU19183
CSH Severity: Low
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-13390
CWE-ID: CWE-369
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a divide-by-zero condition in the "adx_write_trailer" function in the "libavformat/rawenc.c" file. A remote attacker can trick the victim to open a specially crafted file and crash the affected application.

Affected software

FFmpeg
Gentoo Linux
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Server 15
SUSE CaaS Platform
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Enterprise Storage
SUSE Linux Enterprise High Performance Computing 15 SP1 LTSS
SUSE Linux Enterprise Server 15 SP1 LTSS
SUSE Linux Enterprise Realtime Extension
SUSE Linux Enterprise Workstation Extension
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Server
SUSE Linux Enterprise Module for Desktop Applications
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Desktop
openSUSE Leap
Ubuntu
ffmpeg (Alpine package)
ffmpeg (Debian package)
SUSE Linux Enterprise Module for Packagehub Subpackages
libswscale-ffmpeg3 (Ubuntu package)
ffmpeg (Ubuntu package)
libavcodec-ffmpeg-extra56 (Ubuntu package)
libavcodec-ffmpeg56 (Ubuntu package)
libavdevice-ffmpeg56 (Ubuntu package)
libavfilter-ffmpeg5 (Ubuntu package)
libavformat-ffmpeg56 (Ubuntu package)
libavresample-ffmpeg2 (Ubuntu package)
libavutil-ffmpeg54 (Ubuntu package)
libpostproc-ffmpeg53 (Ubuntu package)
libswresample-ffmpeg1 (Ubuntu package)
libavdevice57-debuginfo
libavresample-devel
libavresample3-debuginfo
libpostproc54
libavcodec57-debuginfo
libavdevice-devel
libswresample2
libswresample2-debuginfo
libavformat57-debuginfo
libswresample-devel
ffmpeg-debugsource
libswscale4
libavutil-devel
libavcodec-devel
libavfilter6
libpostproc-devel
ffmpeg-debuginfo
libavformat57
libavutil55-debuginfo
libavdevice57
libavcodec57
libavfilter6-debuginfo
libavresample3-32bit
libavfilter6-32bit-debuginfo
libswscale4-32bit
libswscale4-32bit-debuginfo
libavformat57-32bit-debuginfo
libavformat57-32bit
libavdevice57-32bit
libavcodec57-32bit-debuginfo
libswresample2-32bit-debuginfo
libavutil55-32bit-debuginfo
libpostproc54-32bit
libswscale-devel
libavcodec57-32bit
libswresample2-32bit
libavresample3-32bit-debuginfo
libpostproc54-32bit-debuginfo
libavutil55-32bit
libavdevice57-32bit-debuginfo
libavfilter6-32bit
libavformat-devel
libavfilter-devel
libavutil55
libpostproc54-debuginfo
libavresample3
libswscale4-debuginfo
ffmpeg-private-devel
ffmpeg
libavutil55 (Ubuntu package)
libavresample3 (Ubuntu package)
libavformat57 (Ubuntu package)
libavfilter6 (Ubuntu package)
libavfilter-extra6 (Ubuntu package)
libavdevice57 (Ubuntu package)
libavcodec57 (Ubuntu package)
libavcodec-extra57 (Ubuntu package)
libpostproc54 (Ubuntu package)
libswresample2 (Ubuntu package)
libswscale4 (Ubuntu package)
libswscale5 (Ubuntu package)
libswresample3 (Ubuntu package)
libpostproc55 (Ubuntu package)
libavutil56 (Ubuntu package)
libavresample4 (Ubuntu package)
libavformat58 (Ubuntu package)
libavfilter7 (Ubuntu package)
libavfilter-extra7 (Ubuntu package)
libavdevice58 (Ubuntu package)
libavcodec58 (Ubuntu package)
libavcodec-extra58 (Ubuntu package)

How to mitigate CVE-2019-13390

Install update from vendor's website.

FFmpeg - addressed in versions 3.2.15, 3.4.7, 4.0.5, 4.1.5
ffmpeg (Alpine package) - update to 4.0.6-r0
ffmpeg (Debian package) - update to 7:4.1.6-1~deb10u1
libswscale-ffmpeg3 (Ubuntu package) - update to 7:2.8.17-0ubuntu0.1
ffmpeg (Ubuntu package) - addressed in versions 7:2.8.17-0ubuntu0.1, 7:3.4.8-0ubuntu0.2, 7:4.2.4-1ubuntu0.1
libavcodec-ffmpeg-extra56 (Ubuntu package) - update to 7:2.8.17-0ubuntu0.1
libavcodec-ffmpeg56 (Ubuntu package) - update to 7:2.8.17-0ubuntu0.1
libavdevice-ffmpeg56 (Ubuntu package) - update to 7:2.8.17-0ubuntu0.1
libavfilter-ffmpeg5 (Ubuntu package) - update to 7:2.8.17-0ubuntu0.1
libavformat-ffmpeg56 (Ubuntu package) - update to 7:2.8.17-0ubuntu0.1
libavresample-ffmpeg2 (Ubuntu package) - update to 7:2.8.17-0ubuntu0.1
libavutil-ffmpeg54 (Ubuntu package) - update to 7:2.8.17-0ubuntu0.1
libpostproc-ffmpeg53 (Ubuntu package) - update to 7:2.8.17-0ubuntu0.1
libswresample-ffmpeg1 (Ubuntu package) - update to 7:2.8.17-0ubuntu0.1
libavdevice57-debuginfo - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavresample-devel - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavresample3-debuginfo - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libpostproc54 - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavcodec57-debuginfo - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavdevice-devel - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libswresample2 - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libswresample2-debuginfo - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavformat57-debuginfo - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libswresample-devel - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
ffmpeg-debugsource - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libswscale4 - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavutil-devel - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavcodec-devel - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavfilter6 - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libpostproc-devel - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
ffmpeg-debuginfo - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavformat57 - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavutil55-debuginfo - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavdevice57 - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavcodec57 - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavfilter6-debuginfo - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavresample3-32bit - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavfilter6-32bit-debuginfo - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libswscale4-32bit - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libswscale4-32bit-debuginfo - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavformat57-32bit-debuginfo - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavformat57-32bit - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavdevice57-32bit - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavcodec57-32bit-debuginfo - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libswresample2-32bit-debuginfo - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavutil55-32bit-debuginfo - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libpostproc54-32bit - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libswscale-devel - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavcodec57-32bit - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libswresample2-32bit - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavresample3-32bit-debuginfo - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libpostproc54-32bit-debuginfo - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavutil55-32bit - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavdevice57-32bit-debuginfo - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavfilter6-32bit - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavformat-devel - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavfilter-devel - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavutil55 - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libpostproc54-debuginfo - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libavresample3 - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
libswscale4-debuginfo - addressed in versions 3.4.2-150000.4.53.2, 3.4.2-150200.11.25.1
ffmpeg-private-devel - update to 3.4.2-150200.11.25.1
ffmpeg - update to 3.4.2-150200.11.25.1
libavutil55 (Ubuntu package) - update to 7:3.4.8-0ubuntu0.2
libavresample3 (Ubuntu package) - update to 7:3.4.8-0ubuntu0.2
libavformat57 (Ubuntu package) - update to 7:3.4.8-0ubuntu0.2
libavfilter6 (Ubuntu package) - update to 7:3.4.8-0ubuntu0.2
libavfilter-extra6 (Ubuntu package) - update to 7:3.4.8-0ubuntu0.2
libavdevice57 (Ubuntu package) - update to 7:3.4.8-0ubuntu0.2
libavcodec57 (Ubuntu package) - update to 7:3.4.8-0ubuntu0.2
libavcodec-extra57 (Ubuntu package) - update to 7:3.4.8-0ubuntu0.2
libpostproc54 (Ubuntu package) - update to 7:3.4.8-0ubuntu0.2
libswresample2 (Ubuntu package) - update to 7:3.4.8-0ubuntu0.2
libswscale4 (Ubuntu package) - update to 7:3.4.8-0ubuntu0.2
libswscale5 (Ubuntu package) - update to 7:4.2.4-1ubuntu0.1
libswresample3 (Ubuntu package) - update to 7:4.2.4-1ubuntu0.1
libpostproc55 (Ubuntu package) - update to 7:4.2.4-1ubuntu0.1
libavutil56 (Ubuntu package) - update to 7:4.2.4-1ubuntu0.1
libavresample4 (Ubuntu package) - update to 7:4.2.4-1ubuntu0.1
libavformat58 (Ubuntu package) - update to 7:4.2.4-1ubuntu0.1
libavfilter7 (Ubuntu package) - update to 7:4.2.4-1ubuntu0.1
libavfilter-extra7 (Ubuntu package) - update to 7:4.2.4-1ubuntu0.1
libavdevice58 (Ubuntu package) - update to 7:4.2.4-1ubuntu0.1
libavcodec58 (Ubuntu package) - update to 7:4.2.4-1ubuntu0.1
libavcodec-extra58 (Ubuntu package) - update to 7:4.2.4-1ubuntu0.1

External References

Related Security Bulletins