pktstat contains a flaw as the program creates temporary files insecurely. It is possible for a local attacker to use a symlink attack against the /tmp/smtp.log file generated via tmp_smtp.c to cause the program to unexpectedly overwrite an arbitrary file. In addition, the /tmp/smtp.log file may contain potentially sensitive information that a local attacker can gain access to.