Read the docs

Use-after-free and double-free in Netatalk afpd DHX2 authentication

Priority MEDIUM 50CWE-415Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.01073 64th percentileScored 2026-11-30
Fix Fixed netatalk (Netatalk): 4.5.1

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

VendorProductAffected versionsFixed inStatusSource
Netatalknetatalk2.0.0 to before 4.5.14.5.1Patch availableCNA
  • netatalk VendorNetatalk Affected 2.0.0 to before 4.5.1 Fixed in 4.5.1 Patch available CNA

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

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-11-20 Threatist record created from CVE-2026-62318
  2. 2026-11-23 CISA SSVC decision points changed
  3. 2026-11-24 Affected versions changed · Red Hat
  4. 2026-11-24 CVSS score added · Red Hat

References

  • 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
See all 65 →

Sources