Heap-based buffer overflow in DiskStation DS418 Play - CVE-2021-31439

 

Heap-based buffer overflow in DiskStation DS418 Play - CVE-2021-31439

Published: May 3, 2021 / Updated: July 18, 2026


Vulnerability identifier: #VU52802
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-31439
CWE-ID: CWE-122
Exploitation vector: Adjecent network
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the processing of DSI structures in Netatalk. A remote attacker on the local network can trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

DiskStation DS418 Play
QuTS hero
Gentoo Linux
Debian Linux
QuTScloud
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Software Development Kit
SUSE Linux Enterprise Workstation Extension
Ubuntu
Netatalk
QNAP QTS
netatalk (Ubuntu package)
libatalk12
libatalk12-debuginfo
netatalk
netatalk-debuginfo
netatalk-debugsource
netatalk-devel
netatalk (Debian package)
net-fs/netatalk

How to mitigate CVE-2021-31439

Cybersecurity Help is currently unaware of any official solution to address this vulnerability.

Netatalk - update to 3.1.13
QNAP QTS - update to 4.5.4.2012 20220419
netatalk (Ubuntu package) - addressed in versions Ubuntu Pro, 3.1.12~ds-4ubuntu0.20.04.1, 3.1.12~ds-9ubuntu0.22.04.1, 3.1.13~ds-2ubuntu0.22.10.1
libatalk12 - update to 3.1.0-3.8.1
libatalk12-debuginfo - update to 3.1.0-3.8.1
netatalk - update to 3.1.0-3.8.1
netatalk-debuginfo - update to 3.1.0-3.8.1
netatalk-debugsource - update to 3.1.0-3.8.1
netatalk-devel - update to 3.1.0-3.8.1
netatalk (Debian package) - update to 3.1.12~ds-8+deb11u1
net-fs/netatalk - update to 3.1.18

External References

Related Security Bulletins