CVEfocus › CVE database › CVE-2026-45699

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

CVSS 7.5 HighEPSS 0.4% (higher than 31% of CVEs)Published 2026-08-14Updated 2026-08-18Assigner: GitHub_M

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.

CWE-191

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

3Fixed
7Fix pending
1Under investigation
1Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10netatalkFix pendingUBUNTU-CVE-2026-45699
Ubuntu 26.04netatalkUnder investigationUBUNTU-CVE-2026-45699
Ubuntu 25.10netatalkWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-45699
Ubuntu 24.04netatalkFix pendingUBUNTU-CVE-2026-45699
Ubuntu 22.04netatalkFix pendingUBUNTU-CVE-2026-45699
Ubuntu 20.04netatalkFix pendingUBUNTU-CVE-2026-45699
Ubuntu 18.04netatalkFix pendingUBUNTU-CVE-2026-45699
Ubuntu 16.04netatalkFix pendingUBUNTU-CVE-2026-45699
Ubuntu 14.04netatalkFix pendingUBUNTU-CVE-2026-45699
Debian 14netatalkFixed4.4.3~ds-1DEBIAN-CVE-2026-45699
Debian 13netatalkFixed4.2.3~ds-1+deb13u2DEBIAN-CVE-2026-45699
Alpine Linux 3.24netatalkFixed4.4.3-r0ALPINE-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.

References

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.