Skip to content
This repository has been archived by the owner on Oct 23, 2020. It is now read-only.

Segfault in Tcptrace at trace.c:1155 #9

Open
Ngiong opened this issue Oct 22, 2020 · 0 comments
Open

Segfault in Tcptrace at trace.c:1155 #9

Ngiong opened this issue Oct 22, 2020 · 0 comments

Comments

@Ngiong
Copy link

Ngiong commented Oct 22, 2020

Hello,
We are currently working on a new fuzz testing feature, and we found a crash in tcptrace.

Step to Reproduce
We configured and built libpcap-1.9.1 using CFLAGS="-g -O0" ./configure and make
and configured tcptrace using CFLAGS="-L${LIBPCAP_PATH}/lib -I${LIBPCAP_PATH}/include" LDFLAGS="-L${LIBPCAP_PATH}/lib -lpcap" ./configure and built using make, and run it with:

./tcptrace -e --nodupack3_data -e -e --showrexmit --nowarn_printtrunc --continuous <attached_file> --tsv -n --nores_addr 

Attachment: poc_0007.txt

Environment

Additional context
Here's the stack trace: stack_trace_0007.txt

Program received signal SIGSEGV, Segmentation fault.
0x0000000000425f58 in UpdateConnList (tcp_ptr=0x6fa160, valid=1 '\001', conn_list_head=0x6cc8d8 <live_conn_list_head>, conn_list_tail=0x6cc8e0 <live_conn_list_tail>) at trace.c:1155
1155	  ptr_prev->next = ptr_next;
#0  0x0000000000425f58 in UpdateConnList (tcp_ptr=0x6fa160, valid=1 '\001', conn_list_head=0x6cc8d8 <live_conn_list_head>, conn_list_tail=0x6cc8e0 <live_conn_list_tail>) at trace.c:1155
#1  0x0000000000422e22 in UpdateConnLists (tcp_ptr=0x6fa160, ptcp=0x6e7cf4) at trace.c:1083
#2  0x0000000000420bdf in dotrace (pip=0x6e7ce0, ptcp=0x6e7cf4, plast=0x6e7d13) at trace.c:2469
#3  0x0000000000417b7e in ProcessFile (filename=0x7fffffffe220 "input") at tcptrace.c:1167
#4  0x00000000004158ea in main (argc=4, argv=0x7fffffffde58) at tcptrace.c:785

Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant