Project

General

Profile

Actions

Bug #1988

closed

tls_cert_subject bug

Added by Mats Klepsland over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

Suricata segfaults when using the tls_cert_subject keyword.

Program terminated with signal SIGSEGV, Segmentation fault.
#0  strlen () at ../sysdeps/x86_64/strlen.S:106
106 ../sysdeps/x86_64/strlen.S: No such file or directory.
(gdb) bt
#0  strlen () at ../sysdeps/x86_64/strlen.S:106
#1  0x00000000004aaf0a in PrefilterTxTlsSubject (det_ctx=0x7f86b416f7a0, pectx=0x781f220, p=0x7f86b40e34b0, f=0x0, txv=0x7f86b7e19ec0, idx=0, 
    flags=8 '\b') at detect-engine-tls.c:222
#2  0x00000000004ba8fc in PrefilterTx (sgh=0x78c1900, flags=8 '\b', p=0x7f86b40e34b0, det_ctx=0x7f86b416f7a0) at detect-engine-prefilter.c:132
#3  Prefilter (det_ctx=det_ctx@entry=0x7f86b416f7a0, sgh=0x78c1900, p=p@entry=0x7f86b40e34b0, flags=flags@entry=8 '\b', 
    has_state=has_state@entry=1) at detect-engine-prefilter.c:190
#4  0x0000000000488e3b in SigMatchSignatures (th_v=th_v@entry=0x7b18d40, de_ctx=0x37da790, det_ctx=det_ctx@entry=0x7f86b416f7a0, 
    p=p@entry=0x7f86b40e34b0) at detect.c:1250
#5  0x0000000000489ebc in DetectFlow (p=0x7f86b40e34b0, det_ctx=0x7f86b416f7a0, de_ctx=<optimized out>, tv=0x7b18d40) at detect.c:1663
#6  Detect (tv=tv@entry=0x7b18d40, p=p@entry=0x7f86b40e34b0, data=data@entry=0x7f86b416f7a0, pq=pq@entry=0x0, postpq=postpq@entry=0x0)
    at detect.c:1738
#7  0x00000000005095fd in FlowWorker (tv=0x7b18d40, p=0x7f86b40e34b0, data=0x7f86b40f5e20, preq=0x7dd2e90, unused=<optimized out>)
    at flow-worker.c:232
#8  0x0000000000584bad in TmThreadsSlotVarRun (tv=tv@entry=0x7b18d40, p=p@entry=0x7f86b40e34b0, slot=slot@entry=0x82604c0) at tm-threads.c:130
#9  0x000000000056cbb6 in TmThreadsSlotProcessPkt (p=0x7f86b40e34b0, s=0x82604c0, tv=0x7b18d40) at tm-threads.h:149
#10 ReceivePfringLoop (tv=0x7b18d40, data=0x7f86c3ffd080, slot=<optimized out>) at source-pfring.c:366
#11 0x0000000000587322 in TmThreadsSlotPktAcqLoop (td=0x7b18d40) at tm-threads.c:334
#12 0x00007f872c05c184 in start_thread (arg=0x7f86d6ffd700) at pthread_create.c:312
#13 0x00007f872b3b237d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
Actions #1

Updated by Victor Julien over 7 years ago

  • Status changed from New to Closed
  • Target version set to 3.2.1
Actions

Also available in: Atom PDF