CVE-2026-62318 Netatalk: afpd DHX2 UAM pre-authentication use-after-free and double-free via repeated FPLoginCont
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
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.
Upgrade path
7 packages: 1 fixed, 5 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/netatalk(Debian 13) | = 4.2.3~ds-1; = 4.2.3~ds-1+deb13u1; = 4.2.3~ds-1+deb13u2; = 4.2.3~ds-2 +9 more | No fix listed | No fix yet |
| ubuntu/netatalk(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/netatalk(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/netatalk(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/netatalk(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/netatalk(Debian 14) | < 4.5.1~ds-1; = 4.2.3~ds-1; = 4.2.3~ds-2; = 4.2.3~ds-2.1 +6 more | 4.5.1~ds-1 | Fixed |
| netatalk | = >= 2.0.0, < 4.5.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/netatalk(Debian:13) | All versions | No fix listed |
| debian/netatalk(Debian:13) | = 4.2.3~ds-1 | No fix listed |
| debian/netatalk(Debian:13) | = 4.2.3~ds-1+deb13u1 | No fix listed |
| debian/netatalk(Debian:13) | = 4.2.3~ds-1+deb13u2 | No fix listed |
| debian/netatalk(Debian:13) | = 4.2.3~ds-2 | No fix listed |
| debian/netatalk(Debian:13) | = 4.2.3~ds-2.1 | No fix listed |
| debian/netatalk(Debian:13) | = 4.4.1~ds-1 | No fix listed |
| debian/netatalk(Debian:13) | = 4.4.2~ds-1 | No fix listed |
| debian/netatalk(Debian:13) | = 4.4.3~ds-1 | No fix listed |
| debian/netatalk(Debian:13) | = 4.5.0~ds-1 | No fix listed |
| debian/netatalk(Debian:13) | = 4.5.0~ds-2 | No fix listed |
| debian/netatalk(Debian:13) | = 4.5.0~ds-3 | No fix listed |
| debian/netatalk(Debian:13) | = 4.5.1~ds-1 | No fix listed |
| debian/netatalk(Debian:14) | < 4.5.1~ds-1 | 4.5.1~ds-1 |
| debian/netatalk(Debian:14) | = 4.2.3~ds-1 | No fix listed |
| debian/netatalk(Debian:14) | = 4.2.3~ds-2 | No fix listed |
| debian/netatalk(Debian:14) | = 4.2.3~ds-2.1 | No fix listed |
| debian/netatalk(Debian:14) | = 4.4.1~ds-1 | No fix listed |
| debian/netatalk(Debian:14) | = 4.4.2~ds-1 | No fix listed |
| debian/netatalk(Debian:14) | = 4.4.3~ds-1 | No fix listed |
| debian/netatalk(Debian:14) | = 4.5.0~ds-1 | No fix listed |
| debian/netatalk(Debian:14) | = 4.5.0~ds-2 | No fix listed |
| debian/netatalk(Debian:14) | = 4.5.0~ds-3 | No fix listed |
| ubuntu/netatalk(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/netatalk(Ubuntu:24.04) | All versions | No fix listed |
Show 3 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/netatalk(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/netatalk(Ubuntu:26.10) | All versions | No fix listed |
| netatalk | = >= 2.0.0, < 4.5.1 | No fix listed |
References
- Debian Security Tracker CVE-2026-62318 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking
- 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