The Windows installer for NTP calls strcat(), blindly appending the string passed to the stack buffer in the addSourceToRegistry() function. The stack buffer is 70 bytes smaller than the buffer in the calling main() function. Together with the initially copied Registry path, the combination causes a stack buffer overflow and effectively overwrites the stack frame. The passed application path is actually limited to 256 bytes by the operating system, but this is not sufficient to assure that the affected stack buffer is consistently protected against overflowing at all times. Upstream bug: http://support.ntp.org/bin/view/Main/NtpBug3383 References: http://support.ntp.org/bin/view/Main/SecurityNotice#March_2017_ntp_4_2_8p10_NTP_Secu
Acknowledgments: Name: the NTP project Upstream: Cure53
Statement: This issue did not affect the versions of ntp as shipped with Red Hat Enterprise Linux.