Le 30/03/17 à 15:56, cgzones a écrit :

Hi,

I just received the following bug in debian:

ausearch segfaults on the following input in interpret mode:

/sbin/ausearch -i --input file

type=AVC msg=audit(1490829425.686:121): avc:  denied  { bind } for
pid=1034 comm="darkstat" scontext=system_u:system_r:darkstat_t:s0
tcontext=system_u:system_r:darkstat_t:s0 tclass=packet_socket
permissive=0
type=SYSCALL msg=audit(1490829425.686:121): arch=c000003e syscall=49
success=no exit=-13 a0=3 a1=7ffce52e04b0 a2=14 a3=373 items=0
ppid=1033 pid=1034 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0
egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="darkstat"
exe="/usr/sbin/darkstat" subj=system_u:system_r:darkstat_t:s0
key=(null)
type=SOCKADDR msg=audit(1490829425.686:121):
saddr=1100000302000000000000000000000000000000
type=PROCTITLE msg=audit(1490829425.686:121):
proctitle=2F7573722F7362696E2F6461726B73746174002D6900656E70307333002D2D6368726F6F74002F7661722F6C69622F6461726B73746174002D2D70696466696C65002F7661722F72756E2F6461726B737461742E706964002D2D696D706F7274006461726B737461742E6462002D2D6578706F7274006461726B737461742E64

The user is running version 2.6.7 (the version that will be shipped in the upcoming stable release).

I can actually reproduce the issue with the following one line:

type=SOCKADDR msg=audit(1490829425.686:121): saddr=1100000302000000000000000000000000000000

I got the following stacktrace:

#0  strlen () at ../sysdeps/x86_64/strlen.S:106
#1 0x00007ffff79a04da in auparse_do_interpretation (type=type@entry=9, id=id@entry=0x7fffffffde00) at ../../../auparse/interpret.c:2917 #2 0x000055555555d3f1 in interpret (rtype=1306, comma=0, val=0x555555771a93 "1100000302", '0' <repeats 30 times>, name=<optimized out>) at ../../../src/ausearch-report.c:359 #3 output_interpreted_node (n=0x555555771bd0, e=e@entry=0x555555771ae8) at ../../../src/ausearch-report.c:296 #4 0x000055555555d9e3 in output_interpreted (l=0x555555771ad0) at ../../../src/ausearch-report.c:151
#5  output_record (l=0x555555771ad0) at ../../../src/ausearch-report.c:80
#6  0x0000555555557cac in process_log_fd () at ../../../src/ausearch.c:445
#7 0x000055555555782b in main (argc=4, argv=0x7fffffffe098) at ../../../src/ausearch.c:140

--
Linux-audit mailing list
Linux-audit@redhat.com
https://www.redhat.com/mailman/listinfo/linux-audit

Reply via email to