Synopsis
Tenable discovered an out-of-bounds write in Netatalk's dsi_opensession() function in dsi_opensess.c. The vulnerable code follows:
memcpy(&dsi->attn_quantum, dsi->commands + i + 1, dsi->commands[i]);
The attn_quantum variable is a 32 bit integer and dsi->commands is attacker controlled. A remote unauthenticated attacker can leverage this to write 251 bytes beyond the attn_quantum in the dsi struct and control code execution.
Solution
Upgrade to Netatalk 3.1.12.Additional References
http://netatalk.sourceforge.net/3.1/ReleaseNotes3.1.12.htmlhttps://attachments.samba.org/attachment.cgi?id=14735
https://github.com/tenable/poc/tree/master/netatalk/cve_2018_1160/
https://www.synology.com/en-us/security/advisory/Synology_SA_18_62
https://bugzilla.opensuse.org/show_bug.cgi?id=1119540
Disclosure Timeline
All information within TRA advisories is provided “as is”, without warranty of any kind, including the implied warranties of merchantability and fitness for a particular purpose, and with no guarantee of completeness, accuracy, or timeliness. Individuals and organizations are responsible for assessing the impact of any actual or potential security vulnerability.
Tenable takes product security very seriously. If you believe you have found a vulnerability in one of our products, we ask that you please work with us to quickly resolve it in order to protect customers. Tenable believes in responding quickly to such reports, maintaining communication with researchers, and providing a solution in short order.
For more details on submitting vulnerability information, please see our Vulnerability Reporting Guidelines page.
If you have questions or corrections about this advisory, please email [email protected]