Multiple directory traversal vulnerabilities in pam_timestamp.c in the pam_timestamp module for Linux-PAM (aka pam) 1.1.8 allow local users to create arbitrary files or possibly bypass authentication via a .. (dot dot) in the (1) PAM_RUSER value to the get_ruser function or (2) PAM_TTY value to the check_tty function, which is used by the format_timestamp_name function.
https://security.gentoo.org/glsa/201605-05
http://www.ubuntu.com/usn/USN-2935-3
http://www.ubuntu.com/usn/USN-2935-2
http://www.ubuntu.com/usn/USN-2935-1
http://www.securityfocus.com/bid/66493
http://www.openwall.com/lists/oss-security/2014/03/31/6
http://www.openwall.com/lists/oss-security/2014/03/26/10