Severity |
|
Remote |
|
Type |
+ |
Arbitrary code execution |
|
Description |
+ |
Stack-based buffer overflow in ntpq and ntpdc of NTP version 4.2.8p11 allows an attacker to achieve code execution or escalate to higher privileges via a long string as the argument for an IPv4 or IPv6 command-line parameter. |
|
References |
+ |
https://gist.github.com/fakhrizulkifli/9b58ed8e0354e8deee50b0eebd1c011f |
+ |
http://bk.ntp.org/ntp-stable/?PAGE=patch&REV=5b3ba863G-42Ac2TFzCy-PZ8vqNfVA |
|
Notes |
+ |
NOTE: It is unclear whether there are any common situations in which ntpq or ntpdc is used with a command line from an untrusted source. |
+ |
|
+ |
Reproducer: |
+ |
/usr/bin/ntpdc -4 \[`python2 -c 'print "A" * 300'`\] |
+ |
|
+ |
Note that ntpdc aborts due to stack smashing being detected. |
|