Netatalk Security Advisory

Subject Out-of-bounds read in NBP lookup reply handling
CVE ID# CVE-2026-142089
Severity Low
Disclosure Date 2026/12/04
Affected Versions 1.3-2.4.10, 4.0.0-4.6.0
Summary A malformed NBP lookup reply can retain an overlong name length and cause duplicate-response matching to read beyond a fixed-size buffer

Description

NBP object, type, and zone names have a 32-byte limit. In libatalk/nbp/nbp_util.c, nbp_parse() rejects an overlong object name with -1, but returns the non-error value 1 when a type or zone length exceeds that limit. The lookup loop in libatalk/nbp/nbp_lkup.c accepts every non-negative parser result and retains the invalid length in a struct nbpnve.

When a subsequent malformed tuple reaches duplicate-response matching, nbp_match() can pass the attacker-controlled nn_typelen to strndiacasecmp(). The type array holds only 32 bytes, so the comparison can read beyond the array and the containing structure (CWE-125). AddressSanitizer reports an invalid read in strndiacasecmp() through nbp_match(). The zone length branch has the same parser error, but lookup duplicate matching passes NBPMATCH_NOZONE; the demonstrated path uses the type length.

An unauthenticated attacker on the same AppleTalk network can send malformed NBP lookup replies while an affected process performs a lookup. The invalid read can terminate an instrumented process and may crash an uninstrumented process, depending on memory layout, causing denial of service. Disclosure of the bytes read, 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-142089.patch.

CVSS Calculation

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

Workaround

Until upgraded, restrict untrusted devices from sending AppleTalk traffic to hosts that perform NBP lookups. Avoid NBP lookups on AppleTalk networks where that traffic cannot be restricted.

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.