Out-of-bounds write in atftp - CVE-2019-11365

 

Out-of-bounds write in atftp - CVE-2019-11365

Published: April 20, 2019 / Updated: September 29, 2020


Vulnerability identifier: #VU47132
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-11365
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.

An issue was discovered in atftpd in atftp 0.7.1. A remote attacker may send a crafted packet triggering a stack-based buffer overflow due to an insecurely implemented strncpy call. The vulnerability is triggered by sending an error packet of 3 bytes or fewer. There are multiple instances of this vulnerable strncpy pattern within the code base, specifically within tftpd_file.c, tftp_file.c, tftpd_mtftp.c, and tftp_mtftp.c.


Affected software

atftp
Gentoo Linux
Ubuntu
atftp (Ubuntu package)
atftpd (Ubuntu package)

How to mitigate CVE-2019-11365

Install update from vendor's website.

atftp (Ubuntu package) - update to 0.7.git20120829-3.1~0.16.04.1
atftpd (Ubuntu package) - addressed in versions 0.7.git20120829-3.1~0.16.04.1, 0.7.git20120829-3.1~0.18.04.1

External References

Related Security Bulletins