New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use After Free in fcn_callconv() #6034

Closed
fumfel opened this Issue Oct 26, 2016 · 3 comments

Comments

Projects
None yet
4 participants
@fumfel
Copy link

fumfel commented Oct 26, 2016

Use After Free in fcn_callconv()

Tested on latest Git HEAD: f49448f

To reproduce: r2 -A uaf_r2

Payload in base64 (I have a problem with file upload to GH - Save this to .txt file, and decode in terminal: cat payload.txt | base64 -d > uaf_r2):

yv66vgAAADIAHQoABgAPCQAQABEIABIKABMAFAcAFQcAFgEABjxpbml0PgEAAygpVgEABENvZGUB AA9MaW5lTnVtYmVyVGFibGUBAARtYWluAQAWKFtMamF2YS9sYW5nL1N0cmluZzspVgEAClNvdXJj ZUZpbGUBAA9IZWxsb1dvcmxkLmphdmEMAAcACAcAFwwAGAAZAQAMSGVsbG8sIFdvcmxkBwAaDAAb ABwBAApIZWxsb1dvcmxkAQAQamF2YS9sYW5nL09iamVjdAEAEGphdmEvbGFuZy9TeXN0ZW0BAANv dXQBABVMamF2YS9pby9QcmludFN0cmVhbTsBABNqYXZhL2lvL1ByaW50U3RyZWFtAQAHcHJpbnRs bgEAFShMamF2YS9sYW5nL1N0cmluZzspVgAhAAUABgAAAAAAAgABAAcACAABAAkAAAAdAAEAAQAA AAEqtwABsQAAAAEACgAAAAYAAQAAAAEACQALAAwAAQAJAAAAJQACAAEAAAAJsgACEgO2AASxAAAA AQAKAAAACgACAAAABAAIAAUAAQANAAAAAgAO

ASAN output:

=================================================================
==35187==ERROR: AddressSanitizer: heap-use-after-free on address 0x611000005ce8 at pc 0x7ff97c5f0585 bp 0x7ffc1c0b2f10 sp 0x7ffc1c0b2f08
READ of size 4 at 0x611000005ce8 thread T0
    #0 0x7ff97c5f0584 in fcn_callconv XYZ/radare2/libr/core/anal.c:2001
    #1 0x7ff97c5f0584 in ?? ??:0
    #2 0x7ff97c5f4b5c in r_core_anal_all XYZ/radare2/libr/core/anal.c:2536
    #3 0x7ff97c5f4b5c in ?? ??:0
    #4 0x7ff97c543480 in cmd_anal_all XYZ/radare2/libr/core/./cmd_anal.c:4503
    #5 0x7ff97c543480 in ?? ??:0
    #6 0x7ff97c50173a in cmd_anal XYZ/radare2/libr/core/./cmd_anal.c:4829
    #7 0x7ff97c50173a in ?? ??:0
    #8 0x7ff97c5e6c6c in r_cmd_call XYZ/radare2/libr/core/cmd_api.c:213
    #9 0x7ff97c5e6c6c in ?? ??:0
    #10 0x7ff97c534810 in r_core_cmd_subst_i XYZ/radare2/libr/core/cmd.c:1960 (discriminator 4)
    #11 0x7ff97c534810 in ?? ??:0
    #12 0x7ff97c4fe4a3 in r_core_cmd_subst XYZ/radare2/libr/core/cmd.c:1311
    #13 0x7ff97c4fe4a3 in ?? ??:0
    #14 0x7ff97c4fb344 in r_core_cmd XYZ/radare2/libr/core/cmd.c:2477
    #15 0x7ff97c4fb344 in ?? ??:0
    #16 0x5587c9eb7566 in main XYZ/radare2/binr/radare2/radare2.c:961
    #17 0x5587c9eb7566 in ?? ??:0
    #18 0x7ff975fcf2b0 in __libc_start_main ??:?
    #19 0x7ff975fcf2b0 in ?? ??:0
    #20 0x5587c9de5889 in _start ??:?
    #21 0x5587c9de5889 in ?? ??:0

0x611000005ce8 is located 40 bytes inside of 208-byte region [0x611000005cc0,0x611000005d90)
freed by thread T0 here:
    #0 0x5587c9e83cd0 in __interceptor_cfree.localalias.0 asan_malloc_linux.cc.o:?
    #1 0x5587c9e83cd0 in ?? ??:0
    #2 0x7ff976ee4384 in r_hashtable64_free XYZ/radare2/libr/util/./ht.c:177
    #3 0x7ff976ee4384 in ?? ??:0
    #4 0x7ff97a6e5b02 in r_anal_state_free XYZ/radare2/libr/anal/state.c:70
    #5 0x7ff97a6e5b02 in ?? ??:0
    #6 0x7ff97a654b24 in analyze_from_code_buffer XYZ/radare2/libr/..//libr/anal/p/anal_java.c:502
    #7 0x7ff97a654b24 in ?? ??:0
    #8 0x7ff97a654369 in analyze_from_code_attr XYZ/radare2/libr/..//libr/anal/p/anal_java.c:533
    #9 0x7ff97a654369 in ?? ??:0
    #10 0x7ff97a652de4 in java_analyze_fns XYZ/radare2/libr/..//libr/anal/p/anal_java.c:664
    #11 0x7ff97a652de4 in ?? ??:0
    #12 0x7ff97c5ebf80 in r_core_anal_fcn XYZ/radare2/libr/core/anal.c:1234
    #13 0x7ff97c5ebf80 in ?? ??:0
    #14 0x7ff97c5f4670 in r_core_anal_all XYZ/radare2/libr/core/anal.c:2496
    #15 0x7ff97c5f4670 in ?? ??:0
    #16 0x7ff97c543480 in cmd_anal_all XYZ/radare2/libr/core/./cmd_anal.c:4503
    #17 0x7ff97c543480 in ?? ??:0
    #18 0x7ff97c50173a in cmd_anal XYZ/radare2/libr/core/./cmd_anal.c:4829
    #19 0x7ff97c50173a in ?? ??:0
    #20 0x7ff97c5e6c6c in r_cmd_call XYZ/radare2/libr/core/cmd_api.c:213
    #21 0x7ff97c5e6c6c in ?? ??:0
    #22 0x7ff97c534810 in r_core_cmd_subst_i XYZ/radare2/libr/core/cmd.c:1960 (discriminator 4)
    #23 0x7ff97c534810 in ?? ??:0
    #24 0x7ff97c4fe4a3 in r_core_cmd_subst XYZ/radare2/libr/core/cmd.c:1311
    #25 0x7ff97c4fe4a3 in ?? ??:0
    #26 0x7ff97c4fb344 in r_core_cmd XYZ/radare2/libr/core/cmd.c:2477
    #27 0x7ff97c4fb344 in ?? ??:0
    #28 0x5587c9eb7566 in main XYZ/radare2/binr/radare2/radare2.c:961
    #29 0x5587c9eb7566 in ?? ??:0
    #30 0x7ff975fcf2b0 in __libc_start_main ??:?
    #31 0x7ff975fcf2b0 in ?? ??:0

previously allocated by thread T0 here:
    #0 0x5587c9e84040 in calloc ??:?
    #1 0x5587c9e84040 in ?? ??:0
    #2 0x7ff97a6c1784 in r_anal_bb_new XYZ/radare2/libr/anal/bb.c:10 (discriminator 1)
    #3 0x7ff97a6c1784 in ?? ??:0
    #4 0x7ff97a6e3e07 in r_anal_ex_get_bb XYZ/radare2/libr/anal/anal_ex.c:174
    #5 0x7ff97a6e3e07 in ?? ??:0
    #6 0x7ff97a6e4996 in r_anal_ex_analysis_driver XYZ/radare2/libr/anal/anal_ex.c:287
    #7 0x7ff97a6e4996 in ?? ??:0
    #8 0x7ff97a654a40 in analyze_from_code_buffer XYZ/radare2/libr/..//libr/anal/p/anal_java.c:491
    #9 0x7ff97a654a40 in ?? ??:0
    #10 0x7ff97a654369 in analyze_from_code_attr XYZ/radare2/libr/..//libr/anal/p/anal_java.c:533
    #11 0x7ff97a654369 in ?? ??:0
    #12 0x7ff97a652de4 in java_analyze_fns XYZ/radare2/libr/..//libr/anal/p/anal_java.c:664
    #13 0x7ff97a652de4 in ?? ??:0
    #14 0x7ff97c5ebf80 in r_core_anal_fcn XYZ/radare2/libr/core/anal.c:1234
    #15 0x7ff97c5ebf80 in ?? ??:0
    #16 0x7ff97c5f4670 in r_core_anal_all XYZ/radare2/libr/core/anal.c:2496
    #17 0x7ff97c5f4670 in ?? ??:0
    #18 0x7ff97c543480 in cmd_anal_all XYZ/radare2/libr/core/./cmd_anal.c:4503
    #19 0x7ff97c543480 in ?? ??:0
    #20 0x7ff97c50173a in cmd_anal XYZ/radare2/libr/core/./cmd_anal.c:4829
    #21 0x7ff97c50173a in ?? ??:0
    #22 0x7ff97c5e6c6c in r_cmd_call XYZ/radare2/libr/core/cmd_api.c:213
    #23 0x7ff97c5e6c6c in ?? ??:0
    #24 0x7ff97c534810 in r_core_cmd_subst_i XYZ/radare2/libr/core/cmd.c:1960 (discriminator 4)
    #25 0x7ff97c534810 in ?? ??:0
    #26 0x7ff97c4fe4a3 in r_core_cmd_subst XYZ/radare2/libr/core/cmd.c:1311
    #27 0x7ff97c4fe4a3 in ?? ??:0
    #28 0x7ff97c4fb344 in r_core_cmd XYZ/radare2/libr/core/cmd.c:2477
    #29 0x7ff97c4fb344 in ?? ??:0
    #30 0x5587c9eb7566 in main XYZ/radare2/binr/radare2/radare2.c:961
    #31 0x5587c9eb7566 in ?? ??:0
    #32 0x7ff975fcf2b0 in __libc_start_main ??:?
    #33 0x7ff975fcf2b0 in ?? ??:0

SUMMARY: AddressSanitizer: heap-use-after-free (/usr/local/lib/libr_core.so+0x267584)
Shadow bytes around the buggy address:
  0x0c227fff8b40: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
  0x0c227fff8b50: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c227fff8b60: fd fd fd fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c227fff8b70: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c227fff8b80: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fa fa
=>0x0c227fff8b90: fa fa fa fa fa fa fa fa fd fd fd fd fd[fd]fd fd
  0x0c227fff8ba0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c227fff8bb0: fd fd fa fa fa fa fa fa fa fa fa fa fa fa fa fa
  0x0c227fff8bc0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c227fff8bd0: fd fd fd fd fd fd fd fd fd fd fa fa fa fa fa fa
  0x0c227fff8be0: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
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
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==35187==ABORTING

@alvarofe alvarofe self-assigned this Oct 26, 2016

@alvarofe

This comment has been minimized.

Copy link
Collaborator

alvarofe commented Oct 26, 2016

next time upload the binary just with .png at the end.

@Maijin

This comment has been minimized.

Copy link
Collaborator

Maijin commented Oct 26, 2016

@alvarofe Or drag and drop the binary in a zip.

@Maijin Maijin added the fuzzing label Oct 26, 2016

@radare

This comment has been minimized.

Copy link
Owner

radare commented Oct 26, 2016

Some more context here:

==54153== Invalid read of size 4
==54153==    at 0x10013E552: fcn_callconv (anal.c:2001)
==54153==    by 0x100141E1E: r_core_anal_all (anal.c:2536)
==54153==    by 0x1000C9F88: cmd_anal_all (cmd_anal.c:4503)
==54153==    by 0x100095C6F: cmd_anal (cmd_anal.c:4829)
==54153==    by 0x100138496: r_cmd_call (cmd_api.c:213)
==54153==    by 0x1000C00C8: r_core_cmd_subst_i (cmd.c:1960)
==54153==    by 0x10009336C: r_core_cmd_subst (cmd.c:1311)
==54153==    by 0x100090FF6: r_core_cmd (cmd.c:2477)
==54153==    by 0x100083CB4: r_core_prompt_exec (core.c:1684)
==54153==    by 0x10000436F: main (in /usr/local/bin/r2)
==54153==  Address 0x11020e1c8 is 40 bytes inside a block of size 208 free'd
==54153==    at 0x100074EF7: free (in /usr/local/Cellar/valgrind/3.11.0_1/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==54153==    by 0x10046E38F: r_anal_bb_free (bb.c:58)
==54153==    by 0x10166749B: r_hashtable64_free (ht.c:177)
==54153==    by 0x100486425: r_anal_state_free (state.c:70)
==54153==    by 0x1004105BC: analyze_from_code_buffer (anal_java.c:502)
==54153==    by 0x10041011F: analyze_from_code_attr (anal_java.c:533)
==54153==    by 0x10040EFCB: java_analyze_fns (anal_java.c:664)
==54153==    by 0x10013BCFB: r_core_anal_fcn (anal.c:1234)
==54153==    by 0x100141A8C: r_core_anal_all (anal.c:2496)
==54153==    by 0x1000C9F88: cmd_anal_all (cmd_anal.c:4503)
==54153==    by 0x100095C6F: cmd_anal (cmd_anal.c:4829)
==54153==    by 0x100138496: r_cmd_call (cmd_api.c:213)
==54153==  Block was alloc'd at
==54153==    at 0x1000751B9: calloc (in /usr/local/Cellar/valgrind/3.11.0_1/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==54153==    by 0x10046E0FA: r_anal_bb_new (bb.c:10)
==54153==    by 0x100484A4F: r_anal_ex_get_bb (anal_ex.c:174)
==54153==    by 0x1004850C8: r_anal_ex_analysis_driver (anal_ex.c:287)
==54153==    by 0x100484E78: r_anal_ex_perform_analysis (anal_ex.c:230)
==54153==    by 0x10041072C: analyze_method (anal_java.c:571)
==54153==    by 0x1004104B6: analyze_from_code_buffer (anal_java.c:491)
==54153==    by 0x10041011F: analyze_from_code_attr (anal_java.c:533)
==54153==    by 0x10040EFCB: java_analyze_fns (anal_java.c:664)
==54153==    by 0x10013BCFB: r_core_anal_fcn (anal.c:1234)
==54153==    by 0x100141A8C: r_core_anal_all (anal.c:2496)
==54153==    by 0x1000C9F88: cmd_anal_all (cmd_anal.c:4503)
==54153==
==54153== Invalid read of size 4
==54153==    at 0x10013E568: fcn_callconv (anal.c:2004)
==54153==    by 0x100141E1E: r_core_anal_all (anal.c:2536)
==54153==    by 0x1000C9F88: cmd_anal_all (cmd_anal.c:4503)
==54153==    by 0x100095C6F: cmd_anal (cmd_anal.c:4829)
==54153==    by 0x100138496: r_cmd_call (cmd_api.c:213)
==54153==    by 0x1000C00C8: r_core_cmd_subst_i (cmd.c:1960)
==54153==    by 0x10009336C: r_core_cmd_subst (cmd.c:1311)
==54153==    by 0x100090FF6: r_core_cmd (cmd.c:2477)
==54153==    by 0x100083CB4: r_core_prompt_exec (core.c:1684)
==54153==    by 0x10000436F: main (in /usr/local/bin/r2)
==54153==  Address 0x11020e1c8 is 40 bytes inside a block of size 208 free'd
==54153==    at 0x100074EF7: free (in /usr/local/Cellar/valgrind/3.11.0_1/lib/valgrind/vgpreload_memcheck-amd64-darwin.so)
==54153==    by 0x10046E38F: r_anal_bb_free (bb.c:58)

On 26 Oct 2016, at 16:43, Kamil Frankowicz notifications@github.com wrote:

Use After Free in fcn_callconv()

Tested on latest Git HEAD: f49448f f49448f
To reproduce: r2 -A uaf_r2

Payload in base64 (I have a problem with file upload to GH - Save this to .txt file, and decode in terminal: cat payload.txt | base64 -d > uaf_r2):

yv66vgAAADIAHQoABgAPCQAQABEIABIKABMAFAcAFQcAFgEABjxpbml0PgEAAygpVgEABENvZGUB
AA9MaW5lTnVtYmVyVGFibGUBAARtYWluAQAWKFtMamF2YS9sYW5nL1N0cmluZzspVgEAClNvdXJj
ZUZpbGUBAA9IZWxsb1dvcmxkLmphdmEMAAcACAcAFwwAGAAZAQAMSGVsbG8sIFdvcmxkBwAaDAAb
ABwBAApIZWxsb1dvcmxkAQAQamF2YS9sYW5nL09iamVjdAEAEGphdmEvbGFuZy9TeXN0ZW0BAANv
dXQBABVMamF2YS9pby9QcmludFN0cmVhbTsBABNqYXZhL2lvL1ByaW50U3RyZWFtAQAHcHJpbnRs
bgEAFShMamF2YS9sYW5nL1N0cmluZzspVgAhAAUABgAAAAAAAgABAAcACAABAAkAAAAdAAEAAQAA
AAEqtwABsQAAAAEACgAAAAYAAQAAAAEACQALAAwAAQAJAAAAJQACAAEAAAAJsgACEgO2AASxAAAA
AQAKAAAACgACAAAABAAIAAUAAQANAAAAAgAO

ASAN output:

==35187==ERROR: AddressSanitizer: heap-use-after-free on address 0x611000005ce8 at pc 0x7ff97c5f0585 bp 0x7ffc1c0b2f10 sp 0x7ffc1c0b2f08
READ of size 4 at 0x611000005ce8 thread T0
#0 0x7ff97c5f0584 in fcn_callconv XYZ/radare2/libr/core/anal.c:2001
#1 0x7ff97c5f0584 in ?? ??:0
#2 0x7ff97c5f4b5c in r_core_anal_all XYZ/radare2/libr/core/anal.c:2536
#3 0x7ff97c5f4b5c in ?? ??:0
#4 0x7ff97c543480 in cmd_anal_all XYZ/radare2/libr/core/./cmd_anal.c:4503
#5 0x7ff97c543480 in ?? ??:0
#6 0x7ff97c50173a in cmd_anal XYZ/radare2/libr/core/./cmd_anal.c:4829
#7 0x7ff97c50173a in ?? ??:0
#8 0x7ff97c5e6c6c in r_cmd_call XYZ/radare2/libr/core/cmd_api.c:213
#9 0x7ff97c5e6c6c in ?? ??:0
#10 0x7ff97c534810 in r_core_cmd_subst_i XYZ/radare2/libr/core/cmd.c:1960 (discriminator 4)
#11 0x7ff97c534810 in ?? ??:0
#12 0x7ff97c4fe4a3 in r_core_cmd_subst XYZ/radare2/libr/core/cmd.c:1311
#13 0x7ff97c4fe4a3 in ?? ??:0
#14 0x7ff97c4fb344 in r_core_cmd XYZ/radare2/libr/core/cmd.c:2477
#15 0x7ff97c4fb344 in ?? ??:0
#16 0x5587c9eb7566 in main XYZ/radare2/binr/radare2/radare2.c:961
#17 0x5587c9eb7566 in ?? ??:0
#18 0x7ff975fcf2b0 in __libc_start_main ??:?
#19 0x7ff975fcf2b0 in ?? ??:0
#20 0x5587c9de5889 in _start ??:?
#21 0x5587c9de5889 in ?? ??:0

0x611000005ce8 is located 40 bytes inside of 208-byte region [0x611000005cc0,0x611000005d90)
freed by thread T0 here:
#0 0x5587c9e83cd0 in __interceptor_cfree.localalias.0 asan_malloc_linux.cc.o:?
#1 0x5587c9e83cd0 in ?? ??:0
#2 0x7ff976ee4384 in r_hashtable64_free XYZ/radare2/libr/util/./ht.c:177
#3 0x7ff976ee4384 in ?? ??:0
#4 0x7ff97a6e5b02 in r_anal_state_free XYZ/radare2/libr/anal/state.c:70
#5 0x7ff97a6e5b02 in ?? ??:0
#6 0x7ff97a654b24 in analyze_from_code_buffer XYZ/radare2/libr/..//libr/anal/p/anal_java.c:502
#7 0x7ff97a654b24 in ?? ??:0
#8 0x7ff97a654369 in analyze_from_code_attr XYZ/radare2/libr/..//libr/anal/p/anal_java.c:533
#9 0x7ff97a654369 in ?? ??:0
#10 0x7ff97a652de4 in java_analyze_fns XYZ/radare2/libr/..//libr/anal/p/anal_java.c:664
#11 0x7ff97a652de4 in ?? ??:0
#12 0x7ff97c5ebf80 in r_core_anal_fcn XYZ/radare2/libr/core/anal.c:1234
#13 0x7ff97c5ebf80 in ?? ??:0
#14 0x7ff97c5f4670 in r_core_anal_all XYZ/radare2/libr/core/anal.c:2496
#15 0x7ff97c5f4670 in ?? ??:0
#16 0x7ff97c543480 in cmd_anal_all XYZ/radare2/libr/core/./cmd_anal.c:4503
#17 0x7ff97c543480 in ?? ??:0
#18 0x7ff97c50173a in cmd_anal XYZ/radare2/libr/core/./cmd_anal.c:4829
#19 0x7ff97c50173a in ?? ??:0
#20 0x7ff97c5e6c6c in r_cmd_call XYZ/radare2/libr/core/cmd_api.c:213
#21 0x7ff97c5e6c6c in ?? ??:0
#22 0x7ff97c534810 in r_core_cmd_subst_i XYZ/radare2/libr/core/cmd.c:1960 (discriminator 4)
#23 0x7ff97c534810 in ?? ??:0
#24 0x7ff97c4fe4a3 in r_core_cmd_subst XYZ/radare2/libr/core/cmd.c:1311
#25 0x7ff97c4fe4a3 in ?? ??:0
#26 0x7ff97c4fb344 in r_core_cmd XYZ/radare2/libr/core/cmd.c:2477
#27 0x7ff97c4fb344 in ?? ??:0
#28 0x5587c9eb7566 in main XYZ/radare2/binr/radare2/radare2.c:961
#29 0x5587c9eb7566 in ?? ??:0
#30 0x7ff975fcf2b0 in __libc_start_main ??:?
#31 0x7ff975fcf2b0 in ?? ??:0

previously allocated by thread T0 here:
#0 0x5587c9e84040 in calloc ??:?
#1 0x5587c9e84040 in ?? ??:0
#2 0x7ff97a6c1784 in r_anal_bb_new XYZ/radare2/libr/anal/bb.c:10 (discriminator 1)
#3 0x7ff97a6c1784 in ?? ??:0
#4 0x7ff97a6e3e07 in r_anal_ex_get_bb XYZ/radare2/libr/anal/anal_ex.c:174
#5 0x7ff97a6e3e07 in ?? ??:0
#6 0x7ff97a6e4996 in r_anal_ex_analysis_driver XYZ/radare2/libr/anal/anal_ex.c:287
#7 0x7ff97a6e4996 in ?? ??:0
#8 0x7ff97a654a40 in analyze_from_code_buffer XYZ/radare2/libr/..//libr/anal/p/anal_java.c:491
#9 0x7ff97a654a40 in ?? ??:0
#10 0x7ff97a654369 in analyze_from_code_attr XYZ/radare2/libr/..//libr/anal/p/anal_java.c:533
#11 0x7ff97a654369 in ?? ??:0
#12 0x7ff97a652de4 in java_analyze_fns XYZ/radare2/libr/..//libr/anal/p/anal_java.c:664
#13 0x7ff97a652de4 in ?? ??:0
#14 0x7ff97c5ebf80 in r_core_anal_fcn XYZ/radare2/libr/core/anal.c:1234
#15 0x7ff97c5ebf80 in ?? ??:0
#16 0x7ff97c5f4670 in r_core_anal_all XYZ/radare2/libr/core/anal.c:2496
#17 0x7ff97c5f4670 in ?? ??:0
#18 0x7ff97c543480 in cmd_anal_all XYZ/radare2/libr/core/./cmd_anal.c:4503
#19 0x7ff97c543480 in ?? ??:0
#20 0x7ff97c50173a in cmd_anal XYZ/radare2/libr/core/./cmd_anal.c:4829
#21 0x7ff97c50173a in ?? ??:0
#22 0x7ff97c5e6c6c in r_cmd_call XYZ/radare2/libr/core/cmd_api.c:213
#23 0x7ff97c5e6c6c in ?? ??:0
#24 0x7ff97c534810 in r_core_cmd_subst_i XYZ/radare2/libr/core/cmd.c:1960 (discriminator 4)
#25 0x7ff97c534810 in ?? ??:0
#26 0x7ff97c4fe4a3 in r_core_cmd_subst XYZ/radare2/libr/core/cmd.c:1311
#27 0x7ff97c4fe4a3 in ?? ??:0
#28 0x7ff97c4fb344 in r_core_cmd XYZ/radare2/libr/core/cmd.c:2477
#29 0x7ff97c4fb344 in ?? ??:0
#30 0x5587c9eb7566 in main XYZ/radare2/binr/radare2/radare2.c:961
#31 0x5587c9eb7566 in ?? ??:0
#32 0x7ff975fcf2b0 in __libc_start_main ??:?
#33 0x7ff975fcf2b0 in ?? ??:0

SUMMARY: AddressSanitizer: heap-use-after-free (/usr/local/lib/libr_core.so+0x267584)
Shadow bytes around the buggy address:
0x0c227fff8b40: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
0x0c227fff8b50: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0c227fff8b60: fd fd fd fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c227fff8b70: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0c227fff8b80: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fa fa
=>0x0c227fff8b90: fa fa fa fa fa fa fa fa fd fd fd fd fd[fd]fd fd
0x0c227fff8ba0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0c227fff8bb0: fd fd fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c227fff8bc0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
0x0c227fff8bd0: fd fd fd fd fd fd fd fd fd fd fa fa fa fa fa fa
0x0c227fff8be0: fa fa fa fa fa fa fa fa 00 00 00 00 00 00 00 00
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
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb
==35187==ABORTING

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub #6034, or mute the thread https://github.com/notifications/unsubscribe-auth/AA3-llh8WG-KlK7B4ZRfIWSabF9tkp2Tks5q32cbgaJpZM4KhQf1.

@alvarofe alvarofe closed this in 5800b23 Oct 26, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment