Netatalk 4.0.0 before 4.6.1 contains a stack-based buffer overflow vulnerability in add_zones() in contrib/macipgw/macip.c, which copies each zone name from a ZIP GetZoneList reply into a 32-byte stack buffer using the packet's length byte without checking it. Unauthenticated attackers on the same AppleTalk network can send a crafted zone list reply during macipgw startup zone discovery to overflow the stack and crash the MacIP gateway.