Skip to content

Null pointer deref in wasm_parse_section_functions #18

@haruki3hhh

Description

@haruki3hhh

version

e81176b

compile

make vmir.asan

asan report

root@9dc6ce043bcb:~/Ablation/vmir/crashes# ../vmir.asan id\:000000\,sig\:11\,src\:000000\,op\:flip1\,pos\:8 
Skipping section type 65
AddressSanitizer:DEADLYSIGNAL
=================================================================
==4108360==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x55c67e5638d7 bp 0x7fffcb46f890 sp 0x7fffcb46f850 T0)
==4108360==The signal is caused by a READ memory access.
==4108360==Hint: address points to the zero page.
    #0 0x55c67e5638d6 in wasm_parse_section_functions src/vmir_wasm_parser.c:432
    #1 0x55c67e56a932 in wasm_parse_module src/vmir_wasm_parser.c:1407
    #2 0x55c67e56d1a0 in vmir_load src/vmir.c:920
    #3 0x55c67e4d49c9 in main src/main.c:166
    #4 0x7f055f86c082 in __libc_start_main ../csu/libc-start.c:308
    #5 0x55c67e4d3d2d in _start (/root/Ablation/vmir/vmir.asan+0x12d2d)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV src/vmir_wasm_parser.c:432 in wasm_parse_section_functions
==4108360==ABORTING

reproduce

./vmir PoC

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions