GNOME Bugzilla – Bug 777262
riff-media: floating point exception in gst_riff_create_audio_caps
Last modified: 2017-02-14 06:21:00 UTC
Created attachment 343488 [details] fpe poc Attached file will crash gstreamer with a floating point exception.
asan stack trace: ==2291==ERROR: AddressSanitizer: FPE on unknown address 0x7f7aa1563af2 (pc 0x7f7aa1563af2 bp 0x7f7aa154b060 sp 0x7f7aa154aec0 T2) #0 0x7f7aa1563af1 in gst_riff_create_audio_caps /f/gstreamer/gst-plugins-base/gst-libs/gst/riff/riff-media.c:1620:30 #1 0x7f7aa17fceed in gst_avi_demux_parse_stream /f/gstreamer/gst-plugins-good/gst/avi/gstavidemux.c:2334:14 #2 0x7f7aa17ec818 in gst_avi_demux_stream_header_pull /f/gstreamer/gst-plugins-good/gst/avi/gstavidemux.c:4063:19 #3 0x7f7aa17e6786 in gst_avi_demux_loop /f/gstreamer/gst-plugins-good/gst/avi/gstavidemux.c:5687:13 #4 0x7f7aaea938b3 in gst_task_func /f/gstreamer/gstreamer/gst/gsttask.c:334:5 #5 0x7f7aadc90b2d in g_thread_pool_thread_proxy /var/tmp/portage/dev-libs/glib-2.50.2/work/glib-2.50.2/glib/gthreadpool.c:307 #6 0x7f7aadc90154 in g_thread_proxy /var/tmp/portage/dev-libs/glib-2.50.2/work/glib-2.50.2/glib/gthread.c:784 #7 0x7f7aad70e453 in start_thread (/lib64/libpthread.so.0+0x7453) #8 0x7f7aad23e5dc in clone (/lib64/libc.so.6+0xe75dc) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: FPE /f/gstreamer/gst-plugins-base/gst-libs/gst/riff/riff-media.c:1620:30 in gst_riff_create_audio_caps Thread T2 (avidemux0:sink) created by T1 (typefind:sink) here: #0 0x42df2d in __interceptor_pthread_create (/usr/bin/gst-discoverer-1.0+0x42df2d) #1 0x7f7aadcad1bf in g_system_thread_new /var/tmp/portage/dev-libs/glib-2.50.2/work/glib-2.50.2/glib/gthread-posix.c:1170 Thread T1 (typefind:sink) created by T0 here: #0 0x42df2d in __interceptor_pthread_create (/usr/bin/gst-discoverer-1.0+0x42df2d) #1 0x7f7aadcad1bf in g_system_thread_new /var/tmp/portage/dev-libs/glib-2.50.2/work/glib-2.50.2/glib/gthread-posix.c:1170 ==2291==ABORTING
commit 81d3ba3fa212bb25fe2ac661993887c4b69af6f1 Author: Sebastian Dröge <sebastian@centricular.com> Date: Sun Jan 15 18:31:56 2017 +0100 riff-media: Check for valid channels/rate before using the values Otherwise we might divide by zero or otherwise create invalid caps. https://bugzilla.gnome.org/show_bug.cgi?id=777262
This is CVE-2017-5837