CVE-2026-45699Netatalk has Integer Underflow → Stack Buffer Overflow in copydir()
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.
What to do
Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | netatalk | Fix pending | UBUNTU-CVE-2026-45699 | |
| Ubuntu 26.04 | netatalk | Under investigation | UBUNTU-CVE-2026-45699 | |
| Ubuntu 25.10 | netatalk | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-45699 | |
| Ubuntu 24.04 | netatalk | Fix pending | UBUNTU-CVE-2026-45699 | |
| Ubuntu 22.04 | netatalk | Fix pending | UBUNTU-CVE-2026-45699 | |
| Ubuntu 20.04 | netatalk | Fix pending | UBUNTU-CVE-2026-45699 | |
| Ubuntu 18.04 | netatalk | Fix pending | UBUNTU-CVE-2026-45699 | |
| Ubuntu 16.04 | netatalk | Fix pending | UBUNTU-CVE-2026-45699 | |
| Ubuntu 14.04 | netatalk | Fix pending | UBUNTU-CVE-2026-45699 | |
| Debian 14 | netatalk | Fixed | 4.4.3~ds-1 | DEBIAN-CVE-2026-45699 |
| Debian 13 | netatalk | Fixed | 4.2.3~ds-1+deb13u2 | DEBIAN-CVE-2026-45699 |
| Alpine Linux 3.24 | netatalk | Fixed | 4.4.3-r0 | ALPINE-CVE-2026-45699 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- netatalk: affected: >= 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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.