Netatalk Security Advisory

Subject One-byte stack buffer overflow in PAP font query handling
CVE ID# CVE-2026-142084
Severity Moderate
Disclosure Date 2026/12/04
Affected Versions 1.3-2.4.10, 4.0.0-4.6.0
Summary An unauthenticated AppleTalk peer can crash papd with an overlong font name in a PAP query

Description

The PostScript query table in etc/papd/queries.c dispatches %%?BeginFontQuery input to cq_font(), which passes client-controlled font names to cq_font_answer(). That function copies each name into a 256-byte stack buffer. Its loop permits 256 bytes to be copied, leaving no room for the NUL terminator. For a font-name token containing at least 256 non-whitespace bytes, the subsequent terminator write lands one byte beyond the buffer (CWE-121).

An unauthenticated client that can send PAP traffic to a running papd can trigger the overwrite. The server must be built with AppleTalk support and be reachable over PAP. The one-byte stack overwrite can crash papd, disrupting print service. Further exploitation may depend on the platform, compiler, and stack layout; confidentiality loss, meaningful data modification, and arbitrary 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-142084.patch.

CVSS Calculation

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

Workaround

Until upgraded, restrict untrusted devices from sending AppleTalk PAP traffic to papd. Disable the print service if it cannot be isolated.

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.