Netatalk 4.0.0 before 4.6.1 contains a NULL pointer dereference vulnerability in getstatus() in etc/papd/main.c, which passes the integer O_RDONLY, whose value is zero, as the mode argument to fopen() when reading a spooled printer's status file in builds without CUPS. Unauthenticated attackers who can send AppleTalk PAP traffic can send a PAP_OPEN or PAP_SENDSTATUS request to crash papd and keep the print service unavailable.