NTP BUG 3383: Stack Buffer Overflow from Command Line (WINDOWS installer ONLY)
Last update: April 22, 2024 18:49 UTC (7e7bd5857)
Summary
Description
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.
Mitigation
Credit
This weakness was discovered by Cure53.
Timeline