CVE-2026-45699 Netatalk has Integer Underflow → Stack Buffer Overflow in copydir()
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebian
Description
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.
Upgrade path
8 packages: 3 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/netatalk(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/netatalk(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/netatalk(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/netatalk(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| alpine/netatalk(Alpine v3.24) | < 4.4.3-r0 | 4.4.3-r0 | Fixed |
| debian/netatalk(Debian 13) | < 4.2.3~ds-1+deb13u2; = 4.2.3~ds-1; = 4.2.3~ds-1+deb13u1 | 4.2.3~ds-1+deb13u2 | Fixed |
| debian/netatalk(Debian 14) | < 4.4.3~ds-1; = 4.2.3~ds-1; = 4.2.3~ds-2; = 4.2.3~ds-2.1 +2 more | 4.4.3~ds-1 | Fixed |
| netatalk | = >= 3.1.19, < 4.4.3 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| netatalk | = >= 3.1.19, < 4.4.3 | No fix listed |
| debian/netatalk(Debian:13) | < 4.2.3~ds-1+deb13u2 | 4.2.3~ds-1+deb13u2 |
| debian/netatalk(Debian:13) | = 4.2.3~ds-1 | No fix listed |
| debian/netatalk(Debian:13) | = 4.2.3~ds-1+deb13u1 | No fix listed |
| debian/netatalk(Debian:14) | < 4.4.3~ds-1 | 4.4.3~ds-1 |
| debian/netatalk(Debian:14) | = 4.2.3~ds-1 | No fix listed |
| debian/netatalk(Debian:14) | = 4.2.3~ds-2 | No fix listed |
| debian/netatalk(Debian:14) | = 4.2.3~ds-2.1 | No fix listed |
| debian/netatalk(Debian:14) | = 4.4.1~ds-1 | No fix listed |
| debian/netatalk(Debian:14) | = 4.4.2~ds-1 | No fix listed |
| ubuntu/netatalk(Ubuntu:22.04) | All versions | No fix listed |
| alpine/netatalk(Alpine:v3.24) | < 4.4.3-r0 | 4.4.3-r0 |
| ubuntu/netatalk(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/netatalk(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/netatalk(Ubuntu:26.10) | All versions | No fix listed |
References
- https://github.com/Netatalk/netatalk/security/advisories/GHSA-fphv-pf29-p77m
- https://github.com/Netatalk/netatalk/releases/tag/netatalk-4-4-3
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2516136 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-45699 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2026-58790 third-party-advisory