Netatalk Security Advisory

Subject NULL pointer dereference in non-CUPS PAP printer status handling
CVE ID# CVE-2026-142083
Severity High
Disclosure Date 2026/12/04
Affected Versions 2.3.0-2.4.10, 4.0.0-4.6.0
Summary An unauthenticated AppleTalk peer can crash papd with a PAP open or status request to a spooled printer

Description

The PAP request dispatcher in etc/papd/main.c calls getstatus() when constructing replies to both PAP_OPEN and PAP_SENDSTATUS. In builds without CUPS support, getstatus() opens a spooled printer’s status file with fopen(path, O_RDONLY). The second argument to fopen() must be a mode string, such as "r". O_RDONLY is an integer flag for open() whose POSIX value is zero, so the call passes a NULL mode pointer (CWE-476). Common libc implementations dereference that pointer while parsing the mode and terminate papd with SIGSEGV.

An unauthenticated peer that can send AppleTalk PAP traffic to papd can trigger the crash with either request type. The vulnerable branch requires an AppleTalk-enabled build without CUPS support and a spooled printer with a configured spool directory. PAP_OPEN reaches getstatus() while constructing its reply; PAP_SENDSTATUS reaches the same function directly. A single request can stop the printing service, and repeated requests can keep it unavailable through a crash and restart cycle. No confidentiality or integrity impact has been demonstrated.

Patch Availability

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

CVSS Calculation

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

Workaround

Until upgraded, restrict untrusted devices from sending AppleTalk PAP traffic to papd. If that is not possible, avoid serving spooled printers with a non-CUPS build.

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.