Skip to content
Memory corruption Disclosed report

heap-buffer-overflow at GetFilterOffsetAndLength

Aki Helin Follow

Originally disclosed on Mozilla

Critical View original
  • Fixed in 4 months
  • Paid in 4 months
  • Disclosed after 4 months
Text
Created attachment 8665483
ff-bofr-getfilter.html

Opening the attached page causes a heap buffer overflow to occur. Tested in current and a few older tinderbox asan builds in 64-bit Linux.

==30750==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60300009167c at pc 0x7fb955beda11 bp 0x7fb93a9f0cc0 sp 0x7fb93a9f0cb8
READ of size 4 at 0x60300009167c thread T18 (ImgDecoder #1)
    #0 0x7fb955beda10 in GetFilterOffsetAndLength /builds/slave/m-cen-l64-asan-000000000000000/build/src/gfx/2d/convolver.h:120
    #1 0x7fb955beda10 in CommitRow /builds/slave/m-cen-l64-asan-000000000000000/build/src/image/Downscaler.cpp:170
    #2 0x7fb955c55beb in OutputScanlines /builds/slave/m-cen-l64-asan-000000000000000/build/src/image/decoders/nsJPEGDecoder.cpp:627
    #3 0x7fb955c54291 in WriteInternal /builds/slave/m-cen-l64-asan-000000000000000/build/src/image/decoders/nsJPEGDecoder.cpp:501
    #4 0x7fb955be9242 in Write /builds/slave/m-cen-l64-asan-000000000000000/build/src/image/Decoder.cpp:183
    #5 0x7fb955be74fc in Decode /builds/slave/m-cen-l64-asan-000000000000000/build/src/image/Decoder.cpp:128
    #6 0x7fb955be6f22 in Decode /builds/slave/m-cen-l64-asan-000000000000000/build/src/image/DecodePool.cpp:453
    #7 0x7fb955c097cc in Run /builds/slave/m-cen-l64-asan-000000000000000/build/src/image/DecodePool.cpp:282
    #8 0x7fb953bc8fef in ProcessNextEvent /builds/slave/m-cen-l64-asan-000000000000000/build/src/xpcom/threads/nsThread.cpp:960
    #9 0x7fb953c420aa in NS_ProcessNextEvent /builds/slave/m-cen-l64-asan-000000000000000/build/src/xpcom/glue/nsThreadUtils.cpp:277
    #10 0x7fb9544dd57f in Run /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/glue/MessagePump.cpp:326
    #11 0x7fb95444a4fc in RunInternal /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/chromium/src/base/message_loop.cc:234
    #12 0x7fb95444a4fc in RunHandler /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/chromium/src/base/message_loop.cc:227
    #13 0x7fb95444a4fc in Run /builds/slave/m-cen-l64-asan-000000000000000/build/src/ipc/chromium/src/base/message_loop.cc:201
    #14 0x7fb953bc4d60 in ThreadFunc /builds/slave/m-cen-l64-asan-000000000000000/build/src/xpcom/threads/nsThread.cpp:382
    #15 0x7fb9610074b5 in _pt_root /builds/slave/m-cen-l64-asan-000000000000000/build/src/nsprpub/pr/src/pthreads/ptthread.c:212
    #16 0x7fb961646181 in start_thread /build/buildd/eglibc-2.19/nptl/pthread_create.c:312 (discriminator 2)
    #17 0x7fb95165847c in clone /build/buildd/eglibc-2.19/misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:111
[...]

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 critical-severity memory corruption bug in Graphics: ImageLib. Mozilla made it public on 22 January 2016.

About Memory corruption

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

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

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

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

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.