Netatalk Security Advisory

Subject Stack buffer overflow in atalkd ZIP GetNetInfo reply handling
CVE ID# CVE-2026-142088
Severity Medium
Disclosure Date 2026/12/04
Affected Versions 1.3-2.4.10, 4.0.0-4.6.0
Summary An overlong default-zone name in a ZIP GetNetInfo reply can overflow a stack buffer in atalkd

Description

The ZIPOP_GNIREPLY handler in etc/atalkd/zip.c checks that the default-zone field fits within the received packet, but does not enforce AppleTalk’s 32-byte zone-name limit. It passes the encoded length and attacker-controlled name to addzone() and newzt(), which retain both in a zone-table entry. Other ZIP reply and request paths reject zone names longer than 32 bytes.

When a later ZIP or NBP operation needs the zone’s multicast address, zone_bcast() in etc/atalkd/multicast.c copies the retained name into a 32-byte stack array using the unvalidated length. A 64-byte zone name, for example, writes 32 bytes beyond that array (CWE-121).

An unauthenticated attacker on the same AppleTalk network can send a crafted GetNetInfo reply while a non-seed Phase 2 interface has obtained an AppleTalk address but has not completed configuration. The attacker must be able to send AppleTalk DDP traffic on that network and win the race with a legitimate router’s reply. AFP authentication is not required.

The overflow can crash atalkd and disrupt AppleTalk routing. Further memory corruption may be possible, depending on platform and runtime hardening, but confidentiality loss, integrity impact, and code execution have not been demonstrated.

Patch Availability

Upgrade to Netatalk 4.6.1 or later, which includes the fix. Source builds can apply CVE-2026-142088.patch.

CVSS Calculation

CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N (6.0)

Workaround

Until upgraded, avoid running atalkd with non-seed Phase 2 interfaces on AppleTalk networks where untrusted devices can send DDP traffic. Restrict access to those networks if the configuration cannot be changed.

Credits

Vulnerability reported by:

Pavel Kohout of Aisle Research

Patch developed by:

Daniel Markstedt of the Netatalk team

References


Go back to the Security Policy.