CVE-2026-142061: Netatalk 3.1.0 before 4.6.0 Stack Out-of-Bounds Write via Spotlight Path Decomposition
Netatalk 3.1.0 before 4.6.0 contains an out-of-bounds write vulnerability in decomposew() in libatalk/unicode/utilunistr.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 charsetdecompose(). 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.6.0
Event History
Frequently Asked Questions
Who can exploit this vulnerability?
An authenticated AFP user who can create file paths near the MAXPATHLEN limit and include selected Unicode characters is positioned to trigger the issue. The vulnerable operation is reached when that user requests Spotlight metadata for the crafted path.
What is the likely impact of a successful trigger?
The out-of-bounds UTF-16 terminator write corrupts stack memory and can crash the AFP session process. The provided information does not establish impacts beyond that crash condition.
Which Netatalk versions are affected?
Netatalk versions from 3.1.0 before 4.6.0 are affected. Version 4.6.0 is identified as the release containing the fix.