Skip to content
Disclosed report

heap-buffer-overflow (read of size 100) when playing a mov (gstreamer)

Aki Helin Follow

Originally disclosed on Mozilla

  • Fixed in 3 months
  • Paid in 4 months
  • Disclosed after 3 months
Text
Created attachment 8557028
ff-bofr100.mov

Firefox seems to try to play .mov videos using GStreamer on my up-to-date Debian machines, and a heap buffer overflow can be triggered there with the included sample. This did not happen on my server edition Ubuntu machine, where Firefox just tries to download the file. I guess this still needs to be filed as a security issue in Firefox.

Is there a way to avoid calling OS-provided libraries with unprocessed data from the net? I'd definitely prefer that to be an (opt in) option.

$ dpkg -l | grep gstream | sed -e 's/  *amd64.*//'
ii  gir1.2-gstreamer-0.10                 0.10.36-1.2
ii  gstreamer0.10-ffmpeg:amd64            0.10.13-5
ii  gstreamer0.10-gconf:amd64             0.10.31-3+nmu1
ii  gstreamer0.10-plugins-bad:amd64       0.10.23-7.1+deb7u1
ii  gstreamer0.10-plugins-base:amd64      0.10.36-1.1
ii  gstreamer0.10-plugins-base-apps       0.10.36-1.1
ii  gstreamer0.10-plugins-good:amd64      0.10.31-3+nmu1
ii  gstreamer0.10-tools                   0.10.36-1.2
ii  gstreamer0.10-x:amd64                 0.10.36-1.1
ii  libgstreamer-plugins-bad0.10-0:amd64  0.10.23-7.1+deb7u1
ii  libgstreamer-plugins-base0.10-0:amd64 0.10.36-1.1
ii  libgstreamer-plugins-base0.10-dev     0.10.36-1.1
ii  libgstreamer0.10-0:amd64              0.10.36-1.2
ii  libgstreamer0.10-dev                  0.10.36-1.2
$ opt/firefox-asan-tinderbox/firefox ff-bofr100.mov
==20336==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60d00007b7ff at pc 0x460bce bp 0x7f21766be600 sp 0x7f21766be5e0
READ of size 100 at 0x60d00007b7ff thread T25 (qtdemux0:sink)
    #0 0x460bcd (/home/aki/opt/firefox-asan-tinderbox/plugin-container+0x460bcd)
    #1 0x7f218f9fe97f (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x6597f)
    #2 0x7f21772aaed8 (/usr/lib/x86_64-linux-gnu/gstreamer-0.10/libgstisomp4.so+0x19ed8)
    #3 0x7f21772b6816 (/usr/lib/x86_64-linux-gnu/gstreamer-0.10/libgstisomp4.so+0x25816)
    #4 0x7f217a7228c3 (/usr/lib/x86_64-linux-gnu/libgstreamer-0.10.so.0+0x858c3)
    #5 0x7f218fa06741 (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x6d741)
    #6 0x7f218fa05f44 (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x6cf44)
    #7 0x7f21a132cb4f (/lib/x86_64-linux-gnu/libpthread.so.0+0x6b4f)
    #8 0x7f219290e7bc (/lib/x86_64-linux-gnu/libc.so.6+0xdc7bc)

0x60d00007b7ff is located 0 bytes to the right of 143-byte region [0x60d00007b770,0x60d00007b7ff)
allocated by thread T25 (qtdemux0:sink) here:
    #0 0x472918 (/home/aki/opt/firefox-asan-tinderbox/plugin-container+0x472918)
    #1 0x7f217a6d04df (/usr/lib/x86_64-linux-gnu/libgstreamer-0.10.so.0+0x334df)

Thread T25 (qtdemux0:sink) created by T24 (Media Decode #1) here:
    #0 0x45ec55 (/home/aki/opt/firefox-asan-tinderbox/plugin-container+0x45ec55)
    #1 0x7f218fa1f92e (/lib/x86_64-linux-gnu/libglib-2.0.so.0+0x8692e)

Thread T24 (Media Decode #1) created by T23 (Media S~hine #1) here:
    #0 0x45ec55 (/home/aki/opt/firefox-asan-tinderbox/plugin-container+0x45ec55)
    #1 0x7f21a0ae3abd (/home/aki/opt/firefox-asan-tinderbox/libnspr4.so+0x64abd)
    #2 0x7f21a0ae363a (/home/aki/opt/firefox-asan-tinderbox/libnspr4.so+0x6463a)
    #3 0x7f2194b82e7b (/home/aki/opt/firefox-asan-tinderbox/libxul.so+0x1419e7b)
    #4 0x7f2194b886ec (/home/aki/opt/firefox-asan-tinderbox/libxul.so+0x141f6ec)
    #5 0x7f2194b89c08 (/home/aki/opt/firefox-asan-tinderbox/libxul.so+0x1420c08)
    #6 0x7f2194b8b349 (/home/aki/opt/firefox-asan-tinderbox/libxul.so+0x1422349)
    #7 0x7f2198cc43d4 (/home/aki/opt/firefox-asan-tinderbox/libxul.so+0x555b3d4)
    #8 0x7f2198c6d7ed (/home/aki/opt/firefox-asan-tinderbox/libxul.so+0x55047ed)
    #9 0x7f2198c76aab (/home/aki/opt/firefox-asan-tinderbox/libxul.so+0x550daab)
    #10 0x7f2198cf65d0 (/home/aki/opt/firefox-asan-tinderbox/libxul.so+0x558d5d0)
    #11 0x7f2194b8ab1a (/home/aki/opt/firefox-asan-tinderbox/libxul.so+0x1421b1a)
    #12 0x7f2194b8aecc (/home/aki/opt/firefox-asan-tinderbox/libxul.so+0x1421ecc)
[...]

The original report as published on Mozilla's Bugzilla, by Aki Helin. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A high-severity security bug in Audio/Video. Mozilla made it public on 14 May 2015.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

More by Aki Helin

View all

19 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

Same bug class and techniques, clearest first.