Closed mmmds closed 5 years ago
In my own test I end up with, which obviously is also something that should be fixed.
Thread 1 "cherokee-worker" received signal SIGSEGV, Segmentation fault.
0x00007ffff71d0452 in ?? () from /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/libasan.so.5
(gdb) bt
#0 0x00007ffff71d0452 in ?? () from /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/libasan.so.5
#1 0x00007ffff72b3f45 in free () from /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/libasan.so.5
#2 0x0000555555711624 in cherokee_handler_cgi_free (cgi=0x618000005480) at handler_cgi.c:240
#3 0x000055555579a8e9 in cherokee_handler_free (hdl=0x618000005480) at handler.c:72
#4 0x0000555555788d03 in cherokee_connection_setup_error_handler (conn=0x61d000006e80) at connection.c:442
#5 0x00005555556c6505 in process_active_connections (thd=0x61300000d080) at thread.c:1276
#6 0x00005555556ca112 in cherokee_thread_step_SINGLE_THREAD (thd=0x61300000d080) at thread.c:1891
#7 0x00005555556abbf6 in cherokee_server_step (srv=0x617000000080) at server.c:1161
#8 0x0000555555651591 in main (argc=1, argv=0x7fffffffd978) at main_worker.c:407
PoC
ASAN
Setup:
mkdir /var/www/test{1..20}; for i in
seq 1 20; do echo test > test$i/test.html; done
found by: Mateusz Kocielski, Michał Dardas from LogicalTrust