Netatalk 3.1.0 before 4.6.0 contains an out-of-bounds write vulnerability in decompose_w() in libatalk/unicode/util_unistr.c that does not reserve space for the UTF-16 NUL terminator, so a decomposed string that exactly fills the destination is terminated two bytes past the end of the fixed stack buffer in charset_decompose(). Authenticated AFP users who can create a file path near the MAXPATHLEN limit containing selected Unicode characters can request its Spotlight metadata to corrupt stack memory and crash their AFP session process.