Overview
| Artifact ID: | 4e746a2f010416b36744b2812ea4dd3235358e79 |
|---|---|
| Ticket: | d59715d0cffb0b86427b164188c95f2a06d88c17
Use-after-free in Tcl_DStringAppend |
| User & Date: | acpime on 2016-06-19 08:21:26 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
I discovered UAF in the Python tkinter module. python bug: http://bugs.python.org/issue27254 Asan report. ================================================================= ==20559==ERROR: AddressSanitizer: heap-use-after-free on address 0x7fa46bec8810 at pc 0x4665ea bp 0x7ffd34fb4060 sp 0x7ffd34fb3820 READ of size 1048575 at 0x7fa46bec8810 thread T0 ==20559==WARNING: Trying to symbolize code, but external symbolizer is not initialized! #0 0x4665e9 (/home/eminus/Downloads/Python-2.7.11/python+0x4665e9) #1 0x7fa46f507e18 (/usr/lib/x86_64-linux-gnu/libtcl8.6.so+0x116e18) #2 0x7fa46f7eb44e (/usr/lib/x86_64-linux-gnu/libtk8.6.so+0x6244e) #3 0x7fa46fb1ae4c (/home/eminus/Downloads/Python-2.7.11/build/lib.linux-x86_64-2.7/_tkinter.so+0x19e4c) #4 0x7fa46fb0bfc5 (/home/eminus/Downloads/Python-2.7.11/build/lib.linux-x86_64-2.7/_tkinter.so+0xafc5) #5 0x5e1813 (/home/eminus/Downloads/Python-2.7.11/python+0x5e1813) #6 0x5d319c (/home/eminus/Downloads/Python-2.7.11/python+0x5d319c) #7 0x721353 (/home/eminus/Downloads/Python-2.7.11/python+0x721353) #8 0x4acb2a (/home/eminus/Downloads/Python-2.7.11/python+0x4acb2a) #9 0x4b6c62 (/home/eminus/Downloads/Python-2.7.11/python+0x4b6c62) #10 0x4acb2a (/home/eminus/Downloads/Python-2.7.11/python+0x4acb2a) #11 0x5f0823 (/home/eminus/Downloads/Python-2.7.11/python+0x5f0823) #12 0x4b0a08 (/home/eminus/Downloads/Python-2.7.11/python+0x4b0a08) #13 0x4acb2a (/home/eminus/Downloads/Python-2.7.11/python+0x4acb2a) #14 0x5e2d19 (/home/eminus/Downloads/Python-2.7.11/python+0x5e2d19) #15 0x5d319c (/home/eminus/Downloads/Python-2.7.11/python+0x5d319c) #16 0x5d2041 (/home/eminus/Downloads/Python-2.7.11/python+0x5d2041) #17 0x660980 (/home/eminus/Downloads/Python-2.7.11/python+0x660980) #18 0x65fc8a (/home/eminus/Downloads/Python-2.7.11/python+0x65fc8a) #19 0x48e46c (/home/eminus/Downloads/Python-2.7.11/python+0x48e46c) #20 0x7fa4727edec4 (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4) #21 0x48c5bc (/home/eminus/Downloads/Python-2.7.11/python+0x48c5bc) 0x7fa46bec8810 is located 16 bytes inside of 2097166-byte region [0x7fa46bec8800,0x7fa46c0c880e) freed by thread T0 here: #0 0x4766d3 (/home/eminus/Downloads/Python-2.7.11/python+0x4766d3) #1 0x7fa46f4ff52d (/usr/lib/x86_64-linux-gnu/libtcl8.6.so+0x10e52d) previously allocated by thread T0 here: #0 0x4764d9 (/home/eminus/Downloads/Python-2.7.11/python+0x4764d9) #1 0x7fa46f4ff0cc (/usr/lib/x86_64-linux-gnu/libtcl8.6.so+0x10e0cc) SUMMARY: AddressSanitizer: heap-use-after-free ??:0 ?? Shadow bytes around the buggy address: 0x0ff50d7d10b0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0ff50d7d10c0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0ff50d7d10d0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0ff50d7d10e0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa 0x0ff50d7d10f0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa =>0x0ff50d7d1100: fd fd[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0ff50d7d1110: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0ff50d7d1120: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0ff50d7d1130: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0ff50d7d1140: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0ff50d7d1150: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 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 Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack partial redzone: f4 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 ASan internal: fe ==20559==ABORTING - foundin changed to: "8.6"
- is_private changed to: "0"
- login: "acpime"
- priority changed to: "5 Medium"
- private_contact changed to: "a7f20d7eb12903ef82a40e2c72b12e66a013c422"
- resolution changed to: "None"
- severity changed to: "Critical"
- status changed to: "Open"
- submitter changed to: "acpime"
- subsystem changed to: "41. Memory Allocation"
- title changed to: "Use-after-free in Tcl_DStringAppend"
- type changed to: "Bug"