CVE-2026-45355: Netatalk: Integer Underflow in Spotlight RPC String Length Calculation (sl_unpack_cpx)
Netatalk is a Free and Open Source file server suite for Unix-like operating systems. Prior to 4.4.3, the afpd Spotlight RPC string unmarshalling path in etc/afpd/spotlightmarshalling.c uses slunpackcpx to calculate slen from qlen and the attacker-controlled usedinlastblock value without preventing a negative result. An authenticated AFP client can send a complex string or UTF-16 string element that makes slen negative, and the implicit conversion to sizet causes dallocstrndup or convertstringallocate to read beyond the heap buffer. The out-of-bounds read can expose heap data through the RPC response or crash the worker process. This issue is fixed in version 4.4.3.
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.4.3