NEWS revision 310419
1130803Smarcel--- 2130803SmarcelNTP 4.2.8p9 (Harlan Stenn <stenn@ntp.org>, 2016/11/21) 3130803Smarcel 4130803SmarcelFocus: Security, Bug fixes, enhancements. 5130803Smarcel 6130803SmarcelSeverity: HIGH 7130803Smarcel 8130803SmarcelIn addition to bug fixes and enhancements, this release fixes the 9130803Smarcelfollowing 1 high- (Windows only), 2 medium-, 2 medium-/low, and 10130803Smarcel5 low-severity vulnerabilities, and provides 28 other non-security 11130803Smarcelfixes and improvements: 12130803Smarcel 13130803Smarcel* Trap crash 14130803Smarcel Date Resolved: 21 November 2016; Dev (4.3.94) 21 November 2016 15130803Smarcel References: Sec 3119 / CVE-2016-9311 / VU#633847 16130803Smarcel Affects: ntp-4.0.90 (21 July 1999), possibly earlier, up to but not 17130803Smarcel including 4.2.8p9, and ntp-4.3.0 up to but not including ntp-4.3.94. 18130803Smarcel CVSS2: MED 4.9 (AV:N/AC:H/Au:N/C:N/I:N/A:C) 19130803Smarcel CVSS3: MED 4.4 CVSS:3.0/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H 20130803Smarcel Summary: 21130803Smarcel ntpd does not enable trap service by default. If trap service 22130803Smarcel has been explicitly enabled, an attacker can send a specially 23130803Smarcel crafted packet to cause a null pointer dereference that will 24130803Smarcel crash ntpd, resulting in a denial of service. 25130803Smarcel Mitigation: 26130803Smarcel Implement BCP-38. 27130803Smarcel Use "restrict default noquery ..." in your ntp.conf file. Only 28130803Smarcel allow mode 6 queries from trusted networks and hosts. 29130803Smarcel Upgrade to 4.2.8p9, or later, from the NTP Project Download Page 30130803Smarcel or the NTP Public Services Project Download Page 31130803Smarcel Properly monitor your ntpd instances, and auto-restart ntpd 32130803Smarcel (without -g) if it stops running. 33130803Smarcel Credit: This weakness was discovered by Matthew Van Gundy of Cisco. 34130803Smarcel 35130803Smarcel* Mode 6 information disclosure and DDoS vector 36130803Smarcel Date Resolved: 21 November 2016; Dev (4.3.94) 21 November 2016 37130803Smarcel References: Sec 3118 / CVE-2016-9310 / VU#633847 38130803Smarcel Affects: ntp-4.0.90 (21 July 1999), possibly earlier, up to but not 39130803Smarcel including 4.2.8p9, and ntp-4.3.0 up to but not including ntp-4.3.94. 40130803Smarcel CVSS2: MED 6.4 (AV:A/AC:L/Au:N/C:N/I:N/A:P) 41130803Smarcel CVSS3: MED 6.5 CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L 42130803Smarcel Summary: 43130803Smarcel An exploitable configuration modification vulnerability exists 44130803Smarcel in the control mode (mode 6) functionality of ntpd. If, against 45130803Smarcel long-standing BCP recommendations, "restrict default noquery ..." 46130803Smarcel is not specified, a specially crafted control mode packet can set 47130803Smarcel ntpd traps, providing information disclosure and DDoS 48130803Smarcel amplification, and unset ntpd traps, disabling legitimate 49130803Smarcel monitoring. A remote, unauthenticated, network attacker can 50130803Smarcel trigger this vulnerability. 51130803Smarcel Mitigation: 52130803Smarcel Implement BCP-38. 53130803Smarcel Use "restrict default noquery ..." in your ntp.conf file. 54130803Smarcel Upgrade to 4.2.8p9, or later, from the NTP Project Download Page 55130803Smarcel or the NTP Public Services Project Download Page 56130803Smarcel Properly monitor your ntpd instances, and auto-restart ntpd 57130803Smarcel (without -g) if it stops running. 58130803Smarcel Credit: This weakness was discovered by Matthew Van Gundy of Cisco. 59130803Smarcel 60130803Smarcel* Broadcast Mode Replay Prevention DoS 61130803Smarcel Date Resolved: 21 November 2016; Dev (4.3.94) 21 November 2016 62130803Smarcel References: Sec 3114 / CVE-2016-7427 / VU#633847 63130803Smarcel Affects: ntp-4.2.8p6, up to but not including ntp-4.2.8p9, and 64130803Smarcel ntp-4.3.90 up to, but not including ntp-4.3.94. 65130803Smarcel CVSS2: LOW 3.3 (AV:A/AC:L/Au:N/C:N/I:N/A:P) 66130803Smarcel CVSS3: MED 4.3 CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L 67130803Smarcel Summary: 68130803Smarcel The broadcast mode of NTP is expected to only be used in a 69130803Smarcel trusted network. If the broadcast network is accessible to an 70130803Smarcel attacker, a potentially exploitable denial of service 71130803Smarcel vulnerability in ntpd's broadcast mode replay prevention 72130803Smarcel functionality can be abused. An attacker with access to the NTP 73130803Smarcel broadcast domain can periodically inject specially crafted 74130803Smarcel broadcast mode NTP packets into the broadcast domain which, 75130803Smarcel while being logged by ntpd, can cause ntpd to reject broadcast 76130803Smarcel mode packets from legitimate NTP broadcast servers. 77130803Smarcel Mitigation: 78130803Smarcel Implement BCP-38. 79130803Smarcel Upgrade to 4.2.8p9, or later, from the NTP Project Download Page 80130803Smarcel or the NTP Public Services Project Download Page 81130803Smarcel Properly monitor your ntpd instances, and auto-restart ntpd 82130803Smarcel (without -g) if it stops running. 83130803Smarcel Credit: This weakness was discovered by Matthew Van Gundy of Cisco. 84130803Smarcel 85130803Smarcel* Broadcast Mode Poll Interval Enforcement DoS 86130803Smarcel Date Resolved: 21 November 2016; Dev (4.3.94) 21 November 2016 87130803Smarcel References: Sec 3113 / CVE-2016-7428 / VU#633847 88130803Smarcel Affects: ntp-4.2.8p6, up to but not including ntp-4.2.8p9, and 89130803Smarcel ntp-4.3.90 up to, but not including ntp-4.3.94 90130803Smarcel CVSS2: LOW 3.3 (AV:A/AC:L/Au:N/C:N/I:N/A:P) 91130803Smarcel CVSS3: MED 4.3 CVSS:3.0/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L 92130803Smarcel Summary: 93130803Smarcel The broadcast mode of NTP is expected to only be used in a 94130803Smarcel trusted network. If the broadcast network is accessible to an 95130803Smarcel attacker, a potentially exploitable denial of service 96130803Smarcel vulnerability in ntpd's broadcast mode poll interval enforcement 97130803Smarcel functionality can be abused. To limit abuse, ntpd restricts the 98130803Smarcel rate at which each broadcast association will process incoming 99130803Smarcel packets. ntpd will reject broadcast mode packets that arrive 100130803Smarcel before the poll interval specified in the preceding broadcast 101130803Smarcel packet expires. An attacker with access to the NTP broadcast 102130803Smarcel domain can send specially crafted broadcast mode NTP packets to 103130803Smarcel the broadcast domain which, while being logged by ntpd, will 104130803Smarcel cause ntpd to reject broadcast mode packets from legitimate NTP 105130803Smarcel broadcast servers. 106130803Smarcel Mitigation: 107130803Smarcel Implement BCP-38. 108130803Smarcel Upgrade to 4.2.8p9, or later, from the NTP Project Download Page 109130803Smarcel or the NTP Public Services Project Download Page 110130803Smarcel Properly monitor your ntpd instances, and auto-restart ntpd 111130803Smarcel (without -g) if it stops running. 112130803Smarcel Credit: This weakness was discovered by Matthew Van Gundy of Cisco. 113130803Smarcel 114130803Smarcel* Windows: ntpd DoS by oversized UDP packet 115130803Smarcel Date Resolved: 21 November 2016; Dev (4.3.94) 21 November 2016 116130803Smarcel References: Sec 3110 / CVE-2016-9312 / VU#633847 117130803Smarcel Affects Windows only: ntp-4.?.?, up to but not including ntp-4.2.8p9, 118130803Smarcel and ntp-4.3.0 up to, but not including ntp-4.3.94. 119130803Smarcel CVSS2: HIGH 7.8 (AV:N/AC:L/Au:N/C:N/I:N/A:C) 120130803Smarcel CVSS3: HIGH 7.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 121130803Smarcel Summary: 122130803Smarcel If a vulnerable instance of ntpd on Windows receives a crafted 123130803Smarcel malicious packet that is "too big", ntpd will stop working. 124130803Smarcel Mitigation: 125130803Smarcel Implement BCP-38. 126130803Smarcel Upgrade to 4.2.8p9, or later, from the NTP Project Download Page 127130803Smarcel or the NTP Public Services Project Download Page 128130803Smarcel Properly monitor your ntpd instances, and auto-restart ntpd 129130803Smarcel (without -g) if it stops running. 130130803Smarcel Credit: This weakness was discovered by Robert Pajak of ABB. 131130803Smarcel 132130803Smarcel* 0rigin (zero origin) issues 133130803Smarcel Date Resolved: 21 November 2016; Dev (4.3.94) 21 November 2016 134130803Smarcel References: Sec 3102 / CVE-2016-7431 / VU#633847 135130803Smarcel Affects: ntp-4.2.8p8, and ntp-4.3.93. 136130803Smarcel CVSS2: MED 5.0 (AV:N/AC:L/Au:N/C:N/I:P/A:N) 137130803Smarcel CVSS3: MED 5.3 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N 138130803Smarcel Summary: 139130803Smarcel Zero Origin timestamp problems were fixed by Bug 2945 in 140130803Smarcel ntp-4.2.8p6. However, subsequent timestamp validation checks 141130803Smarcel introduced a regression in the handling of some Zero origin 142130803Smarcel timestamp checks. 143130803Smarcel Mitigation: 144130803Smarcel Implement BCP-38. 145130803Smarcel Upgrade to 4.2.8p9, or later, from the NTP Project Download Page 146130803Smarcel or the NTP Public Services Project Download Page 147130803Smarcel Properly monitor your ntpd instances, and auto-restart ntpd 148130803Smarcel (without -g) if it stops running. 149130803Smarcel Credit: This weakness was discovered by Sharon Goldberg and Aanchal 150130803Smarcel Malhotra of Boston University. 151130803Smarcel 152130803Smarcel* read_mru_list() does inadequate incoming packet checks 153130803Smarcel Date Resolved: 21 November 2016; Dev (4.3.94) 21 November 2016 154130803Smarcel References: Sec 3082 / CVE-2016-7434 / VU#633847 155130803Smarcel Affects: ntp-4.2.7p22, up to but not including ntp-4.2.8p9, and 156130803Smarcel ntp-4.3.0 up to, but not including ntp-4.3.94. 157130803Smarcel CVSS2: LOW 3.8 (AV:L/AC:H/Au:S/C:N/I:N/A:C) 158130803Smarcel CVSS3: LOW 3.8 CVSS:3.0/AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:H 159130803Smarcel Summary: 160130803Smarcel If ntpd is configured to allow mrulist query requests from a 161130803Smarcel server that sends a crafted malicious packet, ntpd will crash 162130803Smarcel on receipt of that crafted malicious mrulist query packet. 163130803Smarcel Mitigation: 164130803Smarcel Only allow mrulist query packets from trusted hosts. 165130803Smarcel Implement BCP-38. 166130803Smarcel Upgrade to 4.2.8p9, or later, from the NTP Project Download Page 167130803Smarcel or the NTP Public Services Project Download Page 168130803Smarcel Properly monitor your ntpd instances, and auto-restart ntpd 169130803Smarcel (without -g) if it stops running. 170130803Smarcel Credit: This weakness was discovered by Magnus Stubman. 171130803Smarcel 172130803Smarcel* Attack on interface selection 173130803Smarcel Date Resolved: 21 November 2016; Dev (4.3.94) 21 November 2016 174130803Smarcel References: Sec 3072 / CVE-2016-7429 / VU#633847 175130803Smarcel Affects: ntp-4.2.7p385, up to but not including ntp-4.2.8p9, and 176130803Smarcel ntp-4.3.0 up to, but not including ntp-4.3.94 177130803Smarcel CVSS2: LOW 1.0 (AV:L/AC:H/Au:S/C:N/I:N/A:P) 178130803Smarcel CVSS3: LOW 1.6 CVSS:3.0/AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:L 179130803Smarcel Summary: 180130803Smarcel When ntpd receives a server response on a socket that corresponds 181130803Smarcel to a different interface than was used for the request, the peer 182130803Smarcel structure is updated to use the interface for new requests. If 183130803Smarcel ntpd is running on a host with multiple interfaces in separate 184130803Smarcel networks and the operating system doesn't check source address in 185130803Smarcel received packets (e.g. rp_filter on Linux is set to 0), an 186130803Smarcel attacker that knows the address of the source can send a packet 187130803Smarcel with spoofed source address which will cause ntpd to select wrong 188130803Smarcel interface for the source and prevent it from sending new requests 189130803Smarcel until the list of interfaces is refreshed, which happens on 190130803Smarcel routing changes or every 5 minutes by default. If the attack is 191130803Smarcel repeated often enough (once per second), ntpd will not be able to 192130803Smarcel synchronize with the source. 193130803Smarcel Mitigation: 194130803Smarcel Implement BCP-38. 195130803Smarcel Upgrade to 4.2.8p9, or later, from the NTP Project Download Page 196130803Smarcel or the NTP Public Services Project Download Page 197130803Smarcel If you are going to configure your OS to disable source address 198130803Smarcel checks, also configure your firewall configuration to control 199130803Smarcel what interfaces can receive packets from what networks. 200130803Smarcel Properly monitor your ntpd instances, and auto-restart ntpd 201130803Smarcel (without -g) if it stops running. 202130803Smarcel Credit: This weakness was discovered by Miroslav Lichvar of Red Hat. 203130803Smarcel 204130803Smarcel* Client rate limiting and server responses 205130803Smarcel Date Resolved: 21 November 2016; Dev (4.3.94) 21 November 2016 206130803Smarcel References: Sec 3071 / CVE-2016-7426 / VU#633847 207130803Smarcel Affects: ntp-4.2.5p203, up to but not including ntp-4.2.8p9, and 208130803Smarcel ntp-4.3.0 up to, but not including ntp-4.3.94 209130803Smarcel CVSS2: LOW 1.0 (AV:L/AC:H/Au:S/C:N/I:N/A:P) 210130803Smarcel CVSS3: LOW 1.6 CVSS:3.0/AV:P/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:L 211130803Smarcel Summary: 212130803Smarcel When ntpd is configured with rate limiting for all associations 213130803Smarcel (restrict default limited in ntp.conf), the limits are applied 214130803Smarcel also to responses received from its configured sources. An 215130803Smarcel attacker who knows the sources (e.g., from an IPv4 refid in 216130803Smarcel server response) and knows the system is (mis)configured in this 217130803Smarcel way can periodically send packets with spoofed source address to 218130803Smarcel keep the rate limiting activated and prevent ntpd from accepting 219130803Smarcel valid responses from its sources. 220130803Smarcel 221130803Smarcel While this blanket rate limiting can be useful to prevent 222130803Smarcel brute-force attacks on the origin timestamp, it allows this DoS 223130803Smarcel attack. Similarly, it allows the attacker to prevent mobilization 224130803Smarcel of ephemeral associations. 225130803Smarcel Mitigation: 226130803Smarcel Implement BCP-38. 227130803Smarcel Upgrade to 4.2.8p9, or later, from the NTP Project Download Page 228130803Smarcel or the NTP Public Services Project Download Page 229130803Smarcel Properly monitor your ntpd instances, and auto-restart ntpd 230130803Smarcel (without -g) if it stops running. 231130803Smarcel Credit: This weakness was discovered by Miroslav Lichvar of Red Hat. 232130803Smarcel 233130803Smarcel* Fix for bug 2085 broke initial sync calculations 234130803Smarcel Date Resolved: 21 November 2016; Dev (4.3.94) 21 November 2016 235130803Smarcel References: Sec 3067 / CVE-2016-7433 / VU#633847 236130803Smarcel Affects: ntp-4.2.7p385, up to but not including ntp-4.2.8p9, and 237130803Smarcel ntp-4.3.0 up to, but not including ntp-4.3.94. But the 238130803Smarcel root-distance calculation in general is incorrect in all versions 239130803Smarcel of ntp-4 until this release. 240130803Smarcel CVSS2: LOW 1.2 (AV:L/AC:H/Au:N/C:N/I:N/A:P) 241130803Smarcel CVSS3: LOW 1.6 CVSS:3.0/AV:P/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:L 242130803Smarcel Summary: 243130803Smarcel Bug 2085 described a condition where the root delay was included 244130803Smarcel twice, causing the jitter value to be higher than expected. Due 245130803Smarcel to a misinterpretation of a small-print variable in The Book, the 246130803Smarcel fix for this problem was incorrect, resulting in a root distance 247130803Smarcel that did not include the peer dispersion. The calculations and 248130803Smarcel formulae have been reviewed and reconciled, and the code has been 249130803Smarcel updated accordingly. 250130803Smarcel Mitigation: 251130803Smarcel Upgrade to 4.2.8p9, or later, from the NTP Project Download Page 252130803Smarcel or the NTP Public Services Project Download Page 253130803Smarcel Properly monitor your ntpd instances, and auto-restart ntpd 254130803Smarcel (without -g) if it stops running. 255130803Smarcel Credit: This weakness was discovered independently by Brian Utterback of 256130803Smarcel Oracle, and Sharon Goldberg and Aanchal Malhotra of Boston University. 257130803Smarcel 258130803SmarcelOther fixes: 259130803Smarcel 260130803Smarcel* [Bug 3142] bug in netmask prefix length detection <perlinger@ntp.org> 261130803Smarcel* [Bug 3138] gpsdjson refclock should honor fudgetime1. stenn@ntp.org 262130803Smarcel* [Bug 3129] Unknown hosts can put resolver thread into a hard loop 263130803Smarcel - moved retry decision where it belongs. <perlinger@ntp.org> 264130803Smarcel* [Bug 3125] NTPD doesn't fully start when ntp.conf entries are out of order 265130803Smarcel using the loopback-ppsapi-provider.dll <perlinger@ntp.org> 266130803Smarcel* [Bug 3116] unit tests for NTP time stamp expansion. <perlinger@ntp.org> 267130803Smarcel* [Bug 3100] ntpq can't retrieve daemon_version <perlinger@ntp.org> 268130803Smarcel - fixed extended sysvar lookup (bug introduced with bug 3008 fix) 269130803Smarcel* [Bug 3095] Compatibility with openssl 1.1 <perlinger@ntp.org> 270130803Smarcel - applied patches by Kurt Roeckx <kurt@roeckx.be> to source 271130803Smarcel - added shim layer for SSL API calls with issues (both directions) 272130803Smarcel* [Bug 3089] Serial Parser does not work anymore for hopfser like device 273130803Smarcel - simplified / refactored hex-decoding in driver. <perlinger@ntp.org> 274130803Smarcel* [Bug 3084] update-leap mis-parses the leapfile name. HStenn. 275130803Smarcel* [Bug 3068] Linker warnings when building on Solaris. perlinger@ntp.org 276130803Smarcel - applied patch thanks to Andrew Stormont <andyjstormont@gmail.com> 277130803Smarcel* [Bug 3067] Root distance calculation needs improvement. HStenn 278130803Smarcel* [Bug 3066] NMEA clock ignores pps. perlinger@ntp.org 279130803Smarcel - PPS-HACK works again. 280130803Smarcel* [Bug 3059] Potential buffer overrun from oversized hash <perlinger@ntp.org> 281130803Smarcel - applied patch by Brian Utterback <brian.utterback@oracle.com> 282130803Smarcel* [Bug 3053] ntp_loopfilter.c frequency calc precedence error. Sarah White. 283130803Smarcel* [Bug 3050] Fix for bug #2960 causes [...] spurious error message. 284130803Smarcel <perlinger@ntp.org> 285130803Smarcel - patches by Reinhard Max <max@suse.com> and Havard Eidnes <he@uninett.no> 286130803Smarcel* [Bug 3047] Fix refclock_jjy C-DEX JST2000. abe@ntp.org 287130803Smarcel - Patch provided by Kuramatsu. 288130803Smarcel* [Bug 3021] unity_fixture.c needs pragma weak <perlinger@ntp.org> 289130803Smarcel - removed unnecessary & harmful decls of 'setUp()' & 'tearDown()' 290130803Smarcel* [Bug 3019] Windows: ERROR_HOST_UNREACHABLE block packet processing. DMayer 291130803Smarcel* [Bug 2998] sntp/tests/packetProcessing.c broken without openssl. JPerlinger 292130803Smarcel* [Bug 2961] sntp/tests/packetProcessing.c assumes AUTOKEY. HStenn. 293130803Smarcel* [Bug 2959] refclock_jupiter: gps week correction <perlinger@ntp.org> 294130803Smarcel - fixed GPS week expansion to work based on build date. Special thanks 295130803Smarcel to Craig Leres for initial patch and testing. 296130803Smarcel* [Bug 2951] ntpd tests fail: multiple definition of `send_via_ntp_signd' 297130803Smarcel - fixed Makefile.am <perlinger@ntp.org> 298130803Smarcel* [Bug 2689] ATOM driver processes last PPS pulse at startup, 299130803Smarcel even if it is very old <perlinger@ntp.org> 300130803Smarcel - make sure PPS source is alive before processing samples 301130803Smarcel - improve stability close to the 500ms phase jump (phase gate) 302130803Smarcel* Fix typos in include/ntp.h. 303130803Smarcel* Shim X509_get_signature_nid() if needed 304130803Smarcel* git author attribution cleanup 305130803Smarcel* bk ignore file cleanup 306130803Smarcel* remove locks in Windows IO, use rpc-like thread synchronisation instead 307130803Smarcel 308130803Smarcel--- 309130803SmarcelNTP 4.2.8p8 (Harlan Stenn <stenn@ntp.org>, 2016/06/02) 310130803Smarcel 311130803SmarcelFocus: Security, Bug fixes, enhancements. 312130803Smarcel 313130803SmarcelSeverity: HIGH 314130803Smarcel 315130803SmarcelIn addition to bug fixes and enhancements, this release fixes the 316130803Smarcelfollowing 1 high- and 4 low-severity vulnerabilities: 317130803Smarcel 318130803Smarcel* CRYPTO_NAK crash 319130803Smarcel Date Resolved: 02 June 2016; Dev (4.3.93) 02 June 2016 320130803Smarcel References: Sec 3046 / CVE-2016-4957 / VU#321640 321130803Smarcel Affects: ntp-4.2.8p7, and ntp-4.3.92. 322130803Smarcel CVSS2: HIGH 7.8 (AV:N/AC:L/Au:N/C:N/I:N/A:C) 323130803Smarcel CVSS3: HIGH 7.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 324130803Smarcel Summary: The fix for Sec 3007 in ntp-4.2.8p7 contained a bug that 325130803Smarcel could cause ntpd to crash. 326130803Smarcel Mitigation: 327130803Smarcel Implement BCP-38. 328130803Smarcel Upgrade to 4.2.8p8, or later, from the NTP Project Download Page 329130803Smarcel or the NTP Public Services Project Download Page 330130803Smarcel If you cannot upgrade from 4.2.8p7, the only other alternatives 331130803Smarcel are to patch your code or filter CRYPTO_NAK packets. 332130803Smarcel Properly monitor your ntpd instances, and auto-restart ntpd 333130803Smarcel (without -g) if it stops running. 334130803Smarcel Credit: This weakness was discovered by Nicolas Edet of Cisco. 335130803Smarcel 336130803Smarcel* Bad authentication demobilizes ephemeral associations 337130803Smarcel Date Resolved: 02 June 2016; Dev (4.3.93) 02 June 2016 338130803Smarcel References: Sec 3045 / CVE-2016-4953 / VU#321640 339130803Smarcel Affects: ntp-4, up to but not including ntp-4.2.8p8, and 340130803Smarcel ntp-4.3.0 up to, but not including ntp-4.3.93. 341130803Smarcel CVSS2: LOW 2.6 (AV:N/AC:H/Au:N/C:N/I:N/A:P) 342130803Smarcel CVSS3: LOW 3.7 CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L 343130803Smarcel Summary: An attacker who knows the origin timestamp and can send a 344130803Smarcel spoofed packet containing a CRYPTO-NAK to an ephemeral peer 345130803Smarcel target before any other response is sent can demobilize that 346130803Smarcel association. 347130803Smarcel Mitigation: 348130803Smarcel Implement BCP-38. 349130803Smarcel Upgrade to 4.2.8p8, or later, from the NTP Project Download Page 350130803Smarcel or the NTP Public Services Project Download Page 351130803Smarcel Properly monitor your ntpd instances. 352130803Smarcel Credit: This weakness was discovered by Miroslav Lichvar of Red Hat. 353130803Smarcel 354130803Smarcel* Processing spoofed server packets 355130803Smarcel Date Resolved: 02 June 2016; Dev (4.3.93) 02 June 2016 356130803Smarcel References: Sec 3044 / CVE-2016-4954 / VU#321640 357130803Smarcel Affects: ntp-4, up to but not including ntp-4.2.8p8, and 358130803Smarcel ntp-4.3.0 up to, but not including ntp-4.3.93. 359130803Smarcel CVSS2: LOW 2.6 (AV:N/AC:H/Au:N/C:N/I:N/A:P) 360130803Smarcel CVSS3: LOW 3.7 CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L 361130803Smarcel Summary: An attacker who is able to spoof packets with correct origin 362130803Smarcel timestamps from enough servers before the expected response 363130803Smarcel packets arrive at the target machine can affect some peer 364130803Smarcel variables and, for example, cause a false leap indication to be set. 365130803Smarcel Mitigation: 366130803Smarcel Implement BCP-38. 367130803Smarcel Upgrade to 4.2.8p8, or later, from the NTP Project Download Page 368130803Smarcel or the NTP Public Services Project Download Page 369130803Smarcel Properly monitor your ntpd instances. 370130803Smarcel Credit: This weakness was discovered by Jakub Prokes of Red Hat. 371130803Smarcel 372130803Smarcel* Autokey association reset 373130803Smarcel Date Resolved: 02 June 2016; Dev (4.3.93) 02 June 2016 374130803Smarcel References: Sec 3043 / CVE-2016-4955 / VU#321640 375130803Smarcel Affects: ntp-4, up to but not including ntp-4.2.8p8, and 376130803Smarcel ntp-4.3.0 up to, but not including ntp-4.3.93. 377130803Smarcel CVSS2: LOW 2.6 (AV:N/AC:H/Au:N/C:N/I:N/A:P) 378130803Smarcel CVSS3: LOW 3.7 CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L 379130803Smarcel Summary: An attacker who is able to spoof a packet with a correct 380130803Smarcel origin timestamp before the expected response packet arrives at 381130803Smarcel the target machine can send a CRYPTO_NAK or a bad MAC and cause 382130803Smarcel the association's peer variables to be cleared. If this can be 383130803Smarcel done often enough, it will prevent that association from working. 384130803Smarcel Mitigation: 385130803Smarcel Implement BCP-38. 386130803Smarcel Upgrade to 4.2.8p8, or later, from the NTP Project Download Page 387130803Smarcel or the NTP Public Services Project Download Page 388130803Smarcel Properly monitor your ntpd instances. 389130803Smarcel Credit: This weakness was discovered by Miroslav Lichvar of Red Hat. 390130803Smarcel 391130803Smarcel* Broadcast interleave 392130803Smarcel Date Resolved: 02 June 2016; Dev (4.3.93) 02 June 2016 393130803Smarcel References: Sec 3042 / CVE-2016-4956 / VU#321640 394130803Smarcel Affects: ntp-4, up to but not including ntp-4.2.8p8, and 395130803Smarcel ntp-4.3.0 up to, but not including ntp-4.3.93. 396130803Smarcel CVSS2: LOW 2.6 (AV:N/AC:H/Au:N/C:N/I:N/A:P) 397130803Smarcel CVSS3: LOW 3.7 CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L 398130803Smarcel Summary: The fix for NtpBug2978 does not cover broadcast associations, 399130803Smarcel so broadcast clients can be triggered to flip into interleave mode. 400130803Smarcel Mitigation: 401130803Smarcel Implement BCP-38. 402130803Smarcel Upgrade to 4.2.8p8, or later, from the NTP Project Download Page 403130803Smarcel or the NTP Public Services Project Download Page 404130803Smarcel Properly monitor your ntpd instances. 405130803Smarcel Credit: This weakness was discovered by Miroslav Lichvar of Red Hat. 406130803Smarcel 407130803SmarcelOther fixes: 408130803Smarcel* [Bug 3038] NTP fails to build in VS2015. perlinger@ntp.org 409130803Smarcel - provide build environment 410130803Smarcel - 'wint_t' and 'struct timespec' defined by VS2015 411130803Smarcel - fixed print()/scanf() format issues 412130803Smarcel* [Bug 3052] Add a .gitignore file. Edmund Wong. 413130803Smarcel* [Bug 3054] miscopt.html documents the allan intercept in seconds. SWhite. 414130803Smarcel* [Bug 3058] fetch_timestamp() mishandles 64-bit alignment. Brian Utterback, 415130803Smarcel JPerlinger, HStenn. 416130803Smarcel* Fix typo in ntp-wait and plot_summary. HStenn. 417130803Smarcel* Make sure we have an "author" file for git imports. HStenn. 418130803Smarcel* Update the sntp problem tests for MacOS. HStenn. 419130803Smarcel 420130803Smarcel--- 421130803SmarcelNTP 4.2.8p7 (Harlan Stenn <stenn@ntp.org>, 2016/04/26) 422130803Smarcel 423130803SmarcelFocus: Security, Bug fixes, enhancements. 424130803Smarcel 425130803SmarcelSeverity: MEDIUM 426130803Smarcel 427130803SmarcelWhen building NTP from source, there is a new configure option 428130803Smarcelavailable, --enable-dynamic-interleave. More information on this below. 429130803Smarcel 430130803SmarcelAlso note that ntp-4.2.8p7 logs more "unexpected events" than previous 431130803Smarcelversions of ntp. These events have almost certainly happened in the 432130803Smarcelpast, it's just that they were silently counted and not logged. With 433130803Smarcelthe increasing awareness around security, we feel it's better to clearly 434130803Smarcellog these events to help detect abusive behavior. This increased 435130803Smarcellogging can also help detect other problems, too. 436130803Smarcel 437130803SmarcelIn addition to bug fixes and enhancements, this release fixes the 438130803Smarcelfollowing 9 low- and medium-severity vulnerabilities: 439130803Smarcel 440130803Smarcel* Improve NTP security against buffer comparison timing attacks, 441130803Smarcel AKA: authdecrypt-timing 442130803Smarcel Date Resolved: Stable (4.2.8p7) 26 Apr 2016; Dev (4.3.92) 26 Apr 2016 443130803Smarcel References: Sec 2879 / CVE-2016-1550 444130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p7, and 445130803Smarcel 4.3.0 up to, but not including 4.3.92 446130803Smarcel CVSSv2: LOW 2.6 - (AV:L/AC:H/Au:N/C:P/I:P/A:N) 447130803Smarcel CVSSv3: MED 4.0 - CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N 448130803Smarcel Summary: Packet authentication tests have been performed using 449130803Smarcel memcmp() or possibly bcmp(), and it is potentially possible 450130803Smarcel for a local or perhaps LAN-based attacker to send a packet with 451130803Smarcel an authentication payload and indirectly observe how much of 452130803Smarcel the digest has matched. 453130803Smarcel Mitigation: 454130803Smarcel Upgrade to 4.2.8p7, or later, from the NTP Project Download Page 455130803Smarcel or the NTP Public Services Project Download Page. 456130803Smarcel Properly monitor your ntpd instances. 457130803Smarcel Credit: This weakness was discovered independently by Loganaden 458130803Smarcel Velvindron, and Matthew Van Gundy and Stephen Gray of Cisco ASIG. 459130803Smarcel 460130803Smarcel* Zero origin timestamp bypass: Additional KoD checks. 461130803Smarcel References: Sec 2945 / Sec 2901 / CVE-2015-8138 462130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p7, 463130803Smarcel Summary: Improvements to the fixes incorporated in t 4.2.8p6 and 4.3.92. 464130803Smarcel 465130803Smarcel* peer associations were broken by the fix for NtpBug2899 466130803Smarcel Date Resolved: Stable (4.2.8p7) 26 Apr 2016; Dev (4.3.92) 26 Apr 2016 467130803Smarcel References: Sec 2952 / CVE-2015-7704 468130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p7, and 469130803Smarcel 4.3.0 up to, but not including 4.3.92 470130803Smarcel CVSSv2: MED 4.3 - (AV:N/AC:M/Au:N/C:N/I:N/A:P) 471130803Smarcel Summary: The fix for NtpBug2952 in ntp-4.2.8p5 to address broken peer 472130803Smarcel associations did not address all of the issues. 473130803Smarcel Mitigation: 474130803Smarcel Implement BCP-38. 475130803Smarcel Upgrade to 4.2.8p7, or later, from the NTP Project Download Page 476130803Smarcel or the NTP Public Services Project Download Page 477130803Smarcel If you can't upgrade, use "server" associations instead of 478130803Smarcel "peer" associations. 479130803Smarcel Monitor your ntpd instances. 480130803Smarcel Credit: This problem was discovered by Michael Tatarinov. 481130803Smarcel 482130803Smarcel* Validate crypto-NAKs, AKA: CRYPTO-NAK DoS 483130803Smarcel Date Resolved: Stable (4.2.8p7) 26 Apr 2016; Dev (4.3.92) 26 Apr 2016 484130803Smarcel References: Sec 3007 / CVE-2016-1547 / VU#718152 485130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p7, and 486130803Smarcel 4.3.0 up to, but not including 4.3.92 487130803Smarcel CVSS2: MED 4.3 - (AV:N/AC:M/Au:N/C:N/I:N/A:P) 488130803Smarcel CVSS3: MED 3.7 - CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L 489130803Smarcel Summary: For ntp-4 versions up to but not including ntp-4.2.8p7, an 490130803Smarcel off-path attacker can cause a preemptable client association to 491130803Smarcel be demobilized by sending a crypto NAK packet to a victim client 492130803Smarcel with a spoofed source address of an existing associated peer. 493130803Smarcel This is true even if authentication is enabled. 494130803Smarcel 495130803Smarcel Furthermore, if the attacker keeps sending crypto NAK packets, 496130803Smarcel for example one every second, the victim never has a chance to 497130803Smarcel reestablish the association and synchronize time with that 498130803Smarcel legitimate server. 499130803Smarcel 500130803Smarcel For ntp-4.2.8 thru ntp-4.2.8p6 there is less risk because more 501130803Smarcel stringent checks are performed on incoming packets, but there 502130803Smarcel are still ways to exploit this vulnerability in versions before 503130803Smarcel ntp-4.2.8p7. 504130803Smarcel Mitigation: 505130803Smarcel Implement BCP-38. 506130803Smarcel Upgrade to 4.2.8p7, or later, from the NTP Project Download Page 507130803Smarcel or the NTP Public Services Project Download Page 508130803Smarcel Properly monitor your =ntpd= instances 509130803Smarcel Credit: This weakness was discovered by Stephen Gray and 510130803Smarcel Matthew Van Gundy of Cisco ASIG. 511130803Smarcel 512130803Smarcel* ctl_getitem() return value not always checked 513130803Smarcel Date Resolved: Stable (4.2.8p7) 26 Apr 2016; Dev (4.3.92) 26 Apr 2016 514130803Smarcel References: Sec 3008 / CVE-2016-2519 515130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p7, and 516130803Smarcel 4.3.0 up to, but not including 4.3.92 517130803Smarcel CVSSv2: MED 4.9 - (AV:N/AC:H/Au:S/C:N/I:N/A:C) 518130803Smarcel CVSSv3: MED 4.2 - CVSS:3.0/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:H 519130803Smarcel Summary: ntpq and ntpdc can be used to store and retrieve information 520130803Smarcel in ntpd. It is possible to store a data value that is larger 521130803Smarcel than the size of the buffer that the ctl_getitem() function of 522130803Smarcel ntpd uses to report the return value. If the length of the 523130803Smarcel requested data value returned by ctl_getitem() is too large, 524130803Smarcel the value NULL is returned instead. There are 2 cases where the 525130803Smarcel return value from ctl_getitem() was not directly checked to make 526130803Smarcel sure it's not NULL, but there are subsequent INSIST() checks 527130803Smarcel that make sure the return value is not NULL. There are no data 528130803Smarcel values ordinarily stored in ntpd that would exceed this buffer 529130803Smarcel length. But if one has permission to store values and one stores 530130803Smarcel a value that is "too large", then ntpd will abort if an attempt 531130803Smarcel is made to read that oversized value. 532130803Smarcel Mitigation: 533130803Smarcel Implement BCP-38. 534130803Smarcel Upgrade to 4.2.8p7, or later, from the NTP Project Download Page 535130803Smarcel or the NTP Public Services Project Download Page 536130803Smarcel Properly monitor your ntpd instances. 537130803Smarcel Credit: This weakness was discovered by Yihan Lian of the Cloud 538130803Smarcel Security Team, Qihoo 360. 539130803Smarcel 540130803Smarcel* Crafted addpeer with hmode > 7 causes array wraparound with MATCH_ASSOC 541130803Smarcel Date Resolved: Stable (4.2.8p7) 26 Apr 2016; Dev (4.3.92) 26 Apr 2016 542130803Smarcel References: Sec 3009 / CVE-2016-2518 / VU#718152 543130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p7, and 544130803Smarcel 4.3.0 up to, but not including 4.3.92 545130803Smarcel CVSS2: LOW 2.1 - (AV:N/AC:H/Au:S/C:N/I:N/A:P) 546130803Smarcel CVSS3: LOW 2.0 - CVSS:3.0/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:L 547130803Smarcel Summary: Using a crafted packet to create a peer association with 548130803Smarcel hmode > 7 causes the MATCH_ASSOC() lookup to make an 549130803Smarcel out-of-bounds reference. 550130803Smarcel Mitigation: 551130803Smarcel Implement BCP-38. 552130803Smarcel Upgrade to 4.2.8p7, or later, from the NTP Project Download Page 553130803Smarcel or the NTP Public Services Project Download Page 554130803Smarcel Properly monitor your ntpd instances 555130803Smarcel Credit: This weakness was discovered by Yihan Lian of the Cloud 556130803Smarcel Security Team, Qihoo 360. 557130803Smarcel 558130803Smarcel* remote configuration trustedkey/requestkey/controlkey values are not 559130803Smarcel properly validated 560130803Smarcel Date Resolved: Stable (4.2.8p7) 26 Apr 2016; Dev (4.3.92) 26 Apr 2016 561130803Smarcel References: Sec 3010 / CVE-2016-2517 / VU#718152 562130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p7, and 563130803Smarcel 4.3.0 up to, but not including 4.3.92 564130803Smarcel CVSS2: MED 4.9 - (AV:N/AC:H/Au:S/C:N/I:N/A:C) 565130803Smarcel CVSS3: MED 4.2 - CVSS:3.0/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:H 566130803Smarcel Summary: If ntpd was expressly configured to allow for remote 567130803Smarcel configuration, a malicious user who knows the controlkey for 568130803Smarcel ntpq or the requestkey for ntpdc (if mode7 is expressly enabled) 569130803Smarcel can create a session with ntpd and then send a crafted packet to 570130803Smarcel ntpd that will change the value of the trustedkey, controlkey, 571130803Smarcel or requestkey to a value that will prevent any subsequent 572130803Smarcel authentication with ntpd until ntpd is restarted. 573130803Smarcel Mitigation: 574130803Smarcel Implement BCP-38. 575130803Smarcel Upgrade to 4.2.8p7, or later, from the NTP Project Download Page 576130803Smarcel or the NTP Public Services Project Download Page 577130803Smarcel Properly monitor your =ntpd= instances 578130803Smarcel Credit: This weakness was discovered by Yihan Lian of the Cloud 579130803Smarcel Security Team, Qihoo 360. 580130803Smarcel 581130803Smarcel* Duplicate IPs on unconfig directives will cause an assertion botch in ntpd 582130803Smarcel Date Resolved: Stable (4.2.8p7) 26 Apr 2016; Dev (4.3.92) 26 Apr 2016 583130803Smarcel References: Sec 3011 / CVE-2016-2516 / VU#718152 584130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p7, and 585130803Smarcel 4.3.0 up to, but not including 4.3.92 586130803Smarcel CVSS2: MED 6.3 - (AV:N/AC:M/Au:S/C:N/I:N/A:C) 587130803Smarcel CVSS3: MED 4.2 - CVSS:3.0/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:H 588130803Smarcel Summary: If ntpd was expressly configured to allow for remote 589130803Smarcel configuration, a malicious user who knows the controlkey for 590130803Smarcel ntpq or the requestkey for ntpdc (if mode7 is expressly enabled) 591130803Smarcel can create a session with ntpd and if an existing association is 592130803Smarcel unconfigured using the same IP twice on the unconfig directive 593130803Smarcel line, ntpd will abort. 594130803Smarcel Mitigation: 595130803Smarcel Implement BCP-38. 596130803Smarcel Upgrade to 4.2.8p7, or later, from the NTP Project Download Page 597130803Smarcel or the NTP Public Services Project Download Page 598130803Smarcel Properly monitor your ntpd instances 599130803Smarcel Credit: This weakness was discovered by Yihan Lian of the Cloud 600130803Smarcel Security Team, Qihoo 360. 601130803Smarcel 602130803Smarcel* Refclock impersonation vulnerability 603130803Smarcel Date Resolved: Stable (4.2.8p7) 26 Apr 2016; Dev (4.3.92) 26 Apr 2016 604130803Smarcel References: Sec 3020 / CVE-2016-1551 605130803Smarcel Affects: On a very limited number of OSes, all NTP releases up to but 606130803Smarcel not including 4.2.8p7, and 4.3.0 up to but not including 4.3.92. 607130803Smarcel By "very limited number of OSes" we mean no general-purpose OSes 608130803Smarcel have yet been identified that have this vulnerability. 609130803Smarcel CVSSv2: LOW 2.6 - (AV:N/AC:H/Au:N/C:N/I:P/A:N) 610130803Smarcel CVSSv3: LOW 3.7 - CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N 611130803Smarcel Summary: While most OSes implement martian packet filtering in their 612130803Smarcel network stack, at least regarding 127.0.0.0/8, some will allow 613130803Smarcel packets claiming to be from 127.0.0.0/8 that arrive over a 614130803Smarcel physical network. On these OSes, if ntpd is configured to use a 615130803Smarcel reference clock an attacker can inject packets over the network 616130803Smarcel that look like they are coming from that reference clock. 617130803Smarcel Mitigation: 618130803Smarcel Implement martian packet filtering and BCP-38. 619130803Smarcel Configure ntpd to use an adequate number of time sources. 620130803Smarcel Upgrade to 4.2.8p7, or later, from the NTP Project Download Page 621130803Smarcel or the NTP Public Services Project Download Page 622130803Smarcel If you are unable to upgrade and if you are running an OS that 623130803Smarcel has this vulnerability, implement martian packet filters and 624130803Smarcel lobby your OS vendor to fix this problem, or run your 625130803Smarcel refclocks on computers that use OSes that are not vulnerable 626130803Smarcel to these attacks and have your vulnerable machines get their 627130803Smarcel time from protected resources. 628130803Smarcel Properly monitor your ntpd instances. 629130803Smarcel Credit: This weakness was discovered by Matt Street and others of 630130803Smarcel Cisco ASIG. 631130803Smarcel 632130803SmarcelThe following issues were fixed in earlier releases and contain 633130803Smarcelimprovements in 4.2.8p7: 634130803Smarcel 635130803Smarcel* Clients that receive a KoD should validate the origin timestamp field. 636130803Smarcel References: Sec 2901 / CVE-2015-7704, CVE-2015-7705 637130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p7, 638130803Smarcel Summary: Improvements to the fixes incorporated into 4.2.8p4 and 4.3.77. 639130803Smarcel 640130803Smarcel* Skeleton key: passive server with trusted key can serve time. 641130803Smarcel References: Sec 2936 / CVE-2015-7974 642130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p7, 643130803Smarcel Summary: Improvements to the fixes incorporated in t 4.2.8p6 and 4.3.90. 644130803Smarcel 645130803SmarcelTwo other vulnerabilities have been reported, and the mitigations 646130803Smarcelfor these are as follows: 647130803Smarcel 648130803Smarcel* Interleave-pivot 649130803Smarcel Date Resolved: Stable (4.2.8p7) 26 Apr 2016; Dev (4.3.92) 26 Apr 2016 650130803Smarcel References: Sec 2978 / CVE-2016-1548 651130803Smarcel Affects: All ntp-4 releases. 652130803Smarcel CVSSv2: MED 6.4 - (AV:N/AC:L/Au:N/C:N/I:P/A:P) 653130803Smarcel CVSSv3: MED 7.2 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:L 654130803Smarcel Summary: It is possible to change the time of an ntpd client or deny 655130803Smarcel service to an ntpd client by forcing it to change from basic 656130803Smarcel client/server mode to interleaved symmetric mode. An attacker 657130803Smarcel can spoof a packet from a legitimate ntpd server with an origin 658130803Smarcel timestamp that matches the peer->dst timestamp recorded for that 659130803Smarcel server. After making this switch, the client will reject all 660130803Smarcel future legitimate server responses. It is possible to force the 661130803Smarcel victim client to move time after the mode has been changed. 662130803Smarcel ntpq gives no indication that the mode has been switched. 663130803Smarcel Mitigation: 664130803Smarcel Implement BCP-38. 665130803Smarcel Upgrade to 4.2.8p7, or later, from the NTP Project Download Page 666130803Smarcel or the NTP Public Services Project Download Page. These 667130803Smarcel versions will not dynamically "flip" into interleave mode 668130803Smarcel unless configured to do so. 669130803Smarcel Properly monitor your ntpd instances. 670130803Smarcel Credit: This weakness was discovered by Miroslav Lichvar of RedHat 671130803Smarcel and separately by Jonathan Gardner of Cisco ASIG. 672130803Smarcel 673130803Smarcel* Sybil vulnerability: ephemeral association attack 674130803Smarcel Date Resolved: Stable (4.2.8p7) 26 Apr 2016; Dev (4.3.92) 26 Apr 2016 675130803Smarcel References: Sec 3012 / CVE-2016-1549 676130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p7, and 677130803Smarcel 4.3.0 up to, but not including 4.3.92 678130803Smarcel CVSSv2: LOW 3.5 - (AV:N/AC:M/Au:S/C:N/I:P/A:N) 679130803Smarcel CVSS3v: MED 5.3 - CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N 680130803Smarcel Summary: ntpd can be vulnerable to Sybil attacks. If one is not using 681130803Smarcel the feature introduced in ntp-4.2.8p6 allowing an optional 4th 682130803Smarcel field in the ntp.keys file to specify which IPs can serve time, 683130803Smarcel a malicious authenticated peer can create arbitrarily-many 684130803Smarcel ephemeral associations in order to win the clock selection of 685130803Smarcel ntpd and modify a victim's clock. 686130803Smarcel Mitigation: 687130803Smarcel Implement BCP-38. 688130803Smarcel Use the 4th field in the ntp.keys file to specify which IPs 689130803Smarcel can be time servers. 690130803Smarcel Properly monitor your ntpd instances. 691130803Smarcel Credit: This weakness was discovered by Matthew Van Gundy of Cisco ASIG. 692130803Smarcel 693130803SmarcelOther fixes: 694130803Smarcel 695130803Smarcel* [Bug 2831] Segmentation Fault in DNS lookup during startup. perlinger@ntp.org 696130803Smarcel - fixed yet another race condition in the threaded resolver code. 697130803Smarcel* [Bug 2858] bool support. Use stdbool.h when available. HStenn. 698130803Smarcel* [Bug 2879] Improve NTP security against timing attacks. perlinger@ntp.org 699130803Smarcel - integrated patches by Loganaden Velvidron <logan@ntp.org> 700130803Smarcel with some modifications & unit tests 701130803Smarcel* [Bug 2960] async name resolution fixes for chroot() environments. 702130803Smarcel Reinhard Max. 703130803Smarcel* [Bug 2994] Systems with HAVE_SIGNALED_IO fail to compile. perlinger@ntp.org 704130803Smarcel* [Bug 2995] Fixes to compile on Windows 705130803Smarcel* [Bug 2999] out-of-bounds access in 'is_safe_filename()'. perlinger@ntp.org 706130803Smarcel* [Bug 3013] Fix for ssl_init.c SHA1 test. perlinger@ntp.org 707130803Smarcel - Patch provided by Ch. Weisgerber 708130803Smarcel* [Bug 3015] ntpq: config-from-file: "request contains an unprintable character" 709130803Smarcel - A change related to [Bug 2853] forbids trailing white space in 710130803Smarcel remote config commands. perlinger@ntp.org 711130803Smarcel* [Bug 3019] NTPD stops processing packets after ERROR_HOST_UNREACHABLE 712130803Smarcel - report and patch from Aleksandr Kostikov. 713130803Smarcel - Overhaul of Windows IO completion port handling. perlinger@ntp.org 714130803Smarcel* [Bug 3022] authkeys.c should be refactored. perlinger@ntp.org 715130803Smarcel - fixed memory leak in access list (auth[read]keys.c) 716130803Smarcel - refactored handling of key access lists (auth[read]keys.c) 717130803Smarcel - reduced number of error branches (authreadkeys.c) 718130803Smarcel* [Bug 3023] ntpdate cannot correct dates in the future. perlinger@ntp.org 719130803Smarcel* [Bug 3030] ntpq needs a general way to specify refid output format. HStenn. 720130803Smarcel* [Bug 3031] ntp broadcastclient unable to synchronize to an server 721130803Smarcel when the time of server changed. perlinger@ntp.org 722130803Smarcel - Check the initial delay calculation and reject/unpeer the broadcast 723130803Smarcel server if the delay exceeds 50ms. Retry again after the next 724130803Smarcel broadcast packet. 725130803Smarcel* [Bug 3036] autokey trips an INSIST in authistrustedip(). Harlan Stenn. 726130803Smarcel* Document ntp.key's optional IP list in authenetic.html. Harlan Stenn. 727130803Smarcel* Update html/xleave.html documentation. Harlan Stenn. 728130803Smarcel* Update ntp.conf documentation. Harlan Stenn. 729130803Smarcel* Fix some Credit: attributions in the NEWS file. Harlan Stenn. 730130803Smarcel* Fix typo in html/monopt.html. Harlan Stenn. 731130803Smarcel* Add README.pullrequests. Harlan Stenn. 732130803Smarcel* Cleanup to include/ntp.h. Harlan Stenn. 733130803Smarcel 734130803SmarcelNew option to 'configure': 735130803Smarcel 736130803SmarcelWhile looking in to the issues around Bug 2978, the "interleave pivot" 737130803Smarcelissue, it became clear that there are some intricate and unresolved 738130803Smarcelissues with interleave operations. We also realized that the interleave 739130803Smarcelprotocol was never added to the NTPv4 Standard, and it should have been. 740130803Smarcel 741130803SmarcelInterleave mode was first released in July of 2008, and can be engaged 742130803Smarcelin two ways. Any 'peer' and 'broadcast' lines in the ntp.conf file may 743130803Smarcelcontain the 'xleave' option, which will expressly enable interlave mode 744130803Smarcelfor that association. Additionally, if a time packet arrives and is 745130803Smarcelfound inconsistent with normal protocol behavior but has certain 746130803Smarcelcharacteristics that are compatible with interleave mode, NTP will 747130803Smarceldynamically switch to interleave mode. With sufficient knowledge, an 748130803Smarcelattacker can send a crafted forged packet to an NTP instance that 749130803Smarceltriggers only one side to enter interleaved mode. 750130803Smarcel 751130803SmarcelTo prevent this attack until we can thoroughly document, describe, 752130803Smarcelfix, and test the dynamic interleave mode, we've added a new 753130803Smarcel'configure' option to the build process: 754130803Smarcel 755130803Smarcel --enable-dynamic-interleave 756130803Smarcel 757130803SmarcelThis option controls whether or not NTP will, if conditions are right, 758130803Smarcelengage dynamic interleave mode. Dynamic interleave mode is disabled by 759130803Smarceldefault in ntp-4.2.8p7. 760130803Smarcel 761130803Smarcel--- 762130803SmarcelNTP 4.2.8p6 (Harlan Stenn <stenn@ntp.org>, 2016/01/20) 763130803Smarcel 764130803SmarcelFocus: Security, Bug fixes, enhancements. 765130803Smarcel 766130803SmarcelSeverity: MEDIUM 767130803Smarcel 768130803SmarcelIn addition to bug fixes and enhancements, this release fixes the 769130803Smarcelfollowing 1 low- and 8 medium-severity vulnerabilities: 770130803Smarcel 771130803Smarcel* Potential Infinite Loop in 'ntpq' 772130803Smarcel Date Resolved: Stable (4.2.8p6) 19 Jan 2016; Dev (4.3.90) 19 Jan 2016 773130803Smarcel References: Sec 2548 / CVE-2015-8158 774130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p6, and 775130803Smarcel 4.3.0 up to, but not including 4.3.90 776130803Smarcel CVSS2: (AV:N/AC:M/Au:N/C:N/I:N/A:P) Base Score: 4.3 - MEDIUM 777130803Smarcel CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N Base Score: 5.3 - MEDIUM 778130803Smarcel Summary: 'ntpq' processes incoming packets in a loop in 'getresponse()'. 779130803Smarcel The loop's only stopping conditions are receiving a complete and 780130803Smarcel correct response or hitting a small number of error conditions. 781130803Smarcel If the packet contains incorrect values that don't trigger one of 782130803Smarcel the error conditions, the loop continues to receive new packets. 783130803Smarcel Note well, this is an attack against an instance of 'ntpq', not 784130803Smarcel 'ntpd', and this attack requires the attacker to do one of the 785130803Smarcel following: 786130803Smarcel * Own a malicious NTP server that the client trusts 787130803Smarcel * Prevent a legitimate NTP server from sending packets to 788130803Smarcel the 'ntpq' client 789130803Smarcel * MITM the 'ntpq' communications between the 'ntpq' client 790130803Smarcel and the NTP server 791130803Smarcel Mitigation: 792130803Smarcel Upgrade to 4.2.8p6, or later, from the NTP Project Download Page 793130803Smarcel or the NTP Public Services Project Download Page 794130803Smarcel Credit: This weakness was discovered by Jonathan Gardner of Cisco ASIG. 795130803Smarcel 796130803Smarcel* 0rigin: Zero Origin Timestamp Bypass 797130803Smarcel Date Resolved: Stable (4.2.8p6) 19 Jan 2016; Dev (4.3.90) 19 Jan 2016 798130803Smarcel References: Sec 2945 / CVE-2015-8138 799130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p6, and 800130803Smarcel 4.3.0 up to, but not including 4.3.90 801130803Smarcel CVSS2: (AV:N/AC:L/Au:N/C:N/I:P/A:N) Base Score: 5.0 - MEDIUM 802130803Smarcel CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N Base Score: 5.3 - MEDIUM 803130803Smarcel (3.7 - LOW if you score AC:L) 804130803Smarcel Summary: To distinguish legitimate peer responses from forgeries, a 805130803Smarcel client attempts to verify a response packet by ensuring that the 806130803Smarcel origin timestamp in the packet matches the origin timestamp it 807130803Smarcel transmitted in its last request. A logic error exists that 808130803Smarcel allows packets with an origin timestamp of zero to bypass this 809130803Smarcel check whenever there is not an outstanding request to the server. 810130803Smarcel Mitigation: 811130803Smarcel Configure 'ntpd' to get time from multiple sources. 812130803Smarcel Upgrade to 4.2.8p6, or later, from the NTP Project Download Page 813130803Smarcel or the NTP Public Services Project Download Page. 814130803Smarcel Monitor your 'ntpd= instances. 815130803Smarcel Credit: This weakness was discovered by Matthey Van Gundy and 816130803Smarcel Jonathan Gardner of Cisco ASIG. 817130803Smarcel 818130803Smarcel* Stack exhaustion in recursive traversal of restriction list 819130803Smarcel Date Resolved: Stable (4.2.8p6) 19 Jan 2016 820130803Smarcel References: Sec 2940 / CVE-2015-7978 821130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p6, and 822130803Smarcel 4.3.0 up to, but not including 4.3.90 823130803Smarcel CVSS: (AV:N/AC:M/Au:N/C:N/I:N/A:P) Base Score: 4.3 - MEDIUM 824130803Smarcel Summary: An unauthenticated 'ntpdc reslist' command can cause a 825130803Smarcel segmentation fault in ntpd by exhausting the call stack. 826130803Smarcel Mitigation: 827130803Smarcel Implement BCP-38. 828130803Smarcel Upgrade to 4.2.8p6, or later, from the NTP Project Download Page 829130803Smarcel or the NTP Public Services Project Download Page. 830130803Smarcel If you are unable to upgrade: 831130803Smarcel In ntp-4.2.8, mode 7 is disabled by default. Don't enable it. 832130803Smarcel If you must enable mode 7: 833130803Smarcel configure the use of a 'requestkey' to control who can 834130803Smarcel issue mode 7 requests. 835130803Smarcel configure 'restrict noquery' to further limit mode 7 836130803Smarcel requests to trusted sources. 837130803Smarcel Monitor your ntpd instances. 838130803Smarcel Credit: This weakness was discovered by Stephen Gray at Cisco ASIG. 839130803Smarcel 840130803Smarcel* Off-path Denial of Service (!DoS) attack on authenticated broadcast mode 841130803Smarcel Date Resolved: Stable (4.2.8p6) 19 Jan 2016; Dev (4.3.90) 19 Jan 2016 842130803Smarcel References: Sec 2942 / CVE-2015-7979 843130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p6, and 844130803Smarcel 4.3.0 up to, but not including 4.3.90 845130803Smarcel CVSS: (AV:N/AC:M/Au:N/C:N/I:P/A:P) Base Score: 5.8 846130803Smarcel Summary: An off-path attacker can send broadcast packets with bad 847130803Smarcel authentication (wrong key, mismatched key, incorrect MAC, etc) 848130803Smarcel to broadcast clients. It is observed that the broadcast client 849130803Smarcel tears down the association with the broadcast server upon 850130803Smarcel receiving just one bad packet. 851130803Smarcel Mitigation: 852130803Smarcel Implement BCP-38. 853130803Smarcel Upgrade to 4.2.8p6, or later, from the NTP Project Download Page 854130803Smarcel or the NTP Public Services Project Download Page. 855130803Smarcel Monitor your 'ntpd' instances. 856130803Smarcel If this sort of attack is an active problem for you, you have 857130803Smarcel deeper problems to investigate. In this case also consider 858130803Smarcel having smaller NTP broadcast domains. 859130803Smarcel Credit: This weakness was discovered by Aanchal Malhotra of Boston 860130803Smarcel University. 861130803Smarcel 862130803Smarcel* reslist NULL pointer dereference 863130803Smarcel Date Resolved: Stable (4.2.8p6) 19 Jan 2016; Dev (4.3.90) 19 Jan 2016 864130803Smarcel References: Sec 2939 / CVE-2015-7977 865130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p6, and 866130803Smarcel 4.3.0 up to, but not including 4.3.90 867130803Smarcel CVSS: (AV:N/AC:M/Au:N/C:N/I:N/A:P) Base Score: 4.3 - MEDIUM 868130803Smarcel Summary: An unauthenticated 'ntpdc reslist' command can cause a 869130803Smarcel segmentation fault in ntpd by causing a NULL pointer dereference. 870130803Smarcel Mitigation: 871130803Smarcel Implement BCP-38. 872130803Smarcel Upgrade to 4.2.8p6, or later, from NTP Project Download Page or 873130803Smarcel the NTP Public Services Project Download Page. 874130803Smarcel If you are unable to upgrade: 875130803Smarcel mode 7 is disabled by default. Don't enable it. 876130803Smarcel If you must enable mode 7: 877130803Smarcel configure the use of a 'requestkey' to control who can 878130803Smarcel issue mode 7 requests. 879130803Smarcel configure 'restrict noquery' to further limit mode 7 880130803Smarcel requests to trusted sources. 881130803Smarcel Monitor your ntpd instances. 882130803Smarcel Credit: This weakness was discovered by Stephen Gray of Cisco ASIG. 883130803Smarcel 884130803Smarcel* 'ntpq saveconfig' command allows dangerous characters in filenames. 885130803Smarcel Date Resolved: Stable (4.2.8p6) 19 Jan 2016; Dev (4.3.90) 19 Jan 2016 886130803Smarcel References: Sec 2938 / CVE-2015-7976 887130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p6, and 888130803Smarcel 4.3.0 up to, but not including 4.3.90 889130803Smarcel CVSS: (AV:N/AC:L/Au:S/C:N/I:P/A:N) Base Score: 4.0 - MEDIUM 890130803Smarcel Summary: The ntpq saveconfig command does not do adequate filtering 891130803Smarcel of special characters from the supplied filename. 892130803Smarcel Note well: The ability to use the saveconfig command is controlled 893130803Smarcel by the 'restrict nomodify' directive, and the recommended default 894130803Smarcel configuration is to disable this capability. If the ability to 895130803Smarcel execute a 'saveconfig' is required, it can easily (and should) be 896130803Smarcel limited and restricted to a known small number of IP addresses. 897130803Smarcel Mitigation: 898130803Smarcel Implement BCP-38. 899130803Smarcel use 'restrict default nomodify' in your 'ntp.conf' file. 900130803Smarcel Upgrade to 4.2.8p6, or later, from the NTP Project Download Page. 901130803Smarcel If you are unable to upgrade: 902130803Smarcel build NTP with 'configure --disable-saveconfig' if you will 903130803Smarcel never need this capability, or 904130803Smarcel use 'restrict default nomodify' in your 'ntp.conf' file. Be 905130803Smarcel careful about what IPs have the ability to send 'modify' 906130803Smarcel requests to 'ntpd'. 907130803Smarcel Monitor your ntpd instances. 908130803Smarcel 'saveconfig' requests are logged to syslog - monitor your syslog files. 909130803Smarcel Credit: This weakness was discovered by Jonathan Gardner of Cisco ASIG. 910130803Smarcel 911130803Smarcel* nextvar() missing length check in ntpq 912130803Smarcel Date Resolved: Stable (4.2.8p6) 19 Jan 2016; Dev (4.3.90) 19 Jan 2016 913130803Smarcel References: Sec 2937 / CVE-2015-7975 914130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p6, and 915130803Smarcel 4.3.0 up to, but not including 4.3.90 916130803Smarcel CVSS: (AV:L/AC:H/Au:N/C:N/I:N/A:P) Base Score: 1.2 - LOW 917130803Smarcel If you score A:C, this becomes 4.0. 918130803Smarcel CVSSv3: (CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L) Base Score 2.9, LOW 919130803Smarcel Summary: ntpq may call nextvar() which executes a memcpy() into the 920130803Smarcel name buffer without a proper length check against its maximum 921130803Smarcel length of 256 bytes. Note well that we're taking about ntpq here. 922130803Smarcel The usual worst-case effect of this vulnerability is that the 923130803Smarcel specific instance of ntpq will crash and the person or process 924130803Smarcel that did this will have stopped themselves. 925130803Smarcel Mitigation: 926130803Smarcel Upgrade to 4.2.8p6, or later, from the NTP Project Download Page 927130803Smarcel or the NTP Public Services Project Download Page. 928130803Smarcel If you are unable to upgrade: 929130803Smarcel If you have scripts that feed input to ntpq make sure there are 930130803Smarcel some sanity checks on the input received from the "outside". 931130803Smarcel This is potentially more dangerous if ntpq is run as root. 932130803Smarcel Credit: This weakness was discovered by Jonathan Gardner at Cisco ASIG. 933130803Smarcel 934130803Smarcel* Skeleton Key: Any trusted key system can serve time 935130803Smarcel Date Resolved: Stable (4.2.8p6) 19 Jan 2016; Dev (4.3.90) 19 Jan 2016 936130803Smarcel References: Sec 2936 / CVE-2015-7974 937130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p6, and 938130803Smarcel 4.3.0 up to, but not including 4.3.90 939130803Smarcel CVSS: (AV:N/AC:H/Au:S/C:N/I:C/A:N) Base Score: 4.9 940130803Smarcel Summary: Symmetric key encryption uses a shared trusted key. The 941130803Smarcel reported title for this issue was "Missing key check allows 942130803Smarcel impersonation between authenticated peers" and the report claimed 943130803Smarcel "A key specified only for one server should only work to 944130803Smarcel authenticate that server, other trusted keys should be refused." 945130803Smarcel Except there has never been any correlation between this trusted 946130803Smarcel key and server v. clients machines and there has never been any 947130803Smarcel way to specify a key only for one server. We have treated this as 948130803Smarcel an enhancement request, and ntp-4.2.8p6 includes other checks and 949130803Smarcel tests to strengthen clients against attacks coming from broadcast 950130803Smarcel servers. 951130803Smarcel Mitigation: 952130803Smarcel Implement BCP-38. 953130803Smarcel If this scenario represents a real or a potential issue for you, 954130803Smarcel upgrade to 4.2.8p6, or later, from the NTP Project Download 955130803Smarcel Page or the NTP Public Services Project Download Page, and 956130803Smarcel use the new field in the ntp.keys file that specifies the list 957130803Smarcel of IPs that are allowed to serve time. Note that this alone 958130803Smarcel will not protect against time packets with forged source IP 959130803Smarcel addresses, however other changes in ntp-4.2.8p6 provide 960130803Smarcel significant mitigation against broadcast attacks. MITM attacks 961130803Smarcel are a different story. 962130803Smarcel If you are unable to upgrade: 963130803Smarcel Don't use broadcast mode if you cannot monitor your client 964130803Smarcel servers. 965130803Smarcel If you choose to use symmetric keys to authenticate time 966130803Smarcel packets in a hostile environment where ephemeral time 967130803Smarcel servers can be created, or if it is expected that malicious 968130803Smarcel time servers will participate in an NTP broadcast domain, 969130803Smarcel limit the number of participating systems that participate 970130803Smarcel in the shared-key group. 971130803Smarcel Monitor your ntpd instances. 972130803Smarcel Credit: This weakness was discovered by Matt Street of Cisco ASIG. 973130803Smarcel 974130803Smarcel* Deja Vu: Replay attack on authenticated broadcast mode 975130803Smarcel Date Resolved: Stable (4.2.8p6) 19 Jan 2016; Dev (4.3.90) 19 Jan 2016 976130803Smarcel References: Sec 2935 / CVE-2015-7973 977130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p6, and 978130803Smarcel 4.3.0 up to, but not including 4.3.90 979130803Smarcel CVSS: (AV:A/AC:M/Au:N/C:N/I:P/A:P) Base Score: 4.3 - MEDIUM 980130803Smarcel Summary: If an NTP network is configured for broadcast operations then 981130803Smarcel either a man-in-the-middle attacker or a malicious participant 982130803Smarcel that has the same trusted keys as the victim can replay time packets. 983130803Smarcel Mitigation: 984130803Smarcel Implement BCP-38. 985130803Smarcel Upgrade to 4.2.8p6, or later, from the NTP Project Download Page 986130803Smarcel or the NTP Public Services Project Download Page. 987130803Smarcel If you are unable to upgrade: 988130803Smarcel Don't use broadcast mode if you cannot monitor your client servers. 989130803Smarcel Monitor your ntpd instances. 990130803Smarcel Credit: This weakness was discovered by Aanchal Malhotra of Boston 991130803Smarcel University. 992130803Smarcel 993130803SmarcelOther fixes: 994130803Smarcel 995130803Smarcel* [Bug 2772] adj_systime overflows tv_usec. perlinger@ntp.org 996130803Smarcel* [Bug 2814] msyslog deadlock when signaled. perlinger@ntp.org 997130803Smarcel - applied patch by shenpeng11@huawei.com with minor adjustments 998130803Smarcel* [Bug 2882] Look at ntp_request.c:list_peers_sum(). perlinger@ntp.org 999130803Smarcel* [Bug 2891] Deadlock in deferred DNS lookup framework. perlinger@ntp.org 1000130803Smarcel* [Bug 2892] Several test cases assume IPv6 capabilities even when 1001130803Smarcel IPv6 is disabled in the build. perlinger@ntp.org 1002130803Smarcel - Found this already fixed, but validation led to cleanup actions. 1003130803Smarcel* [Bug 2905] DNS lookups broken. perlinger@ntp.org 1004130803Smarcel - added limits to stack consumption, fixed some return code handling 1005130803Smarcel* [Bug 2971] ntpq bails on ^C: select fails: Interrupted system call 1006130803Smarcel - changed stacked/nested handling of CTRL-C. perlinger@ntp.org 1007130803Smarcel - make CTRL-C work for retrieval and printing od MRU list. perlinger@ntp.org 1008130803Smarcel* [Bug 2980] reduce number of warnings. perlinger@ntp.org 1009130803Smarcel - integrated several patches from Havard Eidnes (he@uninett.no) 1010130803Smarcel* [Bug 2985] bogus calculation in authkeys.c perlinger@ntp.org 1011130803Smarcel - implement 'auth_log2()' using integer bithack instead of float calculation 1012130803Smarcel* Make leapsec_query debug messages less verbose. Harlan Stenn. 1013130803Smarcel 1014130803Smarcel--- 1015130803SmarcelNTP 4.2.8p5 (Harlan Stenn <stenn@ntp.org>, 2016/01/07) 1016130803Smarcel 1017130803SmarcelFocus: Security, Bug fixes, enhancements. 1018130803Smarcel 1019130803SmarcelSeverity: MEDIUM 1020130803Smarcel 1021130803SmarcelIn addition to bug fixes and enhancements, this release fixes the 1022130803Smarcelfollowing medium-severity vulnerability: 1023130803Smarcel 1024130803Smarcel* Small-step/big-step. Close the panic gate earlier. 1025130803Smarcel References: Sec 2956, CVE-2015-5300 1026130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p5, and 1027130803Smarcel 4.3.0 up to, but not including 4.3.78 1028130803Smarcel CVSS3: (AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:L) Base Score: 4.0, MEDIUM 1029130803Smarcel Summary: If ntpd is always started with the -g option, which is 1030130803Smarcel common and against long-standing recommendation, and if at the 1031130803Smarcel moment ntpd is restarted an attacker can immediately respond to 1032130803Smarcel enough requests from enough sources trusted by the target, which 1033130803Smarcel is difficult and not common, there is a window of opportunity 1034130803Smarcel where the attacker can cause ntpd to set the time to an 1035130803Smarcel arbitrary value. Similarly, if an attacker is able to respond 1036130803Smarcel to enough requests from enough sources trusted by the target, 1037130803Smarcel the attacker can cause ntpd to abort and restart, at which 1038130803Smarcel point it can tell the target to set the time to an arbitrary 1039130803Smarcel value if and only if ntpd was re-started against long-standing 1040130803Smarcel recommendation with the -g flag, or if ntpd was not given the 1041130803Smarcel -g flag, the attacker can move the target system's time by at 1042130803Smarcel most 900 seconds' time per attack. 1043130803Smarcel Mitigation: 1044130803Smarcel Configure ntpd to get time from multiple sources. 1045130803Smarcel Upgrade to 4.2.8p5, or later, from the NTP Project Download 1046130803Smarcel Page or the NTP Public Services Project Download Page 1047130803Smarcel As we've long documented, only use the -g option to ntpd in 1048130803Smarcel cold-start situations. 1049130803Smarcel Monitor your ntpd instances. 1050130803Smarcel Credit: This weakness was discovered by Aanchal Malhotra, 1051130803Smarcel Isaac E. Cohen, and Sharon Goldberg at Boston University. 1052130803Smarcel 1053130803Smarcel NOTE WELL: The -g flag disables the limit check on the panic_gate 1054130803Smarcel in ntpd, which is 900 seconds by default. The bug identified by 1055130803Smarcel the researchers at Boston University is that the panic_gate 1056130803Smarcel check was only re-enabled after the first change to the system 1057130803Smarcel clock that was greater than 128 milliseconds, by default. The 1058130803Smarcel correct behavior is that the panic_gate check should be 1059130803Smarcel re-enabled after any initial time correction. 1060130803Smarcel 1061130803Smarcel If an attacker is able to inject consistent but erroneous time 1062130803Smarcel responses to your systems via the network or "over the air", 1063130803Smarcel perhaps by spoofing radio, cellphone, or navigation satellite 1064130803Smarcel transmissions, they are in a great position to affect your 1065130803Smarcel system's clock. There comes a point where your very best 1066130803Smarcel defenses include: 1067130803Smarcel 1068130803Smarcel Configure ntpd to get time from multiple sources. 1069130803Smarcel Monitor your ntpd instances. 1070130803Smarcel 1071130803SmarcelOther fixes: 1072130803Smarcel 1073130803Smarcel* Coverity submission process updated from Coverity 5 to Coverity 7. 1074130803Smarcel The NTP codebase has been undergoing regular Coverity scans on an 1075130803Smarcel ongoing basis since 2006. As part of our recent upgrade from 1076130803Smarcel Coverity 5 to Coverity 7, Coverity identified 16 nits in some of 1077130803Smarcel the newly-written Unity test programs. These were fixed. 1078130803Smarcel* [Bug 2829] Clean up pipe_fds in ntpd.c perlinger@ntp.org 1079130803Smarcel* [Bug 2887] stratum -1 config results as showing value 99 1080130803Smarcel - fudge stratum should only accept values [0..16]. perlinger@ntp.org 1081130803Smarcel* [Bug 2932] Update leapsecond file info in miscopt.html. CWoodbury, HStenn. 1082130803Smarcel* [Bug 2934] tests/ntpd/t-ntp_scanner.c has a magic constant wired in. HMurray 1083130803Smarcel* [Bug 2944] errno is not preserved properly in ntpdate after sendto call. 1084130803Smarcel - applied patch by Christos Zoulas. perlinger@ntp.org 1085130803Smarcel* [Bug 2952] Peer associations broken by fix for Bug 2901/CVE-2015-7704. 1086130803Smarcel* [Bug 2954] Version 4.2.8p4 crashes on startup on some OSes. 1087130803Smarcel - fixed data race conditions in threaded DNS worker. perlinger@ntp.org 1088130803Smarcel - limit threading warm-up to linux; FreeBSD bombs on it. perlinger@ntp.org 1089130803Smarcel* [Bug 2957] 'unsigned int' vs 'size_t' format clash. perlinger@ntp.org 1090130803Smarcel - accept key file only if there are no parsing errors 1091130803Smarcel - fixed size_t/u_int format clash 1092130803Smarcel - fixed wrong use of 'strlcpy' 1093130803Smarcel* [Bug 2958] ntpq: fatal error messages need a final newline. Craig Leres. 1094130803Smarcel* [Bug 2962] truncation of size_t/ptrdiff_t on 64bit targets. perlinger@ntp.org 1095130803Smarcel - fixed several other warnings (cast-alignment, missing const, missing prototypes) 1096130803Smarcel - promote use of 'size_t' for values that express a size 1097130803Smarcel - use ptr-to-const for read-only arguments 1098130803Smarcel - make sure SOCKET values are not truncated (win32-specific) 1099130803Smarcel - format string fixes 1100130803Smarcel* [Bug 2965] Local clock didn't work since 4.2.8p4. Martin Burnicki. 1101130803Smarcel* [Bug 2967] ntpdate command suffers an assertion failure 1102130803Smarcel - fixed ntp_rfc2553.c to return proper address length. perlinger@ntp.org 1103130803Smarcel* [Bug 2969] Seg fault from ntpq/mrulist when looking at server with 1104130803Smarcel lots of clients. perlinger@ntp.org 1105130803Smarcel* [Bug 2971] ntpq bails on ^C: select fails: Interrupted system call 1106130803Smarcel - changed stacked/nested handling of CTRL-C. perlinger@ntp.org 1107130803Smarcel* Unity cleanup for FreeBSD-6.4. Harlan Stenn. 1108130803Smarcel* Unity test cleanup. Harlan Stenn. 1109130803Smarcel* Libevent autoconf pthread fixes for FreeBSD-10. Harlan Stenn. 1110130803Smarcel* Header cleanup in tests/sandbox/uglydate.c. Harlan Stenn. 1111130803Smarcel* Header cleanup in tests/libntp/sfptostr.c. Harlan Stenn. 1112130803Smarcel* Quiet a warning from clang. Harlan Stenn. 1113130803Smarcel 1114130803Smarcel--- 1115130803SmarcelNTP 4.2.8p4 (Harlan Stenn <stenn@ntp.org>, 2015/10/21) 1116130803Smarcel 1117130803SmarcelFocus: Security, Bug fixes, enhancements. 1118130803Smarcel 1119130803SmarcelSeverity: MEDIUM 1120130803Smarcel 1121130803SmarcelIn addition to bug fixes and enhancements, this release fixes the 1122130803Smarcelfollowing 13 low- and medium-severity vulnerabilities: 1123130803Smarcel 1124130803Smarcel* Incomplete vallen (value length) checks in ntp_crypto.c, leading 1125130803Smarcel to potential crashes or potential code injection/information leakage. 1126130803Smarcel 1127130803Smarcel References: Sec 2899, Sec 2671, CVE-2015-7691, CVE-2015-7692, CVE-2015-7702 1128130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p4, 1129130803Smarcel and 4.3.0 up to, but not including 4.3.77 1130130803Smarcel CVSS: (AV:N/AC:H/Au:M/C:N/I:N/A:C) Base Score: 4.6 1131130803Smarcel Summary: The fix for CVE-2014-9750 was incomplete in that there were 1132130803Smarcel certain code paths where a packet with particular autokey operations 1133130803Smarcel that contained malicious data was not always being completely 1134130803Smarcel validated. Receipt of these packets can cause ntpd to crash. 1135130803Smarcel Mitigation: 1136130803Smarcel Don't use autokey. 1137130803Smarcel Upgrade to 4.2.8p4, or later, from the NTP Project Download 1138130803Smarcel Page or the NTP Public Services Project Download Page 1139130803Smarcel Monitor your ntpd instances. 1140130803Smarcel Credit: This weakness was discovered by Tenable Network Security. 1141130803Smarcel 1142130803Smarcel* Clients that receive a KoD should validate the origin timestamp field. 1143130803Smarcel 1144130803Smarcel References: Sec 2901 / CVE-2015-7704, CVE-2015-7705 1145130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p4, 1146130803Smarcel and 4.3.0 up to, but not including 4.3.77 1147130803Smarcel CVSS: (AV:N/AC:M/Au:N/C:N/I:N/A:P) Base Score: 4.3-5.0 at worst 1148130803Smarcel Summary: An ntpd client that honors Kiss-of-Death responses will honor 1149130803Smarcel KoD messages that have been forged by an attacker, causing it to 1150130803Smarcel delay or stop querying its servers for time updates. Also, an 1151130803Smarcel attacker can forge packets that claim to be from the target and 1152130803Smarcel send them to servers often enough that a server that implements 1153130803Smarcel KoD rate limiting will send the target machine a KoD response to 1154130803Smarcel attempt to reduce the rate of incoming packets, or it may also 1155130803Smarcel trigger a firewall block at the server for packets from the target 1156130803Smarcel machine. For either of these attacks to succeed, the attacker must 1157130803Smarcel know what servers the target is communicating with. An attacker 1158130803Smarcel can be anywhere on the Internet and can frequently learn the 1159130803Smarcel identity of the target's time source by sending the target a 1160130803Smarcel time query. 1161130803Smarcel Mitigation: 1162130803Smarcel Implement BCP-38. 1163130803Smarcel Upgrade to 4.2.8p4, or later, from the NTP Project Download Page 1164130803Smarcel or the NTP Public Services Project Download Page 1165130803Smarcel If you can't upgrade, restrict who can query ntpd to learn who 1166130803Smarcel its servers are, and what IPs are allowed to ask your system 1167130803Smarcel for the time. This mitigation is heavy-handed. 1168130803Smarcel Monitor your ntpd instances. 1169130803Smarcel Note: 1170130803Smarcel 4.2.8p4 protects against the first attack. For the second attack, 1171130803Smarcel all we can do is warn when it is happening, which we do in 4.2.8p4. 1172130803Smarcel Credit: This weakness was discovered by Aanchal Malhotra, 1173130803Smarcel Issac E. Cohen, and Sharon Goldberg of Boston University. 1174130803Smarcel 1175130803Smarcel* configuration directives to change "pidfile" and "driftfile" should 1176130803Smarcel only be allowed locally. 1177130803Smarcel 1178130803Smarcel References: Sec 2902 / CVE-2015-5196 1179130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p4, 1180130803Smarcel and 4.3.0 up to, but not including 4.3.77 1181130803Smarcel CVSS: (AV:N/AC:H/Au:M/C:N/I:C/A:C) Base Score: 6.2 worst case 1182130803Smarcel Summary: If ntpd is configured to allow for remote configuration, 1183130803Smarcel and if the (possibly spoofed) source IP address is allowed to 1184130803Smarcel send remote configuration requests, and if the attacker knows 1185130803Smarcel the remote configuration password, it's possible for an attacker 1186130803Smarcel to use the "pidfile" or "driftfile" directives to potentially 1187130803Smarcel overwrite other files. 1188130803Smarcel Mitigation: 1189130803Smarcel Implement BCP-38. 1190130803Smarcel Upgrade to 4.2.8p4, or later, from the NTP Project Download 1191130803Smarcel Page or the NTP Public Services Project Download Page 1192130803Smarcel If you cannot upgrade, don't enable remote configuration. 1193130803Smarcel If you must enable remote configuration and cannot upgrade, 1194130803Smarcel remote configuration of NTF's ntpd requires: 1195130803Smarcel - an explicitly configured trustedkey, and you should also 1196130803Smarcel configure a controlkey. 1197130803Smarcel - access from a permitted IP. You choose the IPs. 1198130803Smarcel - authentication. Don't disable it. Practice secure key safety. 1199130803Smarcel Monitor your ntpd instances. 1200130803Smarcel Credit: This weakness was discovered by Miroslav Lichvar of Red Hat. 1201130803Smarcel 1202130803Smarcel* Slow memory leak in CRYPTO_ASSOC 1203130803Smarcel 1204130803Smarcel References: Sec 2909 / CVE-2015-7701 1205130803Smarcel Affects: All ntp-4 releases that use autokey up to, but not 1206130803Smarcel including 4.2.8p4, and 4.3.0 up to, but not including 4.3.77 1207130803Smarcel CVSS: (AV:N/AC:H/Au:M/C:N/I:N/A:C) Base Score: 0.0 best/usual case, 1208130803Smarcel 4.6 otherwise 1209130803Smarcel Summary: If ntpd is configured to use autokey, then an attacker can 1210130803Smarcel send packets to ntpd that will, after several days of ongoing 1211130803Smarcel attack, cause it to run out of memory. 1212130803Smarcel Mitigation: 1213130803Smarcel Don't use autokey. 1214130803Smarcel Upgrade to 4.2.8p4, or later, from the NTP Project Download 1215130803Smarcel Page or the NTP Public Services Project Download Page 1216130803Smarcel Monitor your ntpd instances. 1217130803Smarcel Credit: This weakness was discovered by Tenable Network Security. 1218130803Smarcel 1219130803Smarcel* mode 7 loop counter underrun 1220130803Smarcel 1221130803Smarcel References: Sec 2913 / CVE-2015-7848 / TALOS-CAN-0052 1222130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p4, 1223130803Smarcel and 4.3.0 up to, but not including 4.3.77 1224130803Smarcel CVSS: (AV:N/AC:H/Au:M/C:N/I:N/A:C) Base Score: 4.6 1225130803Smarcel Summary: If ntpd is configured to enable mode 7 packets, and if the 1226130803Smarcel use of mode 7 packets is not properly protected thru the use of 1227130803Smarcel the available mode 7 authentication and restriction mechanisms, 1228130803Smarcel and if the (possibly spoofed) source IP address is allowed to 1229130803Smarcel send mode 7 queries, then an attacker can send a crafted packet 1230130803Smarcel to ntpd that will cause it to crash. 1231130803Smarcel Mitigation: 1232130803Smarcel Implement BCP-38. 1233130803Smarcel Upgrade to 4.2.8p4, or later, from the NTP Project Download 1234130803Smarcel Page or the NTP Public Services Project Download Page. 1235130803Smarcel If you are unable to upgrade: 1236130803Smarcel In ntp-4.2.8, mode 7 is disabled by default. Don't enable it. 1237130803Smarcel If you must enable mode 7: 1238130803Smarcel configure the use of a requestkey to control who can issue 1239130803Smarcel mode 7 requests. 1240130803Smarcel configure restrict noquery to further limit mode 7 requests 1241130803Smarcel to trusted sources. 1242130803Smarcel Monitor your ntpd instances. 1243130803SmarcelCredit: This weakness was discovered by Aleksandar Nikolic of Cisco Talos. 1244130803Smarcel 1245130803Smarcel* memory corruption in password store 1246130803Smarcel 1247130803Smarcel References: Sec 2916 / CVE-2015-7849 / TALOS-CAN-0054 1248130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p4, and 4.3.0 up to, but not including 4.3.77 1249130803Smarcel CVSS: (AV:N/AC:H/Au:M/C:N/I:C/A:C) Base Score: 6.8, worst case 1250130803Smarcel Summary: If ntpd is configured to allow remote configuration, and if 1251130803Smarcel the (possibly spoofed) source IP address is allowed to send 1252130803Smarcel remote configuration requests, and if the attacker knows the 1253130803Smarcel remote configuration password or if ntpd was configured to 1254130803Smarcel disable authentication, then an attacker can send a set of 1255130803Smarcel packets to ntpd that may cause a crash or theoretically 1256130803Smarcel perform a code injection attack. 1257130803Smarcel Mitigation: 1258130803Smarcel Implement BCP-38. 1259130803Smarcel Upgrade to 4.2.8p4, or later, from the NTP Project Download 1260130803Smarcel Page or the NTP Public Services Project Download Page. 1261130803Smarcel If you are unable to upgrade, remote configuration of NTF's 1262130803Smarcel ntpd requires: 1263130803Smarcel an explicitly configured "trusted" key. Only configure 1264130803Smarcel this if you need it. 1265130803Smarcel access from a permitted IP address. You choose the IPs. 1266130803Smarcel authentication. Don't disable it. Practice secure key safety. 1267130803Smarcel Monitor your ntpd instances. 1268130803Smarcel Credit: This weakness was discovered by Yves Younan of Cisco Talos. 1269130803Smarcel 1270130803Smarcel* Infinite loop if extended logging enabled and the logfile and 1271130803Smarcel keyfile are the same. 1272130803Smarcel 1273130803Smarcel References: Sec 2917 / CVE-2015-7850 / TALOS-CAN-0055 1274130803Smarcel Affects: All ntp-4 releases up to, but not including 4.2.8p4, 1275130803Smarcel and 4.3.0 up to, but not including 4.3.77 1276130803Smarcel CVSS: (AV:N/AC:H/Au:M/C:N/I:N/A:C) Base Score: 4.6, worst case 1277130803Smarcel Summary: If ntpd is configured to allow remote configuration, and if 1278 the (possibly spoofed) source IP address is allowed to send 1279 remote configuration requests, and if the attacker knows the 1280 remote configuration password or if ntpd was configured to 1281 disable authentication, then an attacker can send a set of 1282 packets to ntpd that will cause it to crash and/or create a 1283 potentially huge log file. Specifically, the attacker could 1284 enable extended logging, point the key file at the log file, 1285 and cause what amounts to an infinite loop. 1286 Mitigation: 1287 Implement BCP-38. 1288 Upgrade to 4.2.8p4, or later, from the NTP Project Download 1289 Page or the NTP Public Services Project Download Page. 1290 If you are unable to upgrade, remote configuration of NTF's ntpd 1291 requires: 1292 an explicitly configured "trusted" key. Only configure this 1293 if you need it. 1294 access from a permitted IP address. You choose the IPs. 1295 authentication. Don't disable it. Practice secure key safety. 1296 Monitor your ntpd instances. 1297 Credit: This weakness was discovered by Yves Younan of Cisco Talos. 1298 1299* Potential path traversal vulnerability in the config file saving of 1300 ntpd on VMS. 1301 1302 References: Sec 2918 / CVE-2015-7851 / TALOS-CAN-0062 1303 Affects: All ntp-4 releases running under VMS up to, but not 1304 including 4.2.8p4, and 4.3.0 up to, but not including 4.3.77 1305 CVSS: (AV:N/AC:H/Au:M/C:N/I:P/A:C) Base Score: 5.2, worst case 1306 Summary: If ntpd is configured to allow remote configuration, and if 1307 the (possibly spoofed) IP address is allowed to send remote 1308 configuration requests, and if the attacker knows the remote 1309 configuration password or if ntpd was configured to disable 1310 authentication, then an attacker can send a set of packets to 1311 ntpd that may cause ntpd to overwrite files. 1312 Mitigation: 1313 Implement BCP-38. 1314 Upgrade to 4.2.8p4, or later, from the NTP Project Download 1315 Page or the NTP Public Services Project Download Page. 1316 If you are unable to upgrade, remote configuration of NTF's ntpd 1317 requires: 1318 an explicitly configured "trusted" key. Only configure 1319 this if you need it. 1320 access from permitted IP addresses. You choose the IPs. 1321 authentication. Don't disable it. Practice key security safety. 1322 Monitor your ntpd instances. 1323 Credit: This weakness was discovered by Yves Younan of Cisco Talos. 1324 1325* ntpq atoascii() potential memory corruption 1326 1327 References: Sec 2919 / CVE-2015-7852 / TALOS-CAN-0063 1328 Affects: All ntp-4 releases running up to, but not including 4.2.8p4, 1329 and 4.3.0 up to, but not including 4.3.77 1330 CVSS: (AV:N/AC:H/Au:N/C:N/I:P/A:P) Base Score: 4.0, worst case 1331 Summary: If an attacker can figure out the precise moment that ntpq 1332 is listening for data and the port number it is listening on or 1333 if the attacker can provide a malicious instance ntpd that 1334 victims will connect to then an attacker can send a set of 1335 crafted mode 6 response packets that, if received by ntpq, 1336 can cause ntpq to crash. 1337 Mitigation: 1338 Implement BCP-38. 1339 Upgrade to 4.2.8p4, or later, from the NTP Project Download 1340 Page or the NTP Public Services Project Download Page. 1341 If you are unable to upgrade and you run ntpq against a server 1342 and ntpq crashes, try again using raw mode. Build or get a 1343 patched ntpq and see if that fixes the problem. Report new 1344 bugs in ntpq or abusive servers appropriately. 1345 If you use ntpq in scripts, make sure ntpq does what you expect 1346 in your scripts. 1347 Credit: This weakness was discovered by Yves Younan and 1348 Aleksander Nikolich of Cisco Talos. 1349 1350* Invalid length data provided by a custom refclock driver could cause 1351 a buffer overflow. 1352 1353 References: Sec 2920 / CVE-2015-7853 / TALOS-CAN-0064 1354 Affects: Potentially all ntp-4 releases running up to, but not 1355 including 4.2.8p4, and 4.3.0 up to, but not including 4.3.77 1356 that have custom refclocks 1357 CVSS: (AV:L/AC:H/Au:M/C:C/I:C/A:C) Base Score: 0.0 usual case, 1358 5.9 unusual worst case 1359 Summary: A negative value for the datalen parameter will overflow a 1360 data buffer. NTF's ntpd driver implementations always set this 1361 value to 0 and are therefore not vulnerable to this weakness. 1362 If you are running a custom refclock driver in ntpd and that 1363 driver supplies a negative value for datalen (no custom driver 1364 of even minimal competence would do this) then ntpd would 1365 overflow a data buffer. It is even hypothetically possible 1366 in this case that instead of simply crashing ntpd the attacker 1367 could effect a code injection attack. 1368 Mitigation: 1369 Upgrade to 4.2.8p4, or later, from the NTP Project Download 1370 Page or the NTP Public Services Project Download Page. 1371 If you are unable to upgrade: 1372 If you are running custom refclock drivers, make sure 1373 the signed datalen value is either zero or positive. 1374 Monitor your ntpd instances. 1375 Credit: This weakness was discovered by Yves Younan of Cisco Talos. 1376 1377* Password Length Memory Corruption Vulnerability 1378 1379 References: Sec 2921 / CVE-2015-7854 / TALOS-CAN-0065 1380 Affects: All ntp-4 releases up to, but not including 4.2.8p4, and 1381 4.3.0 up to, but not including 4.3.77 1382 CVSS: (AV:N/AC:H/Au:M/C:C/I:C/A:C) Base Score: 0.0 best case, 1383 1.7 usual case, 6.8, worst case 1384 Summary: If ntpd is configured to allow remote configuration, and if 1385 the (possibly spoofed) source IP address is allowed to send 1386 remote configuration requests, and if the attacker knows the 1387 remote configuration password or if ntpd was (foolishly) 1388 configured to disable authentication, then an attacker can 1389 send a set of packets to ntpd that may cause it to crash, 1390 with the hypothetical possibility of a small code injection. 1391 Mitigation: 1392 Implement BCP-38. 1393 Upgrade to 4.2.8p4, or later, from the NTP Project Download 1394 Page or the NTP Public Services Project Download Page. 1395 If you are unable to upgrade, remote configuration of NTF's 1396 ntpd requires: 1397 an explicitly configured "trusted" key. Only configure 1398 this if you need it. 1399 access from a permitted IP address. You choose the IPs. 1400 authentication. Don't disable it. Practice secure key safety. 1401 Monitor your ntpd instances. 1402 Credit: This weakness was discovered by Yves Younan and 1403 Aleksander Nikolich of Cisco Talos. 1404 1405* decodenetnum() will ASSERT botch instead of returning FAIL on some 1406 bogus values. 1407 1408 References: Sec 2922 / CVE-2015-7855 1409 Affects: All ntp-4 releases up to, but not including 4.2.8p4, and 1410 4.3.0 up to, but not including 4.3.77 1411 CVSS: (AV:N/AC:H/Au:M/C:N/I:N/A:C) Base Score: 4.6, worst case 1412 Summary: If ntpd is fed a crafted mode 6 or mode 7 packet containing 1413 an unusually long data value where a network address is expected, 1414 the decodenetnum() function will abort with an assertion failure 1415 instead of simply returning a failure condition. 1416 Mitigation: 1417 Implement BCP-38. 1418 Upgrade to 4.2.8p4, or later, from the NTP Project Download 1419 Page or the NTP Public Services Project Download Page. 1420 If you are unable to upgrade: 1421 mode 7 is disabled by default. Don't enable it. 1422 Use restrict noquery to limit who can send mode 6 1423 and mode 7 requests. 1424 Configure and use the controlkey and requestkey 1425 authentication directives to limit who can 1426 send mode 6 and mode 7 requests. 1427 Monitor your ntpd instances. 1428 Credit: This weakness was discovered by John D "Doug" Birdwell of IDA.org. 1429 1430* NAK to the Future: Symmetric association authentication bypass via 1431 crypto-NAK. 1432 1433 References: Sec 2941 / CVE-2015-7871 1434 Affects: All ntp-4 releases between 4.2.5p186 up to but not including 1435 4.2.8p4, and 4.3.0 up to but not including 4.3.77 1436 CVSS: (AV:N/AC:L/Au:N/C:N/I:P/A:P) Base Score: 6.4 1437 Summary: Crypto-NAK packets can be used to cause ntpd to accept time 1438 from unauthenticated ephemeral symmetric peers by bypassing the 1439 authentication required to mobilize peer associations. This 1440 vulnerability appears to have been introduced in ntp-4.2.5p186 1441 when the code handling mobilization of new passive symmetric 1442 associations (lines 1103-1165) was refactored. 1443 Mitigation: 1444 Implement BCP-38. 1445 Upgrade to 4.2.8p4, or later, from the NTP Project Download 1446 Page or the NTP Public Services Project Download Page. 1447 If you are unable to upgrade: 1448 Apply the patch to the bottom of the "authentic" check 1449 block around line 1136 of ntp_proto.c. 1450 Monitor your ntpd instances. 1451 Credit: This weakness was discovered by Matthew Van Gundy of Cisco ASIG. 1452 1453Backward-Incompatible changes: 1454* [Bug 2817] Default on Linux is now "rlimit memlock -1". 1455 While the general default of 32M is still the case, under Linux 1456 the default value has been changed to -1 (do not lock ntpd into 1457 memory). A value of 0 means "lock ntpd into memory with whatever 1458 memory it needs." If your ntp.conf file has an explicit "rlimit memlock" 1459 value in it, that value will continue to be used. 1460 1461* [Bug 2886] Misspelling: "outlyer" should be "outlier". 1462 If you've written a script that looks for this case in, say, the 1463 output of ntpq, you probably want to change your regex matches 1464 from 'outlyer' to 'outl[iy]er'. 1465 1466New features in this release: 1467* 'rlimit memlock' now has finer-grained control. A value of -1 means 1468 "don't lock ntpd into memore". This is the default for Linux boxes. 1469 A value of 0 means "lock ntpd into memory" with no limits. Otherwise 1470 the value is the number of megabytes of memory to lock. The default 1471 is 32 megabytes. 1472 1473* The old Google Test framework has been replaced with a new framework, 1474 based on http://www.throwtheswitch.org/unity/ . 1475 1476Bug Fixes and Improvements: 1477* [Bug 2332] (reopened) Exercise thread cancellation once before dropping 1478 privileges and limiting resources in NTPD removes the need to link 1479 forcefully against 'libgcc_s' which does not always work. J.Perlinger 1480* [Bug 2595] ntpdate man page quirks. Hal Murray, Harlan Stenn. 1481* [Bug 2625] Deprecate flag1 in local refclock. Hal Murray, Harlan Stenn. 1482* [Bug 2817] Stop locking ntpd into memory by default under Linux. H.Stenn. 1483* [Bug 2821] minor build issues: fixed refclock_gpsdjson.c. perlinger@ntp.org 1484* [Bug 2823] ntpsweep with recursive peers option doesn't work. H.Stenn. 1485* [Bug 2849] Systems with more than one default route may never 1486 synchronize. Brian Utterback. Note that this patch might need to 1487 be reverted once Bug 2043 has been fixed. 1488* [Bug 2864] 4.2.8p3 fails to compile on Windows. Juergen Perlinger 1489* [Bug 2866] segmentation fault at initgroups(). Harlan Stenn. 1490* [Bug 2867] ntpd with autokey active crashed by 'ntpq -crv'. J.Perlinger 1491* [Bug 2873] libevent should not include .deps/ in the tarball. H.Stenn 1492* [Bug 2874] Don't distribute generated sntp/tests/fileHandlingTest.h. H.Stenn 1493* [Bug 2875] sntp/Makefile.am: Get rid of DIST_SUBDIRS. libevent must 1494 be configured for the distribution targets. Harlan Stenn. 1495* [Bug 2883] ntpd crashes on exit with empty driftfile. Miroslav Lichvar. 1496* [Bug 2886] Mis-spelling: "outlyer" should be "outlier". dave@horsfall.org 1497* [Bug 2888] streamline calendar functions. perlinger@ntp.org 1498* [Bug 2889] ntp-dev-4.3.67 does not build on Windows. perlinger@ntp.org 1499* [Bug 2890] Ignore ENOBUFS on routing netlink socket. Konstantin Khlebnikov. 1500* [Bug 2906] make check needs better support for pthreads. Harlan Stenn. 1501* [Bug 2907] dist* build targets require our libevent/ to be enabled. HStenn. 1502* [Bug 2912] no munlockall() under Windows. David Taylor, Harlan Stenn. 1503* libntp/emalloc.c: Remove explicit include of stdint.h. Harlan Stenn. 1504* Put Unity CPPFLAGS items in unity_config.h. Harlan Stenn. 1505* tests/ntpd/g_leapsec.cpp typo fix. Harlan Stenn. 1506* Phase 1 deprecation of google test in sntp/tests/. Harlan Stenn. 1507* On some versions of HP-UX, inttypes.h does not include stdint.h. H.Stenn. 1508* top_srcdir can change based on ntp v. sntp. Harlan Stenn. 1509* sntp/tests/ function parameter list cleanup. Damir Tomi��. 1510* tests/libntp/ function parameter list cleanup. Damir Tomi��. 1511* tests/ntpd/ function parameter list cleanup. Damir Tomi��. 1512* sntp/unity/unity_config.h: handle stdint.h. Harlan Stenn. 1513* sntp/unity/unity_internals.h: handle *INTPTR_MAX on old Solaris. H.Stenn. 1514* tests/libntp/timevalops.c and timespecops.c fixed error printing. D.Tomi��. 1515* tests/libntp/ improvements in code and fixed error printing. Damir Tomi��. 1516* tests/libntp: a_md5encrypt.c, authkeys.c, buftvtots.c, calendar.c, caljulian.c, 1517 caltontp.c, clocktime.c, humandate.c, hextolfp.c, decodenetnum.c - fixed 1518 formatting; first declaration, then code (C90); deleted unnecessary comments; 1519 changed from sprintf to snprintf; fixed order of includes. Tomasz Flendrich 1520* tests/libntp/lfpfunc.c remove unnecessary include, remove old comments, 1521 fix formatting, cleanup. Tomasz Flendrich 1522* tests/libntp/lfptostr.c remove unnecessary include, add consts, fix formatting. 1523 Tomasz Flendrich 1524* tests/libntp/statestr.c remove empty functions, remove unnecessary include, 1525 fix formatting. Tomasz Flendrich 1526* tests/libntp/modetoa.c fixed formatting. Tomasz Flendrich 1527* tests/libntp/msyslog.c fixed formatting. Tomasz Flendrich 1528* tests/libntp/numtoa.c deleted unnecessary empty functions, fixed formatting. 1529 Tomasz Flendrich 1530* tests/libntp/numtohost.c added const, fixed formatting. Tomasz Flendrich 1531* tests/libntp/refnumtoa.c fixed formatting. Tomasz Flendrich 1532* tests/libntp/ssl_init.c fixed formatting. Tomasz Flendrich 1533* tests/libntp/tvtots.c fixed a bug, fixed formatting. Tomasz Flendrich 1534* tests/libntp/uglydate.c removed an unnecessary include. Tomasz Flendrich 1535* tests/libntp/vi64ops.c removed an unnecessary comment, fixed formatting. 1536* tests/libntp/ymd3yd.c removed an empty function and an unnecessary include, 1537fixed formatting. Tomasz Flendrich 1538* tests/libntp/timespecops.c fixed formatting, fixed the order of includes, 1539 removed unnecessary comments, cleanup. Tomasz Flendrich 1540* tests/libntp/timevalops.c fixed the order of includes, deleted unnecessary 1541 comments, cleanup. Tomasz Flendrich 1542* tests/libntp/sockaddrtest.h making it agree to NTP's conventions of formatting. 1543 Tomasz Flendrich 1544* tests/libntp/lfptest.h cleanup. Tomasz Flendrich 1545* tests/libntp/test-libntp.c fix formatting. Tomasz Flendrich 1546* sntp/tests/crypto.c is now using proper Unity's assertions, fixed formatting. 1547 Tomasz Flendrich 1548* sntp/tests/kodDatabase.c added consts, deleted empty function, 1549 fixed formatting. Tomasz Flendrich 1550* sntp/tests/kodFile.c cleanup, fixed formatting. Tomasz Flendrich 1551* sntp/tests/packetHandling.c is now using proper Unity's assertions, 1552 fixed formatting, deleted unused variable. Tomasz Flendrich 1553* sntp/tests/keyFile.c is now using proper Unity's assertions, fixed formatting. 1554 Tomasz Flendrich 1555* sntp/tests/packetProcessing.c changed from sprintf to snprintf, 1556 fixed formatting. Tomasz Flendrich 1557* sntp/tests/utilities.c is now using proper Unity's assertions, changed 1558 the order of includes, fixed formatting, removed unnecessary comments. 1559 Tomasz Flendrich 1560* sntp/tests/sntptest.h fixed formatting. Tomasz Flendrich 1561* sntp/tests/fileHandlingTest.h.in fixed a possible buffer overflow problem, 1562 made one function do its job, deleted unnecessary prints, fixed formatting. 1563 Tomasz Flendrich 1564* sntp/unity/Makefile.am added a missing header. Tomasz Flendrich 1565* sntp/unity/unity_config.h: Distribute it. Harlan Stenn. 1566* sntp/libevent/evconfig-private.h: remove generated filefrom SCM. H.Stenn. 1567* sntp/unity/Makefile.am: fix some broken paths. Harlan Stenn. 1568* sntp/unity/unity.c: Clean up a printf(). Harlan Stenn. 1569* Phase 1 deprecation of google test in tests/libntp/. Harlan Stenn. 1570* Don't build sntp/libevent/sample/. Harlan Stenn. 1571* tests/libntp/test_caltontp needs -lpthread. Harlan Stenn. 1572* br-flock: --enable-local-libevent. Harlan Stenn. 1573* Wrote tests for ntpd/ntp_prio_q.c. Tomasz Flendrich 1574* scripts/lib/NTP/Util.pm: stratum output is version-dependent. Harlan Stenn. 1575* Get rid of the NTP_ prefix on our assertion macros. Harlan Stenn. 1576* Code cleanup. Harlan Stenn. 1577* libntp/icom.c: Typo fix. Harlan Stenn. 1578* util/ntptime.c: initialization nit. Harlan Stenn. 1579* ntpd/ntp_peer.c:newpeer(): added a DEBUG_REQUIRE(srcadr). Harlan Stenn. 1580* Add std_unity_tests to various Makefile.am files. Harlan Stenn. 1581* ntpd/ntp_restrict.c: added a few assertions, created tests for this file. 1582 Tomasz Flendrich 1583* Changed progname to be const in many files - now it's consistent. Tomasz 1584 Flendrich 1585* Typo fix for GCC warning suppression. Harlan Stenn. 1586* Added tests/ntpd/ntp_scanner.c test. Damir Tomi��. 1587* Added declarations to all Unity tests, and did minor fixes to them. 1588 Reduced the number of warnings by half. Damir Tomi��. 1589* Updated generate_test_runner.rb and updated the sntp/unity/auto directory 1590 with the latest Unity updates from Mark. Damir Tomi��. 1591* Retire google test - phase I. Harlan Stenn. 1592* Unity test cleanup: move declaration of 'initializing'. Harlan Stenn. 1593* Update the NEWS file. Harlan Stenn. 1594* Autoconf cleanup. Harlan Stenn. 1595* Unit test dist cleanup. Harlan Stenn. 1596* Cleanup various test Makefile.am files. Harlan Stenn. 1597* Pthread autoconf macro cleanup. Harlan Stenn. 1598* Fix progname definition in unity runner scripts. Harlan Stenn. 1599* Clean trailing whitespace in tests/ntpd/Makefile.am. Harlan Stenn. 1600* Update the patch for bug 2817. Harlan Stenn. 1601* More updates for bug 2817. Harlan Stenn. 1602* Fix bugs in tests/ntpd/ntp_prio_q.c. Harlan Stenn. 1603* gcc on older HPUX may need +allowdups. Harlan Stenn. 1604* Adding missing MCAST protection. Harlan Stenn. 1605* Disable certain test programs on certain platforms. Harlan Stenn. 1606* Implement --enable-problem-tests (on by default). Harlan Stenn. 1607* build system tweaks. Harlan Stenn. 1608 1609--- 1610NTP 4.2.8p3 (Harlan Stenn <stenn@ntp.org>, 2015/06/29) 1611 1612Focus: 1 Security fix. Bug fixes and enhancements. Leap-second improvements. 1613 1614Severity: MEDIUM 1615 1616Security Fix: 1617 1618* [Sec 2853] Crafted remote config packet can crash some versions of 1619 ntpd. Aleksis Kauppinen, Juergen Perlinger, Harlan Stenn. 1620 1621Under specific circumstances an attacker can send a crafted packet to 1622cause a vulnerable ntpd instance to crash. This requires each of the 1623following to be true: 1624 16251) ntpd set up to allow remote configuration (not allowed by default), and 16262) knowledge of the configuration password, and 16273) access to a computer entrusted to perform remote configuration. 1628 1629This vulnerability is considered low-risk. 1630 1631New features in this release: 1632 1633Optional (disabled by default) support to have ntpd provide smeared 1634leap second time. A specially built and configured ntpd will only 1635offer smeared time in response to client packets. These response 1636packets will also contain a "refid" of 254.a.b.c, where the 24 bits 1637of a, b, and c encode the amount of smear in a 2:22 integer:fraction 1638format. See README.leapsmear and http://bugs.ntp.org/2855 for more 1639information. 1640 1641 *IF YOU CHOOSE TO CONFIGURE NTPD TO PROVIDE LEAP SMEAR TIME* 1642 *BE SURE YOU DO NOT OFFER THAT TIME ON PUBLIC TIMESERVERS.* 1643 1644We've imported the Unity test framework, and have begun converting 1645the existing google-test items to this new framework. If you want 1646to write new tests or change old ones, you'll need to have ruby 1647installed. You don't need ruby to run the test suite. 1648 1649Bug Fixes and Improvements: 1650 1651* CID 739725: Fix a rare resource leak in libevent/listener.c. 1652* CID 1295478: Quiet a pedantic potential error from the fix for Bug 2776. 1653* CID 1296235: Fix refclock_jjy.c and correcting type of the driver40-ja.html 1654* CID 1269537: Clean up a line of dead code in getShmTime(). 1655* [Bug 1060] Buffer overruns in libparse/clk_rawdcf.c. Helge Oldach. 1656* [Bug 2590] autogen-5.18.5. 1657* [Bug 2612] restrict: Warn when 'monitor' can't be disabled because 1658 of 'limited'. 1659* [Bug 2650] fix includefile processing. 1660* [Bug 2745] ntpd -x steps clock on leap second 1661 Fixed an initial-value problem that caused misbehaviour in absence of 1662 any leapsecond information. 1663 Do leap second stepping only of the step adjustment is beyond the 1664 proper jump distance limit and step correction is allowed at all. 1665* [Bug 2750] build for Win64 1666 Building for 32bit of loopback ppsapi needs def file 1667* [Bug 2776] Improve ntpq's 'help keytype'. 1668* [Bug 2778] Implement "apeers" ntpq command to include associd. 1669* [Bug 2782] Refactor refclock_shm.c, add memory barrier protection. 1670* [Bug 2792] If the IFF_RUNNING interface flag is supported then an 1671 interface is ignored as long as this flag is not set since the 1672 interface is not usable (e.g., no link). 1673* [Bug 2794] Clean up kernel clock status reports. 1674* [Bug 2800] refclock_true.c true_debug() can't open debug log because 1675 of incompatible open/fdopen parameters. 1676* [Bug 2804] install-local-data assumes GNU 'find' semantics. 1677* [Bug 2805] ntpd fails to join multicast group. 1678* [Bug 2806] refclock_jjy.c supports the Telephone JJY. 1679* [Bug 2808] GPSD_JSON driver enhancements, step 1. 1680 Fix crash during cleanup if GPS device not present and char device. 1681 Increase internal token buffer to parse all JSON data, even SKY. 1682 Defer logging of errors during driver init until the first unit is 1683 started, so the syslog is not cluttered when the driver is not used. 1684 Various improvements, see http://bugs.ntp.org/2808 for details. 1685 Changed libjsmn to a more recent version. 1686* [Bug 2810] refclock_shm.c memory barrier code needs tweaks for QNX. 1687* [Bug 2813] HP-UX needs -D__STDC_VERSION__=199901L and limits.h. 1688* [Bug 2815] net-snmp before v5.4 has circular library dependencies. 1689* [Bug 2821] Add a missing NTP_PRINTF and a missing const. 1690* [Bug 2822] New leap column in sntp broke NTP::Util.pm. 1691* [Bug 2824] Convert update-leap to perl. (also see 2769) 1692* [Bug 2825] Quiet file installation in html/ . 1693* [Bug 2830] ntpd doesn't always transfer the correct TAI offset via autokey 1694 NTPD transfers the current TAI (instead of an announcement) now. 1695 This might still needed improvement. 1696 Update autokey data ASAP when 'sys_tai' changes. 1697 Fix unit test that was broken by changes for autokey update. 1698 Avoid potential signature length issue and use DPRINTF where possible 1699 in ntp_crypto.c. 1700* [Bug 2832] refclock_jjy.c supports the TDC-300. 1701* [Bug 2834] Correct a broken html tag in html/refclock.html 1702* [Bug 2836] DFC77 patches from Frank Kardel to make decoding more 1703 robust, and require 2 consecutive timestamps to be consistent. 1704* [Bug 2837] Allow a configurable DSCP value. 1705* [Bug 2837] add test for DSCP to ntpd/complete.conf.in 1706* [Bug 2842] Glitch in ntp.conf.def documentation stanza. 1707* [Bug 2842] Bug in mdoc2man. 1708* [Bug 2843] make check fails on 4.3.36 1709 Fixed compiler warnings about numeric range overflow 1710 (The original topic was fixed in a byplay to bug#2830) 1711* [Bug 2845] Harden memory allocation in ntpd. 1712* [Bug 2852] 'make check' can't find unity.h. Hal Murray. 1713* [Bug 2854] Missing brace in libntp/strdup.c. Masanari Iida. 1714* [Bug 2855] Parser fix for conditional leap smear code. Harlan Stenn. 1715* [Bug 2855] Report leap smear in the REFID. Harlan Stenn. 1716* [Bug 2855] Implement conditional leap smear code. Martin Burnicki. 1717* [Bug 2856] ntpd should wait() on terminated child processes. Paul Green. 1718* [Bug 2857] Stratus VOS does not support SIGIO. Paul Green. 1719* [Bug 2859] Improve raw DCF77 robustness deconding. Frank Kardel. 1720* [Bug 2860] ntpq ifstats sanity check is too stringent. Frank Kardel. 1721* html/drivers/driver22.html: typo fix. Harlan Stenn. 1722* refidsmear test cleanup. Tomasz Flendrich. 1723* refidsmear function support and tests. Harlan Stenn. 1724* sntp/tests/Makefile.am: remove g_nameresolution.cpp as it tested 1725 something that was only in the 4.2.6 sntp. Harlan Stenn. 1726* Modified tests/bug-2803/Makefile.am so it builds Unity framework tests. 1727 Damir Tomi�� 1728* Modified tests/libtnp/Makefile.am so it builds Unity framework tests. 1729 Damir Tomi�� 1730* Modified sntp/tests/Makefile.am so it builds Unity framework tests. 1731 Damir Tomi�� 1732* tests/sandbox/smeartest.c: Harlan Stenn, Damir Tomic, Juergen Perlinger. 1733* Converted from gtest to Unity: tests/bug-2803/. Damir Tomi�� 1734* Converted from gtest to Unity: tests/libntp/ a_md5encrypt, atoint.c, 1735 atouint.c, authkeys.c, buftvtots.c, calendar.c, caljulian.c, 1736 calyearstart.c, clocktime.c, hextoint.c, lfpfunc.c, modetoa.c, 1737 numtoa.c, numtohost.c, refnumtoa.c, ssl_init.c, statestr.c, 1738 timespecops.c, timevalops.c, uglydate.c, vi64ops.c, ymd2yd.c. 1739 Damir Tomi�� 1740* Converted from gtest to Unity: sntp/tests/ kodDatabase.c, kodFile.c, 1741 networking.c, keyFile.c, utilities.cpp, sntptest.h, 1742 fileHandlingTest.h. Damir Tomi�� 1743* Initial support for experimental leap smear code. Harlan Stenn. 1744* Fixes to sntp/tests/fileHandlingTest.h.in. Harlan Stenn. 1745* Report select() debug messages at debug level 3 now. 1746* sntp/scripts/genLocInfo: treat raspbian as debian. 1747* Unity test framework fixes. 1748 ** Requires ruby for changes to tests. 1749* Initial support for PACKAGE_VERSION tests. 1750* sntp/libpkgver belongs in EXTRA_DIST, not DIST_SUBDIRS. 1751* tests/bug-2803/Makefile.am must distribute bug-2803.h. 1752* Add an assert to the ntpq ifstats code. 1753* Clean up the RLIMIT_STACK code. 1754* Improve the ntpq documentation around the controlkey keyid. 1755* ntpq.c cleanup. 1756* Windows port build cleanup. 1757 1758--- 1759NTP 4.2.8p2 (Harlan Stenn <stenn@ntp.org>, 2015/04/07) 1760 1761Focus: Security and Bug fixes, enhancements. 1762 1763Severity: MEDIUM 1764 1765In addition to bug fixes and enhancements, this release fixes the 1766following medium-severity vulnerabilities involving private key 1767authentication: 1768 1769* [Sec 2779] ntpd accepts unauthenticated packets with symmetric key crypto. 1770 1771 References: Sec 2779 / CVE-2015-1798 / VU#374268 1772 Affects: All NTP4 releases starting with ntp-4.2.5p99 up to but not 1773 including ntp-4.2.8p2 where the installation uses symmetric keys 1774 to authenticate remote associations. 1775 CVSS: (AV:A/AC:M/Au:N/C:P/I:P/A:P) Base Score: 5.4 1776 Date Resolved: Stable (4.2.8p2) 07 Apr 2015 1777 Summary: When ntpd is configured to use a symmetric key to authenticate 1778 a remote NTP server/peer, it checks if the NTP message 1779 authentication code (MAC) in received packets is valid, but not if 1780 there actually is any MAC included. Packets without a MAC are 1781 accepted as if they had a valid MAC. This allows a MITM attacker to 1782 send false packets that are accepted by the client/peer without 1783 having to know the symmetric key. The attacker needs to know the 1784 transmit timestamp of the client to match it in the forged reply 1785 and the false reply needs to reach the client before the genuine 1786 reply from the server. The attacker doesn't necessarily need to be 1787 relaying the packets between the client and the server. 1788 1789 Authentication using autokey doesn't have this problem as there is 1790 a check that requires the key ID to be larger than NTP_MAXKEY, 1791 which fails for packets without a MAC. 1792 Mitigation: 1793 Upgrade to 4.2.8p2, or later, from the NTP Project Download Page 1794 or the NTP Public Services Project Download Page 1795 Configure ntpd with enough time sources and monitor it properly. 1796 Credit: This issue was discovered by Miroslav Lichvar, of Red Hat. 1797 1798* [Sec 2781] Authentication doesn't protect symmetric associations against 1799 DoS attacks. 1800 1801 References: Sec 2781 / CVE-2015-1799 / VU#374268 1802 Affects: All NTP releases starting with at least xntp3.3wy up to but 1803 not including ntp-4.2.8p2 where the installation uses symmetric 1804 key authentication. 1805 CVSS: (AV:A/AC:M/Au:N/C:P/I:P/A:P) Base Score: 5.4 1806 Note: the CVSS base Score for this issue could be 4.3 or lower, and 1807 it could be higher than 5.4. 1808 Date Resolved: Stable (4.2.8p2) 07 Apr 2015 1809 Summary: An attacker knowing that NTP hosts A and B are peering with 1810 each other (symmetric association) can send a packet to host A 1811 with source address of B which will set the NTP state variables 1812 on A to the values sent by the attacker. Host A will then send 1813 on its next poll to B a packet with originate timestamp that 1814 doesn't match the transmit timestamp of B and the packet will 1815 be dropped. If the attacker does this periodically for both 1816 hosts, they won't be able to synchronize to each other. This is 1817 a known denial-of-service attack, described at 1818 https://www.eecis.udel.edu/~mills/onwire.html . 1819 1820 According to the document the NTP authentication is supposed to 1821 protect symmetric associations against this attack, but that 1822 doesn't seem to be the case. The state variables are updated even 1823 when authentication fails and the peers are sending packets with 1824 originate timestamps that don't match the transmit timestamps on 1825 the receiving side. 1826 1827 This seems to be a very old problem, dating back to at least 1828 xntp3.3wy. It's also in the NTPv3 (RFC 1305) and NTPv4 (RFC 5905) 1829 specifications, so other NTP implementations with support for 1830 symmetric associations and authentication may be vulnerable too. 1831 An update to the NTP RFC to correct this error is in-process. 1832 Mitigation: 1833 Upgrade to 4.2.8p2, or later, from the NTP Project Download Page 1834 or the NTP Public Services Project Download Page 1835 Note that for users of autokey, this specific style of MITM attack 1836 is simply a long-known potential problem. 1837 Configure ntpd with appropriate time sources and monitor ntpd. 1838 Alert your staff if problems are detected. 1839 Credit: This issue was discovered by Miroslav Lichvar, of Red Hat. 1840 1841* New script: update-leap 1842The update-leap script will verify and if necessary, update the 1843leap-second definition file. 1844It requires the following commands in order to work: 1845 1846 wget logger tr sed shasum 1847 1848Some may choose to run this from cron. It needs more portability testing. 1849 1850Bug Fixes and Improvements: 1851 1852* [Bug 1787] DCF77's formerly "antenna" bit is "call bit" since 2003. 1853* [Bug 1960] setsockopt IPV6_MULTICAST_IF: Invalid argument. 1854* [Bug 2346] "graceful termination" signals do not do peer cleanup. 1855* [Bug 2728] See if C99-style structure initialization works. 1856* [Bug 2747] Upgrade libevent to 2.1.5-beta. 1857* [Bug 2749] ntp/lib/NTP/Util.pm needs update for ntpq -w, IPv6, .POOL. . 1858* [Bug 2751] jitter.h has stale copies of l_fp macros. 1859* [Bug 2756] ntpd hangs in startup with gcc 3.3.5 on ARM. 1860* [Bug 2757] Quiet compiler warnings. 1861* [Bug 2759] Expose nonvolatile/clk_wander_threshold to ntpq. 1862* [Bug 2763] Allow different thresholds for forward and backward steps. 1863* [Bug 2766] ntp-keygen output files should not be world-readable. 1864* [Bug 2767] ntp-keygen -M should symlink to ntp.keys. 1865* [Bug 2771] nonvolatile value is documented in wrong units. 1866* [Bug 2773] Early leap announcement from Palisade/Thunderbolt 1867* [Bug 2774] Unreasonably verbose printout - leap pending/warning 1868* [Bug 2775] ntp-keygen.c fails to compile under Windows. 1869* [Bug 2777] Fixed loops and decoding of Meinberg GPS satellite info. 1870 Removed non-ASCII characters from some copyright comments. 1871 Removed trailing whitespace. 1872 Updated definitions for Meinberg clocks from current Meinberg header files. 1873 Now use C99 fixed-width types and avoid non-ASCII characters in comments. 1874 Account for updated definitions pulled from Meinberg header files. 1875 Updated comments on Meinberg GPS receivers which are not only called GPS16x. 1876 Replaced some constant numbers by defines from ntp_calendar.h 1877 Modified creation of parse-specific variables for Meinberg devices 1878 in gps16x_message(). 1879 Reworked mk_utcinfo() to avoid printing of ambiguous leap second dates. 1880 Modified mbg_tm_str() which now expexts an additional parameter controlling 1881 if the time status shall be printed. 1882* [Sec 2779] ntpd accepts unauthenticated packets with symmetric key crypto. 1883* [Sec 2781] Authentication doesn't protect symmetric associations against 1884 DoS attacks. 1885* [Bug 2783] Quiet autoconf warnings about missing AC_LANG_SOURCE. 1886* [Bug 2789] Quiet compiler warnings from libevent. 1887* [Bug 2790] If ntpd sets the Windows MM timer highest resolution 1888 pause briefly before measuring system clock precision to yield 1889 correct results. 1890* Comment from Juergen Perlinger in ntp_calendar.c to make the code clearer. 1891* Use predefined function types for parse driver functions 1892 used to set up function pointers. 1893 Account for changed prototype of parse_inp_fnc_t functions. 1894 Cast parse conversion results to appropriate types to avoid 1895 compiler warnings. 1896 Let ioctl() for Windows accept a (void *) to avoid compiler warnings 1897 when called with pointers to different types. 1898 1899--- 1900NTP 4.2.8p1 (Harlan Stenn <stenn@ntp.org>, 2015/02/04) 1901 1902Focus: Security and Bug fixes, enhancements. 1903 1904Severity: HIGH 1905 1906In addition to bug fixes and enhancements, this release fixes the 1907following high-severity vulnerabilities: 1908 1909* vallen is not validated in several places in ntp_crypto.c, leading 1910 to a potential information leak or possibly a crash 1911 1912 References: Sec 2671 / CVE-2014-9297 / VU#852879 1913 Affects: All NTP4 releases before 4.2.8p1 that are running autokey. 1914 CVSS: (AV:N/AC:L/Au:N/C:P/I:P/A:P) Base Score: 7.5 1915 Date Resolved: Stable (4.2.8p1) 04 Feb 2015 1916 Summary: The vallen packet value is not validated in several code 1917 paths in ntp_crypto.c which can lead to information leakage 1918 or perhaps a crash of the ntpd process. 1919 Mitigation - any of: 1920 Upgrade to 4.2.8p1, or later, from the NTP Project Download Page 1921 or the NTP Public Services Project Download Page. 1922 Disable Autokey Authentication by removing, or commenting out, 1923 all configuration directives beginning with the "crypto" 1924 keyword in your ntp.conf file. 1925 Credit: This vulnerability was discovered by Stephen Roettger of the 1926 Google Security Team, with additional cases found by Sebastian 1927 Krahmer of the SUSE Security Team and Harlan Stenn of Network 1928 Time Foundation. 1929 1930* ::1 can be spoofed on some OSes, so ACLs based on IPv6 ::1 addresses 1931 can be bypassed. 1932 1933 References: Sec 2672 / CVE-2014-9298 / VU#852879 1934 Affects: All NTP4 releases before 4.2.8p1, under at least some 1935 versions of MacOS and Linux. *BSD has not been seen to be vulnerable. 1936 CVSS: (AV:N/AC:L/Au:N/C:P/I:P/A:C) Base Score: 9 1937 Date Resolved: Stable (4.2.8p1) 04 Feb 2014 1938 Summary: While available kernels will prevent 127.0.0.1 addresses 1939 from "appearing" on non-localhost IPv4 interfaces, some kernels 1940 do not offer the same protection for ::1 source addresses on 1941 IPv6 interfaces. Since NTP's access control is based on source 1942 address and localhost addresses generally have no restrictions, 1943 an attacker can send malicious control and configuration packets 1944 by spoofing ::1 addresses from the outside. Note Well: This is 1945 not really a bug in NTP, it's a problem with some OSes. If you 1946 have one of these OSes where ::1 can be spoofed, ALL ::1 -based 1947 ACL restrictions on any application can be bypassed! 1948 Mitigation: 1949 Upgrade to 4.2.8p1, or later, from the NTP Project Download Page 1950 or the NTP Public Services Project Download Page 1951 Install firewall rules to block packets claiming to come from 1952 ::1 from inappropriate network interfaces. 1953 Credit: This vulnerability was discovered by Stephen Roettger of 1954 the Google Security Team. 1955 1956Additionally, over 30 bugfixes and improvements were made to the codebase. 1957See the ChangeLog for more information. 1958 1959--- 1960NTP 4.2.8 (Harlan Stenn <stenn@ntp.org>, 2014/12/18) 1961 1962Focus: Security and Bug fixes, enhancements. 1963 1964Severity: HIGH 1965 1966In addition to bug fixes and enhancements, this release fixes the 1967following high-severity vulnerabilities: 1968 1969************************** vv NOTE WELL vv ***************************** 1970 1971The vulnerabilities listed below can be significantly mitigated by 1972following the BCP of putting 1973 1974 restrict default ... noquery 1975 1976in the ntp.conf file. With the exception of: 1977 1978 receive(): missing return on error 1979 References: Sec 2670 / CVE-2014-9296 / VU#852879 1980 1981below (which is a limited-risk vulnerability), none of the recent 1982vulnerabilities listed below can be exploited if the source IP is 1983restricted from sending a 'query'-class packet by your ntp.conf file. 1984 1985************************** ^^ NOTE WELL ^^ ***************************** 1986 1987* Weak default key in config_auth(). 1988 1989 References: [Sec 2665] / CVE-2014-9293 / VU#852879 1990 CVSS: (AV:N/AC:L/Au:M/C:P/I:P/A:C) Base Score: 7.3 1991 Vulnerable Versions: all releases prior to 4.2.7p11 1992 Date Resolved: 28 Jan 2010 1993 1994 Summary: If no 'auth' key is set in the configuration file, ntpd 1995 would generate a random key on the fly. There were two 1996 problems with this: 1) the generated key was 31 bits in size, 1997 and 2) it used the (now weak) ntp_random() function, which was 1998 seeded with a 32-bit value and could only provide 32 bits of 1999 entropy. This was sufficient back in the late 1990s when the 2000 code was written. Not today. 2001 2002 Mitigation - any of: 2003 - Upgrade to 4.2.7p11 or later. 2004 - Follow BCP and put 'restrict ... noquery' in your ntp.conf file. 2005 2006 Credit: This vulnerability was noticed in ntp-4.2.6 by Neel Mehta 2007 of the Google Security Team. 2008 2009* Non-cryptographic random number generator with weak seed used by 2010 ntp-keygen to generate symmetric keys. 2011 2012 References: [Sec 2666] / CVE-2014-9294 / VU#852879 2013 CVSS: (AV:N/AC:L/Au:M/C:P/I:P/A:C) Base Score: 7.3 2014 Vulnerable Versions: All NTP4 releases before 4.2.7p230 2015 Date Resolved: Dev (4.2.7p230) 01 Nov 2011 2016 2017 Summary: Prior to ntp-4.2.7p230 ntp-keygen used a weak seed to 2018 prepare a random number generator that was of good quality back 2019 in the late 1990s. The random numbers produced was then used to 2020 generate symmetric keys. In ntp-4.2.8 we use a current-technology 2021 cryptographic random number generator, either RAND_bytes from 2022 OpenSSL, or arc4random(). 2023 2024 Mitigation - any of: 2025 - Upgrade to 4.2.7p230 or later. 2026 - Follow BCP and put 'restrict ... noquery' in your ntp.conf file. 2027 2028 Credit: This vulnerability was discovered in ntp-4.2.6 by 2029 Stephen Roettger of the Google Security Team. 2030 2031* Buffer overflow in crypto_recv() 2032 2033 References: Sec 2667 / CVE-2014-9295 / VU#852879 2034 CVSS: (AV:N/AC:L/Au:N/C:P/I:P/A:P) Base Score: 7.5 2035 Versions: All releases before 4.2.8 2036 Date Resolved: Stable (4.2.8) 18 Dec 2014 2037 2038 Summary: When Autokey Authentication is enabled (i.e. the ntp.conf 2039 file contains a 'crypto pw ...' directive) a remote attacker 2040 can send a carefully crafted packet that can overflow a stack 2041 buffer and potentially allow malicious code to be executed 2042 with the privilege level of the ntpd process. 2043 2044 Mitigation - any of: 2045 - Upgrade to 4.2.8, or later, or 2046 - Disable Autokey Authentication by removing, or commenting out, 2047 all configuration directives beginning with the crypto keyword 2048 in your ntp.conf file. 2049 2050 Credit: This vulnerability was discovered by Stephen Roettger of the 2051 Google Security Team. 2052 2053* Buffer overflow in ctl_putdata() 2054 2055 References: Sec 2668 / CVE-2014-9295 / VU#852879 2056 CVSS: (AV:N/AC:L/Au:N/C:P/I:P/A:P) Base Score: 7.5 2057 Versions: All NTP4 releases before 4.2.8 2058 Date Resolved: Stable (4.2.8) 18 Dec 2014 2059 2060 Summary: A remote attacker can send a carefully crafted packet that 2061 can overflow a stack buffer and potentially allow malicious 2062 code to be executed with the privilege level of the ntpd process. 2063 2064 Mitigation - any of: 2065 - Upgrade to 4.2.8, or later. 2066 - Follow BCP and put 'restrict ... noquery' in your ntp.conf file. 2067 2068 Credit: This vulnerability was discovered by Stephen Roettger of the 2069 Google Security Team. 2070 2071* Buffer overflow in configure() 2072 2073 References: Sec 2669 / CVE-2014-9295 / VU#852879 2074 CVSS: (AV:N/AC:L/Au:N/C:P/I:P/A:P) Base Score: 7.5 2075 Versions: All NTP4 releases before 4.2.8 2076 Date Resolved: Stable (4.2.8) 18 Dec 2014 2077 2078 Summary: A remote attacker can send a carefully crafted packet that 2079 can overflow a stack buffer and potentially allow malicious 2080 code to be executed with the privilege level of the ntpd process. 2081 2082 Mitigation - any of: 2083 - Upgrade to 4.2.8, or later. 2084 - Follow BCP and put 'restrict ... noquery' in your ntp.conf file. 2085 2086 Credit: This vulnerability was discovered by Stephen Roettger of the 2087 Google Security Team. 2088 2089* receive(): missing return on error 2090 2091 References: Sec 2670 / CVE-2014-9296 / VU#852879 2092 CVSS: (AV:N/AC:L/Au:N/C:N/I:N/A:P) Base Score: 5.0 2093 Versions: All NTP4 releases before 4.2.8 2094 Date Resolved: Stable (4.2.8) 18 Dec 2014 2095 2096 Summary: Code in ntp_proto.c:receive() was missing a 'return;' in 2097 the code path where an error was detected, which meant 2098 processing did not stop when a specific rare error occurred. 2099 We haven't found a way for this bug to affect system integrity. 2100 If there is no way to affect system integrity the base CVSS 2101 score for this bug is 0. If there is one avenue through which 2102 system integrity can be partially affected, the base score 2103 becomes a 5. If system integrity can be partially affected 2104 via all three integrity metrics, the CVSS base score become 7.5. 2105 2106 Mitigation - any of: 2107 - Upgrade to 4.2.8, or later, 2108 - Remove or comment out all configuration directives 2109 beginning with the crypto keyword in your ntp.conf file. 2110 2111 Credit: This vulnerability was discovered by Stephen Roettger of the 2112 Google Security Team. 2113 2114See http://support.ntp.org/security for more information. 2115 2116New features / changes in this release: 2117 2118Important Changes 2119 2120* Internal NTP Era counters 2121 2122The internal counters that track the "era" (range of years) we are in 2123rolls over every 136 years'. The current "era" started at the stroke of 2124midnight on 1 Jan 1900, and ends just before the stroke of midnight on 21251 Jan 2036. 2126In the past, we have used the "midpoint" of the range to decide which 2127era we were in. Given the longevity of some products, it became clear 2128that it would be more functional to "look back" less, and "look forward" 2129more. We now compile a timestamp into the ntpd executable and when we 2130get a timestamp we us the "built-on" to tell us what era we are in. 2131This check "looks back" 10 years, and "looks forward" 126 years. 2132 2133* ntpdc responses disabled by default 2134 2135Dave Hart writes: 2136 2137For a long time, ntpq and its mostly text-based mode 6 (control) 2138protocol have been preferred over ntpdc and its mode 7 (private 2139request) protocol for runtime queries and configuration. There has 2140been a goal of deprecating ntpdc, previously held back by numerous 2141capabilities exposed by ntpdc with no ntpq equivalent. I have been 2142adding commands to ntpq to cover these cases, and I believe I've 2143covered them all, though I've not compared command-by-command 2144recently. 2145 2146As I've said previously, the binary mode 7 protocol involves a lot of 2147hand-rolled structure layout and byte-swapping code in both ntpd and 2148ntpdc which is hard to get right. As ntpd grows and changes, the 2149changes are difficult to expose via ntpdc while maintaining forward 2150and backward compatibility between ntpdc and ntpd. In contrast, 2151ntpq's text-based, label=value approach involves more code reuse and 2152allows compatible changes without extra work in most cases. 2153 2154Mode 7 has always been defined as vendor/implementation-specific while 2155mode 6 is described in RFC 1305 and intended to be open to interoperate 2156with other implementations. There is an early draft of an updated 2157mode 6 description that likely will join the other NTPv4 RFCs 2158eventually. (http://tools.ietf.org/html/draft-odonoghue-ntpv4-control-01) 2159 2160For these reasons, ntpd 4.2.7p230 by default disables processing of 2161ntpdc queries, reducing ntpd's attack surface and functionally 2162deprecating ntpdc. If you are in the habit of using ntpdc for certain 2163operations, please try the ntpq equivalent. If there's no equivalent, 2164please open a bug report at http://bugs.ntp.org./ 2165 2166In addition to the above, over 1100 issues have been resolved between 2167the 4.2.6 branch and 4.2.8. The ChangeLog file in the distribution 2168lists these. 2169 2170--- 2171NTP 4.2.6p5 (Harlan Stenn <stenn@ntp.org>, 2011/12/24) 2172 2173Focus: Bug fixes 2174 2175Severity: Medium 2176 2177This is a recommended upgrade. 2178 2179This release updates sys_rootdisp and sys_jitter calculations to match the 2180RFC specification, fixes a potential IPv6 address matching error for the 2181"nic" and "interface" configuration directives, suppresses the creation of 2182extraneous ephemeral associations for certain broadcastclient and 2183multicastclient configurations, cleans up some ntpq display issues, and 2184includes improvements to orphan mode, minor bugs fixes and code clean-ups. 2185 2186New features / changes in this release: 2187 2188ntpd 2189 2190 * Updated "nic" and "interface" IPv6 address handling to prevent 2191 mismatches with localhost [::1] and wildcard [::] which resulted from 2192 using the address/prefix format (e.g. fe80::/64) 2193 * Fix orphan mode stratum incorrectly counting to infinity 2194 * Orphan parent selection metric updated to includes missing ntohl() 2195 * Non-printable stratum 16 refid no longer sent to ntp 2196 * Duplicate ephemeral associations suppressed for broadcastclient and 2197 multicastclient without broadcastdelay 2198 * Exclude undetermined sys_refid from use in loopback TEST12 2199 * Exclude MODE_SERVER responses from KoD rate limiting 2200 * Include root delay in clock_update() sys_rootdisp calculations 2201 * get_systime() updated to exclude sys_residual offset (which only 2202 affected bits "below" sys_tick, the precision threshold) 2203 * sys.peer jitter weighting corrected in sys_jitter calculation 2204 2205ntpq 2206 2207 * -n option extended to include the billboard "server" column 2208 * IPv6 addresses in the local column truncated to prevent overruns 2209 2210--- 2211NTP 4.2.6p4 (Harlan Stenn <stenn@ntp.org>, 2011/09/22) 2212 2213Focus: Bug fixes and portability improvements 2214 2215Severity: Medium 2216 2217This is a recommended upgrade. 2218 2219This release includes build infrastructure updates, code 2220clean-ups, minor bug fixes, fixes for a number of minor 2221ref-clock issues, and documentation revisions. 2222 2223Portability improvements affect AIX, HP-UX, Linux, OS X and 64-bit time_t. 2224 2225New features / changes in this release: 2226 2227Build system 2228 2229* Fix checking for struct rtattr 2230* Update config.guess and config.sub for AIX 2231* Upgrade required version of autogen and libopts for building 2232 from our source code repository 2233 2234ntpd 2235 2236* Back-ported several fixes for Coverity warnings from ntp-dev 2237* Fix a rare boundary condition in UNLINK_EXPR_SLIST() 2238* Allow "logconfig =allall" configuration directive 2239* Bind tentative IPv6 addresses on Linux 2240* Correct WWVB/Spectracom driver to timestamp CR instead of LF 2241* Improved tally bit handling to prevent incorrect ntpq peer status reports 2242* Exclude the Undisciplined Local Clock and ACTS drivers from the initial 2243 candidate list unless they are designated a "prefer peer" 2244* Prevent the consideration of Undisciplined Local Clock or ACTS drivers for 2245 selection during the 'tos orphanwait' period 2246* Prefer an Orphan Mode Parent over the Undisciplined Local Clock or ACTS 2247 drivers 2248* Improved support of the Parse Refclock trusttime flag in Meinberg mode 2249* Back-port utility routines from ntp-dev: mprintf(), emalloc_zero() 2250* Added the NTPD_TICKADJ_PPM environment variable for specifying baseline 2251 clock slew on Microsoft Windows 2252* Code cleanup in libntpq 2253 2254ntpdc 2255 2256* Fix timerstats reporting 2257 2258ntpdate 2259 2260* Reduce time required to set clock 2261* Allow a timeout greater than 2 seconds 2262 2263sntp 2264 2265* Backward incompatible command-line option change: 2266 -l/--filelog changed -l/--logfile (to be consistent with ntpd) 2267 2268Documentation 2269 2270* Update html2man. Fix some tags in the .html files 2271* Distribute ntp-wait.html 2272 2273--- 2274NTP 4.2.6p3 (Harlan Stenn <stenn@ntp.org>, 2011/01/03) 2275 2276Focus: Bug fixes and portability improvements 2277 2278Severity: Medium 2279 2280This is a recommended upgrade. 2281 2282This release includes build infrastructure updates, code 2283clean-ups, minor bug fixes, fixes for a number of minor 2284ref-clock issues, and documentation revisions. 2285 2286Portability improvements in this release affect AIX, Atari FreeMiNT, 2287FreeBSD4, Linux and Microsoft Windows. 2288 2289New features / changes in this release: 2290 2291Build system 2292* Use lsb_release to get information about Linux distributions. 2293* 'test' is in /usr/bin (instead of /bin) on some systems. 2294* Basic sanity checks for the ChangeLog file. 2295* Source certain build files with ./filename for systems without . in PATH. 2296* IRIX portability fix. 2297* Use a single copy of the "libopts" code. 2298* autogen/libopts upgrade. 2299* configure.ac m4 quoting cleanup. 2300 2301ntpd 2302* Do not bind to IN6_IFF_ANYCAST addresses. 2303* Log the reason for exiting under Windows. 2304* Multicast fixes for Windows. 2305* Interpolation fixes for Windows. 2306* IPv4 and IPv6 Multicast fixes. 2307* Manycast solicitation fixes and general repairs. 2308* JJY refclock cleanup. 2309* NMEA refclock improvements. 2310* Oncore debug message cleanup. 2311* Palisade refclock now builds under Linux. 2312* Give RAWDCF more baud rates. 2313* Support Truetime Satellite clocks under Windows. 2314* Support Arbiter 1093C Satellite clocks under Windows. 2315* Make sure that the "filegen" configuration command defaults to "enable". 2316* Range-check the status codes (plus other cleanup) in the RIPE-NCC driver. 2317* Prohibit 'includefile' directive in remote configuration command. 2318* Fix 'nic' interface bindings. 2319* Fix the way we link with openssl if openssl is installed in the base 2320 system. 2321 2322ntp-keygen 2323* Fix -V coredump. 2324* OpenSSL version display cleanup. 2325 2326ntpdc 2327* Many counters should be treated as unsigned. 2328 2329ntpdate 2330* Do not ignore replies with equal receive and transmit timestamps. 2331 2332ntpq 2333* libntpq warning cleanup. 2334 2335ntpsnmpd 2336* Correct SNMP type for "precision" and "resolution". 2337* Update the MIB from the draft version to RFC-5907. 2338 2339sntp 2340* Display timezone offset when showing time for sntp in the local 2341 timezone. 2342* Pay proper attention to RATE KoD packets. 2343* Fix a miscalculation of the offset. 2344* Properly parse empty lines in the key file. 2345* Logging cleanup. 2346* Use tv_usec correctly in set_time(). 2347* Documentation cleanup. 2348 2349--- 2350NTP 4.2.6p2 (Harlan Stenn <stenn@ntp.org>, 2010/07/08) 2351 2352Focus: Bug fixes and portability improvements 2353 2354Severity: Medium 2355 2356This is a recommended upgrade. 2357 2358This release includes build infrastructure updates, code 2359clean-ups, minor bug fixes, fixes for a number of minor 2360ref-clock issues, improved KOD handling, OpenSSL related 2361updates and documentation revisions. 2362 2363Portability improvements in this release affect Irix, Linux, 2364Mac OS, Microsoft Windows, OpenBSD and QNX6 2365 2366New features / changes in this release: 2367 2368ntpd 2369* Range syntax for the trustedkey configuration directive 2370* Unified IPv4 and IPv6 restrict lists 2371 2372ntpdate 2373* Rate limiting and KOD handling 2374 2375ntpsnmpd 2376* default connection to net-snmpd via a unix-domain socket 2377* command-line 'socket name' option 2378 2379ntpq / ntpdc 2380* support for the "passwd ..." syntax 2381* key-type specific password prompts 2382 2383sntp 2384* MD5 authentication of an ntpd 2385* Broadcast and crypto 2386* OpenSSL support 2387 2388--- 2389NTP 4.2.6p1 (Harlan Stenn <stenn@ntp.org>, 2010/04/09) 2390 2391Focus: Bug fixes, portability fixes, and documentation improvements 2392 2393Severity: Medium 2394 2395This is a recommended upgrade. 2396 2397--- 2398NTP 4.2.6 (Harlan Stenn <stenn@ntp.org>, 2009/12/08) 2399 2400Focus: enhancements and bug fixes. 2401 2402--- 2403NTP 4.2.4p8 (Harlan Stenn <stenn@ntp.org>, 2009/12/08) 2404 2405Focus: Security Fixes 2406 2407Severity: HIGH 2408 2409This release fixes the following high-severity vulnerability: 2410 2411* [Sec 1331] DoS with mode 7 packets - CVE-2009-3563. 2412 2413 See http://support.ntp.org/security for more information. 2414 2415 NTP mode 7 (MODE_PRIVATE) is used by the ntpdc query and control utility. 2416 In contrast, ntpq uses NTP mode 6 (MODE_CONTROL), while routine NTP time 2417 transfers use modes 1 through 5. Upon receipt of an incorrect mode 7 2418 request or a mode 7 error response from an address which is not listed 2419 in a "restrict ... noquery" or "restrict ... ignore" statement, ntpd will 2420 reply with a mode 7 error response (and log a message). In this case: 2421 2422 * If an attacker spoofs the source address of ntpd host A in a 2423 mode 7 response packet sent to ntpd host B, both A and B will 2424 continuously send each other error responses, for as long as 2425 those packets get through. 2426 2427 * If an attacker spoofs an address of ntpd host A in a mode 7 2428 response packet sent to ntpd host A, A will respond to itself 2429 endlessly, consuming CPU and logging excessively. 2430 2431 Credit for finding this vulnerability goes to Robin Park and Dmitri 2432 Vinokurov of Alcatel-Lucent. 2433 2434THIS IS A STRONGLY RECOMMENDED UPGRADE. 2435 2436--- 2437ntpd now syncs to refclocks right away. 2438 2439Backward-Incompatible changes: 2440 2441ntpd no longer accepts '-v name' or '-V name' to define internal variables. 2442Use '--var name' or '--dvar name' instead. (Bug 817) 2443 2444--- 2445NTP 4.2.4p7 (Harlan Stenn <stenn@ntp.org>, 2009/05/04) 2446 2447Focus: Security and Bug Fixes 2448 2449Severity: HIGH 2450 2451This release fixes the following high-severity vulnerability: 2452 2453* [Sec 1151] Remote exploit if autokey is enabled. CVE-2009-1252 2454 2455 See http://support.ntp.org/security for more information. 2456 2457 If autokey is enabled (if ntp.conf contains a "crypto pw whatever" 2458 line) then a carefully crafted packet sent to the machine will cause 2459 a buffer overflow and possible execution of injected code, running 2460 with the privileges of the ntpd process (often root). 2461 2462 Credit for finding this vulnerability goes to Chris Ries of CMU. 2463 2464This release fixes the following low-severity vulnerabilities: 2465 2466* [Sec 1144] limited (two byte) buffer overflow in ntpq. CVE-2009-0159 2467 Credit for finding this vulnerability goes to Geoff Keating of Apple. 2468 2469* [Sec 1149] use SO_EXCLUSIVEADDRUSE on Windows 2470 Credit for finding this issue goes to Dave Hart. 2471 2472This release fixes a number of bugs and adds some improvements: 2473 2474* Improved logging 2475* Fix many compiler warnings 2476* Many fixes and improvements for Windows 2477* Adds support for AIX 6.1 2478* Resolves some issues under MacOS X and Solaris 2479 2480THIS IS A STRONGLY RECOMMENDED UPGRADE. 2481 2482--- 2483NTP 4.2.4p6 (Harlan Stenn <stenn@ntp.org>, 2009/01/07) 2484 2485Focus: Security Fix 2486 2487Severity: Low 2488 2489This release fixes oCERT.org's CVE-2009-0021, a vulnerability affecting 2490the OpenSSL library relating to the incorrect checking of the return 2491value of EVP_VerifyFinal function. 2492 2493Credit for finding this issue goes to the Google Security Team for 2494finding the original issue with OpenSSL, and to ocert.org for finding 2495the problem in NTP and telling us about it. 2496 2497This is a recommended upgrade. 2498--- 2499NTP 4.2.4p5 (Harlan Stenn <stenn@ntp.org>, 2008/08/17) 2500 2501Focus: Minor Bugfixes 2502 2503This release fixes a number of Windows-specific ntpd bugs and 2504platform-independent ntpdate bugs. A logging bugfix has been applied 2505to the ONCORE driver. 2506 2507The "dynamic" keyword and is now obsolete and deferred binding to local 2508interfaces is the new default. The minimum time restriction for the 2509interface update interval has been dropped. 2510 2511A number of minor build system and documentation fixes are included. 2512 2513This is a recommended upgrade for Windows. 2514 2515--- 2516NTP 4.2.4p4 (Harlan Stenn <stenn@ntp.org>, 2007/09/10) 2517 2518Focus: Minor Bugfixes 2519 2520This release updates certain copyright information, fixes several display 2521bugs in ntpdc, avoids SIGIO interrupting malloc(), cleans up file descriptor 2522shutdown in the parse refclock driver, removes some lint from the code, 2523stops accessing certain buffers immediately after they were freed, fixes 2524a problem with non-command-line specification of -6, and allows the loopback 2525interface to share addresses with other interfaces. 2526 2527--- 2528NTP 4.2.4p3 (Harlan Stenn <stenn@ntp.org>, 2007/06/29) 2529 2530Focus: Minor Bugfixes 2531 2532This release fixes a bug in Windows that made it difficult to 2533terminate ntpd under windows. 2534This is a recommended upgrade for Windows. 2535 2536--- 2537NTP 4.2.4p2 (Harlan Stenn <stenn@ntp.org>, 2007/06/19) 2538 2539Focus: Minor Bugfixes 2540 2541This release fixes a multicast mode authentication problem, 2542an error in NTP packet handling on Windows that could lead to 2543ntpd crashing, and several other minor bugs. Handling of 2544multicast interfaces and logging configuration were improved. 2545The required versions of autogen and libopts were incremented. 2546This is a recommended upgrade for Windows and multicast users. 2547 2548--- 2549NTP 4.2.4 (Harlan Stenn <stenn@ntp.org>, 2006/12/31) 2550 2551Focus: enhancements and bug fixes. 2552 2553Dynamic interface rescanning was added to simplify the use of ntpd in 2554conjunction with DHCP. GNU AutoGen is used for its command-line options 2555processing. Separate PPS devices are supported for PARSE refclocks, MD5 2556signatures are now provided for the release files. Drivers have been 2557added for some new ref-clocks and have been removed for some older 2558ref-clocks. This release also includes other improvements, documentation 2559and bug fixes. 2560 2561K&R C is no longer supported as of NTP-4.2.4. We are now aiming for ANSI 2562C support. 2563 2564--- 2565NTP 4.2.0 (Harlan Stenn <stenn@ntp.org>, 2003/10/15) 2566 2567Focus: enhancements and bug fixes. 2568