Heap-based buffer overflow in FFmpeg - CVE-2024-31582
Published: May 9, 2024
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 raw_block_rectangle() function of libavfilter/vf_codecview.c.. A remote attacker can pass specially crafted data to the application, trigger a heap-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Debian Linux
Fedora
Ubuntu
libpostproc55 (Ubuntu package)
libavfilter-extra9 (Ubuntu package)
libavcodec57 (Ubuntu package)
libavfilter9 (Ubuntu package)
libavcodec-extra57 (Ubuntu package)
libavformat-extra60 (Ubuntu package)
libavresample4 (Ubuntu package)
libavformat60 (Ubuntu package)
libswscale5 (Ubuntu package)
libavutil58 (Ubuntu package)
libswresample3 (Ubuntu package)
libpostproc57 (Ubuntu package)
libavdevice57 (Ubuntu package)
libswresample4 (Ubuntu package)
libavutil56 (Ubuntu package)
libswscale7 (Ubuntu package)
libavformat58 (Ubuntu package)
libavcodec-extra58 (Ubuntu package)
libavcodec58 (Ubuntu package)
libavdevice58 (Ubuntu package)
libavfilter-extra7 (Ubuntu package)
libavfilter7 (Ubuntu package)
libavformat-extra (Ubuntu package)
libavformat-extra58 (Ubuntu package)
libavdevice60 (Ubuntu package)
libswscale-ffmpeg3 (Ubuntu package)
libswresample-ffmpeg1 (Ubuntu package)
libpostproc-ffmpeg53 (Ubuntu package)
libavutil-ffmpeg54 (Ubuntu package)
libavresample-ffmpeg2 (Ubuntu package)
libavformat-ffmpeg56 (Ubuntu package)
libavfilter-ffmpeg5 (Ubuntu package)
libavdevice-ffmpeg56 (Ubuntu package)
libavcodec-ffmpeg56 (Ubuntu package)
libavcodec-ffmpeg-extra56 (Ubuntu package)
libswscale4 (Ubuntu package)
libswresample2 (Ubuntu package)
libpostproc54 (Ubuntu package)
libavutil55 (Ubuntu package)
libavresample3 (Ubuntu package)
ffmpeg (Ubuntu package)
libavformat57 (Ubuntu package)
libavcodec-extra60 (Ubuntu package)
libavfilter6 (Ubuntu package)
libavcodec60 (Ubuntu package)
libavfilter-extra6 (Ubuntu package)
ffmpeg (Debian package)
chromium
How to mitigate CVE-2024-31582
libavfilter-extra9 (Ubuntu package) - addressed in versions Ubuntu Pro, 7:6.0-6ubuntu1.1
libavcodec57 (Ubuntu package) - update to Ubuntu Pro
libavfilter9 (Ubuntu package) - addressed in versions Ubuntu Pro, 7:6.0-6ubuntu1.1
libavcodec-extra57 (Ubuntu package) - update to Ubuntu Pro
libavformat-extra60 (Ubuntu package) - addressed in versions Ubuntu Pro, 7:6.0-6ubuntu1.1
libavresample4 (Ubuntu package) - update to Ubuntu Pro
libavformat60 (Ubuntu package) - addressed in versions Ubuntu Pro, 7:6.0-6ubuntu1.1
libswscale5 (Ubuntu package) - update to Ubuntu Pro
libavutil58 (Ubuntu package) - addressed in versions Ubuntu Pro, 7:6.0-6ubuntu1.1
libswresample3 (Ubuntu package) - update to Ubuntu Pro
libpostproc57 (Ubuntu package) - addressed in versions Ubuntu Pro, 7:6.0-6ubuntu1.1
libavdevice57 (Ubuntu package) - update to Ubuntu Pro
libswresample4 (Ubuntu package) - addressed in versions Ubuntu Pro, 7:6.0-6ubuntu1.1
libavutil56 (Ubuntu package) - update to Ubuntu Pro
libswscale7 (Ubuntu package) - addressed in versions Ubuntu Pro, 7:6.0-6ubuntu1.1
libavformat58 (Ubuntu package) - update to Ubuntu Pro
libavcodec-extra58 (Ubuntu package) - update to Ubuntu Pro
libavcodec58 (Ubuntu package) - update to Ubuntu Pro
libavdevice58 (Ubuntu package) - update to Ubuntu Pro
libavfilter-extra7 (Ubuntu package) - update to Ubuntu Pro
libavfilter7 (Ubuntu package) - update to Ubuntu Pro
libavformat-extra (Ubuntu package) - update to Ubuntu Pro
libavformat-extra58 (Ubuntu package) - update to Ubuntu Pro
libavdevice60 (Ubuntu package) - addressed in versions Ubuntu Pro, 7:6.0-6ubuntu1.1
libswscale-ffmpeg3 (Ubuntu package) - update to Ubuntu Pro
libswresample-ffmpeg1 (Ubuntu package) - update to Ubuntu Pro
libpostproc-ffmpeg53 (Ubuntu package) - update to Ubuntu Pro
libavutil-ffmpeg54 (Ubuntu package) - update to Ubuntu Pro
libavresample-ffmpeg2 (Ubuntu package) - update to Ubuntu Pro
libavformat-ffmpeg56 (Ubuntu package) - update to Ubuntu Pro
libavfilter-ffmpeg5 (Ubuntu package) - update to Ubuntu Pro
libavdevice-ffmpeg56 (Ubuntu package) - update to Ubuntu Pro
libavcodec-ffmpeg56 (Ubuntu package) - update to Ubuntu Pro
libavcodec-ffmpeg-extra56 (Ubuntu package) - update to Ubuntu Pro
libswscale4 (Ubuntu package) - update to Ubuntu Pro
libswresample2 (Ubuntu package) - update to Ubuntu Pro
libpostproc54 (Ubuntu package) - update to Ubuntu Pro
libavutil55 (Ubuntu package) - update to Ubuntu Pro
libavresample3 (Ubuntu package) - update to Ubuntu Pro
ffmpeg (Ubuntu package) - addressed in versions Ubuntu Pro, 7:6.0-6ubuntu1.1
libavformat57 (Ubuntu package) - update to Ubuntu Pro
libavcodec-extra60 (Ubuntu package) - addressed in versions Ubuntu Pro, 7:6.0-6ubuntu1.1
libavfilter6 (Ubuntu package) - update to Ubuntu Pro
libavcodec60 (Ubuntu package) - addressed in versions Ubuntu Pro, 7:6.0-6ubuntu1.1
libavfilter-extra6 (Ubuntu package) - update to Ubuntu Pro
ffmpeg (Debian package) - update to 7:5.1.7-0+deb12u1
chromium - addressed in versions 124.0.6367.78-1.el9, 124.0.6367.91-1.el9, 124.0.6367.118-1.el9, 124.0.6367.118-2.el8, 124.0.6367.155-1.el8, 124.0.6367.155-1.el9, 124.0.6367.155-1.fc38, 124.0.6367.155-1.fc39, 124.0.6367.155-1.fc40, 124.0.6367.201-1.el8, 124.0.6367.201-1.el9, 124.0.6367.201-1.fc38, 125.0.6422.60-1.el8, 125.0.6422.60-1.el9, 125.0.6422.60-1.fc38, 125.0.6422.76-1.el8, 125.0.6422.76-1.el9
External References
Related Security Bulletins
- Multiple vulnerabilities in FFmpeg
- Fedora EPEL 9 update for chromium
- Fedora EPEL 9 update for chromium
- Fedora EPEL 9 update for chromium
- Fedora EPEL 8 update for chromium
- Fedora 39 update for chromium
- Fedora 38 update for chromium
- Fedora 40 update for chromium
- Fedora EPEL 9 update for chromium
- Fedora EPEL 8 update for chromium
- Fedora EPEL 8 update for chromium
- Fedora 38 update for chromium
- Fedora EPEL 9 update for chromium
- Fedora 38 update for chromium
- Fedora EPEL 9 update for chromium
- Fedora EPEL 8 update for chromium
- Fedora EPEL 9 update for chromium
- Fedora EPEL 8 update for chromium
- Ubuntu update for ffmpeg
- Debian update for ffmpeg