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

Published Aug 14, 2026
·
Updated

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 SIZEMAX. Consequently, boundary checks against strlen(de->dname) 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.

Affected Software

2 affected components
Netatalk afpd daemon>=3.1.19<=4.4.2
Netatalk afpd daemon=4.4.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Netatalk (afpd daemon) to a version that resolves this vulnerability.

    Fixed in 4.4.3
  2. Configuration

    As a workaround, configure each AFP shared volume so it is structured as a single file system: do not use any subdirectory of a shared volume as a mount point for a different file system.

    Netatalk AFP shared volumes (afpd) shared volume mount structure = single file system per AFP shared volume (no subdirectory mount points for different file systems)

Event History

Aug 14, 2026
CVE Published
via MITRE·07:05 PM
Data Sourced
via MITRE·07:05 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-45699?

The severity of CVE-2026-45699 is rated high with a score of 7.5.

2

How do I fix CVE-2026-45699?

To fix CVE-2026-45699, upgrade Netatalk to version 4.4.3 or later.

3

What types of vulnerabilities are associated with CVE-2026-45699?

CVE-2026-45699 involves an integer underflow and a stack buffer overflow.

4

What versions of Netatalk are affected by CVE-2026-45699?

Netatalk versions 3.1.19 through 4.4.2 are affected by CVE-2026-45699.

5

What components of Netatalk should I be concerned about with CVE-2026-45699?

The vulnerability in CVE-2026-45699 specifically affects the afpd daemon in Netatalk.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203