Use-after-free and double-free in Netatalk afpd DHX2 authentication
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-415 and the CVSS impact.
Summary
Netatalk from 2.0.0 before 4.5.1 has a flaw in the DHX2 and DHX2-PAM authentication state machine, where repeating a continuation step reuses memory that was already released (CWE-416). When DHX2 or DHX2-PAM is enabled in the UAM list, a remote attacker without valid AFP credentials can repeat the first continuation step and crash a privileged afpd worker before authentication. The demonstrated result is a repeatable crash, and the flaw also frees the same value twice, which offers a plausible primitive for allocator exploitation, though code execution was not demonstrated.
Written with Claude Haiku 5.5 from the sources below · 2026-11-24
Description from the CNA
Netatalk is a Free and Open Source file server suite for Unix-like operating systems. From 2.0.0 until 4.5.1, the DHX2 and DHX2-PAM authentication state machine in etc/uams/uams_dhx2_pam.c permits logincont1 to be invoked again with the same FPLoginCont retID after it has released the global gcry_mpi_t Ra object. When DHX2 or DHX2PAM is enabled in the UAM list, a remote attacker without valid AFP credentials can repeat the first continuation step, causing gcry_mpi_powm to dereference the freed Ra value and gcry_mpi_release to free it again in a privileged afpd worker. The demonstrated result is a repeatable pre-authentication worker crash, and the use-after-free and double-free provide a plausible allocator exploitation primitive although code execution was not demonstrated. This issue is fixed in version 4.5.1.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade netatalk to version 4.5.1, which fixes the issue.
Written with Claude Haiku 5.5 from the sources below · 2026-11-24
- Fix · CNA netatalk (Netatalk) Fixed in 4.5.1
Vendor assessments
Timeline
- 2026-11-20 Threatist record created from CVE-2026-62318
- 2026-11-23 CISA SSVC decision points changed
- 2026-11-24 Affected versions changed · Red Hat
- 2026-11-24 CVSS score added · Red Hat
References
Other 4
- https://github.com/Netatalk/netatalk/security/advisories/GHSA-5wp7-47vr-j2mh
- https://github.com/Netatalk/netatalk/commit/c2ea1f459d85c17a43378ea85a19912ce5eb3dd1
- https://github.com/Netatalk/netatalk/commit/fe0a2b72a64b4f0291fa1ca8c049f56b5081d65a
- https://github.com/Netatalk/netatalk/releases/tag/netatalk-4-5-1
More Netatalk vulnerabilities
- TI-2018-01076 Out-of-bounds write in Netatalk CVSS 3.1CRITICAL 9.8
- TI-2024-25689 Netatalk before 3.2.1 has an off-by-one error and resultant heap-based buffer overflow… CVSS 3.1CRITICAL 9.8
- TI-2024-25690 Netatalk before 3.2.1 has an off-by-one error, and resultant heap-based buffer overflow… CVSS 3.1HIGH 7.5
- TI-2022-22254 Netatalk through 3.1.13 has an afp_getappl heap-based buffer overflow resulting in code… CVSS 3.1HIGH 7.8
- TI-2026-95949 Out-of-bounds heap read in Netatalk Spotlight RPC unmarshalling CVSS 3.1HIGH 7.1
- TI-2026-95948 Out-of-bounds read in Netatalk afpd Spotlight RPC handling CVSS 3.1HIGH 7.1
Sources
- CVE-2026-62318 · CVE Program
- CVE-2026-62318 · NVD
- FIRST EPSS
- CVE-2026-62318 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences