# CVE-2026-45699: Netatalk has Integer Underflow → Stack Buffer Overflow in copydir()

- Priority: **Routine**
- Reason: Not severe (CVSS 7.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-14 · Modified: 2026-08-18
- Aliases: UBUNTU-CVE-2026-45699, DEBIAN-CVE-2026-45699, ALPINE-CVE-2026-45699
- Record: https://cvemate.com/vulnerability/CVE-2026-45699 · JSON: https://cvemate.com/vulnerability/CVE-2026-45699/json

## Description

```text
Netatalk is a Free and Open Source file server suite for Unix-like operating systems. In versions 3.1.19 through 4.4.2, a  stack-based buffer overflow exists in the copydir() function of Netatalk's afpd daemon due to an integer underflow in the calculation of the remaining buffer size used for path construction. copydir() is a utility function called when a file operation crosses a device boundary inside an AFP shared volume, which the standard library's renameat() cannot handle. The function attempts to track available buffer space using srem and drem for source and destination paths. Incorrect arithmetic causes both srem and drem to underflow to SIZE_MAX. Consequently, boundary checks against strlen(de->d_name) always pass, allowing strcpy() to append filenames into nearly full stack buffers. Version 4.4.3 patches the issue. As a workaround, configure each AFP shared volume to be structured as a single file system, in other words no subdirectory of a shared volume should be a mount point for a different file system.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.335%, percentile 28.771%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine netatalk (Alpine Linux): \< 4.4.3-r0
- debian netatalk (Debian): \< 4.2.3~ds-1+deb13u2 \| \< 4.4.3~ds-1
- ubuntu netatalk (Ubuntu): All versions (No fix recorded) \| \< 4.2.3~ds-2.1ubuntu0.2+esm1
- netatalk netatalk: ≥ 3.1.19, \< 4.4.3

## References

- <https://github.com/Netatalk/netatalk/security/advisories/GHSA-fphv-pf29-p77m>
- <https://github.com/Netatalk/netatalk/releases/tag/netatalk-4-4-3>
- <https://ubuntu.com/security/CVE-2026-45699>
- <https://www.cve.org/CVERecord?id=CVE-2026-45699>
- <https://netatalk.io/security/CVE-2026-45699>
- <https://security-tracker.debian.org/tracker/CVE-2026-45699>
- <https://security.alpinelinux.org/vuln/CVE-2026-45699>
- <https://ubuntu.com/security/notices/USN-9456-1>

---

Data as of 2026-12-05T13:22:55.114Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
