CVE-2026-62318Netatalk: afpd DHX2 UAM pre-authentication use-after-free and double-free via repeated…
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | netatalk | Fix pending | UBUNTU-CVE-2026-62318 | |
| Ubuntu 26.04 | netatalk | Under investigation | UBUNTU-CVE-2026-62318 | |
| Ubuntu 24.04 | netatalk | Fix pending | UBUNTU-CVE-2026-62318 | |
| Ubuntu 22.04 | netatalk | Fix pending | UBUNTU-CVE-2026-62318 | |
| Ubuntu 20.04 | netatalk | Fix pending | UBUNTU-CVE-2026-62318 | |
| Ubuntu 18.04 | netatalk | Fix pending | UBUNTU-CVE-2026-62318 | |
| Ubuntu 16.04 | netatalk | Fix pending | UBUNTU-CVE-2026-62318 | |
| Ubuntu 14.04 | netatalk | Fix pending | UBUNTU-CVE-2026-62318 | |
| Debian 14 | netatalk | Fixed | 4.5.1~ds-1 | DEBIAN-CVE-2026-62318 |
| Debian 13 | netatalk | Fix pending | DEBIAN-CVE-2026-62318 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- netatalk: affected: >= 2.0.0, < 4.5.1
References
- 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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.