CVE-2026-45698 Netatalk has Integer Underflow → Stack Buffer Overflow in deletedir()
- Published
- Updated
- Exploit status
- No public exploit known
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 deletedir() function of Netatalk's afpd daemon due to an integer underflow in the calculation of the remaining buffer size used for path construction. deletedir() 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 prevent buffer overflows by tracking available space in a size_t remain variable. However, the arithmetic used to compute remain results in an unsigned integer underflow, causing the variable to become SIZE_MAX. Because of this, the subsequent boundary check always evaluates as safe, allowing an unbounded strcpy() operation to copy attacker-controlled filenames into a nearly full stack buffer. Version 4.4.3 patches the issue.
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-5443-v9xg-mqgv
- https://github.com/Netatalk/netatalk/releases/tag/netatalk-4-4-3
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2517555 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-45698 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking