CVE-2026-49388

Description

A flaw was found in Netatalk. An authenticated remote attacker with access to a Spotlight-enabled volume can trigger an out-of-bounds heap read by sending a specially crafted Apple Filing Protocol (AFP) request containing a manipulated table-of-contents index. This vulnerability can lead to a Denial of Service (DoS) by reliably crashing the worker process serving that session, or potentially result in information disclosure.

Statement

This vulnerability is rated as Moderate severity because successful exploitation requires an authenticated remote user with access to an AFP volume that has the optional Spotlight search feature explicitly enabled. Although the out-of-bounds heap read triggers a denial of service, the blast radius is confined to terminating the worker process handling that specific client session, preventing remote code execution or disruption to other sessions. Additionally, Netatalk is not packaged or shipped in Red Hat Enterprise Linux, meaning standard Red Hat environments do not expose this service by default.

Mitigation

Disable Spotlight support in Netatalk configuration or restrict network access to the AFP service:

1. Disable Spotlight globally or per volume by editing `/etc/netatalk/afp.conf` (or `/etc/afp.conf`) to include:

[Global]
spotlight = no
Alternatively, set `spotlight = no` within each individual volume section.

2. Apply the configuration change by restarting the Netatalk service:

systemctl restart netatalk

3. If AFP service access is required only from specific hosts, restrict network exposure using firewalld:

firewall-cmd --permanent --remove-service=afp
firewall-cmd --reload

Caveats: Disabling Spotlight prevents connected clients from performing Spotlight searches over AFP shares. Restricting network access prevents unlisted hosts from connecting.
Warning: Restarting the Netatalk service terminates active client sessions and interrupts current file sharing operations.

Understanding the Weakness (CWE)

Confidentiality

Technical Impact: Read Memory

An attacker could get secret values such as cryptographic keys, PII, memory addresses, or other information that could be used in additional attacks.

Confidentiality

Technical Impact: Bypass Protection Mechanism

Out-of-bounds memory could contain memory addresses or other information that can be used to bypass ASLR and other protection mechanisms in order to improve the reliability of exploiting a separate weakness for code execution.

Availability

Technical Impact: DoS: Crash, Exit, or Restart

An attacker could cause a segmentation fault or crash by causing memory to be read outside of the bounds of the buffer. This is especially likely when the code reads a variable amount of data and assumes that a sentinel exists to stop the read operation, such as a NUL in a string.

Other

Technical Impact: Varies by Context

The read operation could produce other undefined or unexpected results.

Frequently Asked Questions

Want to get errata notifications? Sign up here.