Impact
Netatalk, a file server suite for Unix-like systems, contains a stack-based buffer overflow in the copydir() function of its afpd daemon. The flaw is caused by an integer underflow that corrupts the calculation of remaining buffer space for source and destination paths. When a file operation crosses a device boundary inside an AFP shared volume, the underflow sets the internal buffer limits to SIZE_MAX, causing boundary checks on the file name length to always succeed and enabling strcpy() to overrun a near-full stack buffer. This flaw satisfies CWE‑191 and can lead to arbitrary code execution with the privileges of the afpd daemon.
Affected Systems
The affected product is Netatalk (netatalk:netatalk). Versions 3.1.19 through 4.4.2 contain the vulnerable copydir() implementation. The vulnerability is fixed in Netatalk 4.4.3 and later releases.
Risk and Exploitability
The CVSS score of 7.5 denotes high severity. No EPSS score is available, and the issue is not listed in the CISA KEV catalog. The most likely attack vector is through malicious file operations that cross a mounted file system boundary within an AFP shared volume, which an attacker who can invoke AFP operations on the target system may trigger. Successful exploitation could corrupt stack memory and allow arbitrary code execution with the privileges of the afpd daemon.
OpenCVE Enrichment
Debian DSA