CVE-2026-45356: Netatalk: Unsigned Integer Underflow in Spotlight RPC Count Decrement (sl_unpack_loop)
Netatalk is a Free and Open Source file server suite for Unix-like operating systems. Prior to 4.4.3, the afpd Spotlight RPC unmarshalling loop in etc/afpd/spotlightmarshalling.c subtracts an attacker-controlled subcount from the unsigned count variable in slunpackloop without verifying that subcount is not larger. An authenticated AFP client can place an excessive element count in the slunpackints, slunpackuuid, slunpackfloats, or slunpackdate handler, or in a null element, so the subtraction wraps near UINTMAX and the loop continues reading heap memory at increasing offsets up to tocoffset, which is capped at 65000. The out-of-bounds values can be stored in dalloc structures and returned in the Spotlight RPC response, disclosing heap contents. This issue is fixed in version 4.4.3.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Netatalkto a version that resolves this vulnerability.Fixed in 4.4.3