Off-by-one in Netatalk - CVE-2024-38441
Published: July 1, 2024 / Updated: July 18, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to an off-by-one error within the ibuf[len] to "\0" in FPMapName in afp_mapname in etc/afpd/directory.c. A remote attacker can trigger an off-by-one error and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
QNAP QTS
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Software Development Kit 12
SUSE Linux Enterprise Workstation Extension 12
Ubuntu
Slackware Linux
Fedora
netatalk (Ubuntu package)
libatalk0-debuginfo
libatalk0
netatalk-debugsource
netatalk
netatalk-devel
netatalk-debuginfo
QuTS hero
How to mitigate CVE-2024-38441
netatalk (Ubuntu package) - addressed in versions Ubuntu Pro, 3.1.12~ds-4ubuntu0.20.04.4, 3.1.12~ds-9ubuntu0.22.04.4
QuTS hero - update to h5.2.5.3138 build 20250519
libatalk0-debuginfo - update to 3.1.18-3.25.1
libatalk0 - update to 3.1.18-3.25.1
netatalk-debugsource - update to 3.1.18-3.25.1
netatalk - update to 3.1.18-3.25.1
netatalk-devel - update to 3.1.18-3.25.1
netatalk-debuginfo - update to 3.1.18-3.25.1
netatalk - update to 3.2.1
netatalk - update to 3.2.1-1.fc40
QNAP QTS - update to 5.2.5.3145 20250526
External References
- https://github.com/Netatalk/netatalk/issues/1098
- https://github.com/Netatalk/netatalk/blob/90d91a9ac9a7d6132ab7620d31c8c23400949206/etc/afpd/directory.c#L2333
- https://github.com/Netatalk/netatalk/security/advisories/GHSA-mj6v-cr68-mj9q
- https://netatalk.io/security/CVE-2024-38441
- https://netatalk.io/security/CVE-2024-38441.html