Buffer overflow xml parser
Originally disclosed on Mozilla
- Fixed in 52 days
- Paid in 3 months
- Disclosed after 52 days
User Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36
Steps to reproduce:
FF last version (last ASAN build)
http://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/mozilla-release-linux64-asan/latest/firefox-36.0.1.en-US.linux-x86_64-asan.tar.bz2
Actual results:
=================================================================
==30124==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x7fff018ba800 at pc 0x45f23c bp 0x7fffffff8970 sp 0x7fffffff8128
WRITE of size 4718532 at 0x7fff018ba800 thread T0
#0 0x45f23b (/home/user/testing/firefox/firefox+0x45f23b)
#1 0x7fffedd9dc34 (/home/user/testing/firefox/libxul.so+0x811cc34)
#2 0x7fffe86d7e4a (/home/user/testing/firefox/libxul.so+0x2a56e4a)
#3 0x7fffe86d9256 (/home/user/testing/firefox/libxul.so+0x2a58256)
#4 0x7fffe86e7c59 (/home/user/testing/firefox/libxul.so+0x2a66c59)
#5 0x7fffe86e39fd (/home/user/testing/firefox/libxul.so+0x2a629fd)
#6 0x7fffe86e8eea (/home/user/testing/firefox/libxul.so+0x2a67eea)
#7 0x7fffe73aef5d (/home/user/testing/firefox/libxul.so+0x172df5d)
#8 0x7fffe72fe02e (/home/user/testing/firefox/libxul.so+0x167d02e)
#9 0x7fffe7650ac1 (/home/user/testing/firefox/libxul.so+0x19cfac1)
#10 0x7fffe7279ab4 (/home/user/testing/firefox/libxul.so+0x15f8ab4)
#11 0x7fffe7278897 (/home/user/testing/firefox/libxul.so+0x15f7897)
#12 0x7fffe70b6a69 (/home/user/testing/firefox/libxul.so+0x1435a69)
#13 0x7fffe70e8bbf (/home/user/testing/firefox/libxul.so+0x1467bbf)
#14 0x7fffe714549a (/home/user/testing/firefox/libxul.so+0x14c449a)
#15 0x7fffe70e7b5e (/home/user/testing/firefox/libxul.so+0x1466b5e)
#16 0x7fffe70f3210 (/home/user/testing/firefox/libxul.so+0x1472210)
#17 0x7fffe70e8bbf (/home/user/testing/firefox/libxul.so+0x1467bbf)
#18 0x7fffe714549a (/home/user/testing/firefox/libxul.so+0x14c449a)
#19 0x7fffe70e7b5e (/home/user/testing/firefox/libxul.so+0x1466b5e)
#20 0x7fffe70f3210 (/home/user/testing/firefox/libxul.so+0x1472210)
#21 0x7fffe70e8bbf (/home/user/testing/firefox/libxul.so+0x1467bbf)
#22 0x7fffe714549a (/home/user/testing/firefox/libxul.so+0x14c449a)
#23 0x7fffe70e7b5e (/home/user/testing/firefox/libxul.so+0x1466b5e)
#24 0x7fffe70f3210 (/home/user/testing/firefox/libxul.so+0x1472210)
#25 0x7fffe70e8bbf (/home/user/testing/firefox/libxul.so+0x1467bbf)
#26 0x7fffe714549a (/home/user/testing/firefox/libxul.so+0x14c449a)
#27 0x7fffe70e7b5e (/home/user/testing/firefox/libxul.so+0x1466b5e)
#28 0x7fffe70f3210 (/home/user/testing/firefox/libxul.so+0x1472210)
#29 0x7fffe70e8bbf (/home/user/testing/firefox/libxul.so+0x1467bbf)
#30 0x7fffe714549a (/home/user/testing/firefox/libxul.so+0x14c449a)
#31 0x7fffe70e7b5e (/home/user/testing/firefox/libxul.so+0x1466b5e)
#32 0x7fffe70f3210 (/home/user/testing/firefox/libxul.so+0x1472210)
#33 0x7fffe70e8bbf (/home/user/testing/firefox/libxul.so+0x1467bbf)
#34 0x7fffe714549a (/home/user/testing/firefox/libxul.so+0x14c449a)
#35 0x7fffe70e7b5e (/home/user/testing/firefox/libxul.so+0x1466b5e)
#36 0x7fffe70f3210 (/home/user/testing/firefox/libxul.so+0x1472210)
#37 0x7fffe70e8bbf (/home/user/testing/firefox/libxul.so+0x1467bbf)
#38 0x7fffe714549a (/home/user/testing/firefox/libxul.so+0x14c449a)
#39 0x7fffe70e7b5e (/home/user/testing/firefox/libxul.so+0x1466b5e)
#40 0x7fffe70f3210 (/home/user/testing/firefox/libxul.so+0x1472210)
#41 0x7fffe70e8bbf (/home/user/testing/firefox/libxul.so+0x1467bbf)
#42 0x7fffe714549a (/home/user/testing/firefox/libxul.so+0x14c449a)
#43 0x7fffe7949d99 (/home/user/testing/firefox/libxul.so+0x1cc8d99)
#44 0x7fffe78f8d1c (/home/user/testing/firefox/libxul.so+0x1c77d1c)
#45 0x7fffebc8ed87 (/home/user/testing/firefox/libxul.so+0x600dd87)
#46 0x7fffed667fa8 (/home/user/testing/firefox/libxul.so+0x79e6fa8)
#47 0x7fffed753d6e (/home/user/testing/firefox/libxul.so+0x7ad2d6e)
#48 0x7fffed754c93 (/home/user/testing/firefox/libxul.so+0x7ad3c93)
#49 0x7fffed755b0d (/home/user/testing/firefox/libxul.so+0x7ad4b0d)
#50 0x48a2fa (/home/user/testing/firefox/firefox+0x48a2fa)
#51 0x7ffff6c0076c (/lib/x86_64-linux-gnu/libc.so.6+0x2176c)
#52 0x48975c (/home/user/testing/firefox/firefox+0x48975c)
0x7fff018ba800 is located 0 bytes to the right of 2147237888-byte region [0x7ffe818f6800,0x7fff018ba800)
allocated by thread T0 here:
#0 0x471d71 (/home/user/testing/firefox/firefox+0x471d71)
#1 0x7fffedd9ed25 (/home/user/testing/firefox/libxul.so+0x811dd25)
#2 0x7fffedd9db81 (/home/user/testing/firefox/libxul.so+0x811cb81)
#3 0x7fffe86d7e4a (/home/user/testing/firefox/libxul.so+0x2a56e4a)
#4 0x7fffe86d9256 (/home/user/testing/firefox/libxul.so+0x2a58256)
#5 0x7fffe86e7c59 (/home/user/testing/firefox/libxul.so+0x2a66c59)
#6 0x7fffe86e39fd (/home/user/testing/firefox/libxul.so+0x2a629fd)
#7 0x7fffe86e8eea (/home/user/testing/firefox/libxul.so+0x2a67eea)
#8 0x7fffe73aef5d (/home/user/testing/firefox/libxul.so+0x172df5d)
#9 0x7fffe72fe02e (/home/user/testing/firefox/libxul.so+0x167d02e)
#10 0x7fffe7650ac1 (/home/user/testing/firefox/libxul.so+0x19cfac1)
#11 0x7fffe7279ab4 (/home/user/testing/firefox/libxul.so+0x15f8ab4)
#12 0x7fffe7278897 (/home/user/testing/firefox/libxul.so+0x15f7897)
#13 0x7fffe70b6a69 (/home/user/testing/firefox/libxul.so+0x1435a69)
#14 0x7fffe70e8bbf (/home/user/testing/firefox/libxul.so+0x1467bbf)
#15 0x7fffe714549a (/home/user/testing/firefox/libxul.so+0x14c449a)
#16 0x7fffe7949d99 (/home/user/testing/firefox/libxul.so+0x1cc8d99)
#17 0x7fffe78f8d1c (/home/user/testing/firefox/libxul.so+0x1c77d1c)
#18 0x7fffebc8ed87 (/home/user/testing/firefox/libxul.so+0x600dd87)
#19 0x7fffed667fa8 (/home/user/testing/firefox/libxul.so+0x79e6fa8)
#20 0x7fffed753d6e (/home/user/testing/firefox/libxul.so+0x7ad2d6e)
#21 0x7fffed754c93 (/home/user/testing/firefox/libxul.so+0x7ad3c93)
#22 0x7fffed755b0d (/home/user/testing/firefox/libxul.so+0x7ad4b0d)
#23 0x48a2fa (/home/user/testing/firefox/firefox+0x48a2fa)
#24 0x7ffff6c0076c (/lib/x86_64-linux-gnu/libc.so.6+0x2176c)
SUMMARY: AddressSanitizer: heap-buffer-overflow ??:0 ??
Shadow bytes around the buggy address:
0x10006030f4b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10006030f4c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10006030f4d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10006030f4e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x10006030f4f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x10006030f500:[fa]fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x10006030f510: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x10006030f520: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x10006030f530: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x10006030f540: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x10006030f550: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Heap right redzone: fb
Freed heap region: fd
Sta==30124==ABORTING
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 XML. Mozilla made it public on 27 April 2015 as CVE-2015-2716.
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.