CVE-2023-42464
NixOS vulnerability analysis and mitigation

Overview

A Type Confusion vulnerability (CVE-2023-42464) was discovered in the Spotlight RPC functions in Netatalk's afpd daemon, affecting versions 3.1.0 through 3.1.16. The vulnerability was found by Florent Saudel and Arnaud Gatignol of Thalium team and was disclosed on September 16, 2023. The issue affects the Apple Filing Protocol (AFP) service implementation, particularly in systems running Netatalk for providing file services to macOS clients (Netatalk Security, GitHub Issue).

Technical details

The vulnerability stems from a lack of type checking in callers of the dallocvaluefor_key() function, which returns the object associated with a key. When parsing Spotlight RPC packets, one encoded data structure is a key-value style dictionary where the keys are character strings, and the values can be any of the supported types in the underlying protocol. The CVSS v3.1 base score is 9.8 (CRITICAL) with a vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. The vulnerability shares common heritage with Samba and is logically identical to CVE-2023-34967 (NVD, Netatalk Security).

Impact

Due to the type confusion vulnerability, a malicious actor may be able to fully control the value of the pointer and potentially achieve Remote Code Execution on the host. The vulnerability has received a critical severity rating due to its potential for complete system compromise without requiring authentication or user interaction (NVD).

Mitigation and workarounds

The vulnerability has been patched in Netatalk version 3.1.17. Users can either upgrade to this version or apply the patch with git hash a0ee3c2. As a workaround, since Spotlight is an optional feature in Netatalk and is disabled by default, administrators can disable it by setting 'spotlight = no' in their afp.conf file (Netatalk Security).

Community reactions

Multiple Linux distributions have released security advisories and patches for this vulnerability, including Debian and Ubuntu. Debian released DSA-5503-1 and DLA-3584-1 to address this vulnerability in their stable and LTS releases respectively (Debian Security, Debian LTS).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management