Netatalk Security Advisory
| Subject | Stack buffer overflow in MacIP ZIP zone-list reply handling |
|---|---|
| CVE ID# | CVE-2026-142090 |
| Severity | Medium |
| Disclosure Date | 2026/12/04 |
| Affected Versions | 4.0.0-4.6.0 |
| Summary | A malformed ZIP GetZoneList reply can overflow a stack buffer during MacIP gateway zone discovery |
Description
During startup zone discovery, get_zones() in contrib/macipgw/macip.c
passes a network-derived ZIP GetZoneList reply to add_zones(). The parser
copies each zone name into a 32-byte stack buffer using the entry’s untrusted
length byte, then writes a terminator at that offset without checking the
length (CWE-121). A length of 32 causes a one-byte out-of-bounds terminator
write; a larger length also overflows the copy. The parser does not verify
that the advertised number of entries and their lengths fit within the
received reply, creating additional out-of-bounds parsing risk.
An unauthenticated attacker on the same AppleTalk network can send a crafted
ZIP reply while macipgw performs zone discovery. The attacker must be able
to send AppleTalk traffic to the gateway or spoof a responder. A reply with a
zone length byte of 0x20 and corresponding name bytes reaches the invalid
write. AddressSanitizer can detect the out-of-bounds write, and a crafted
reply can crash the gateway. Code execution has not been demonstrated.
Patch Availability
Upgrade to Netatalk 4.6.1 or later, which includes the fix. Source builds can apply CVE-2026-142090.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 macipgw on AppleTalk networks where untrusted
devices can send ZIP replies. Restrict access to those networks if the gateway
must remain enabled.
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.