All reports
Medium

ntp: MITM attacker can force ntpd to make a step larger than the panic threshold

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2015-5300

Probability of exploitation in the next 30 days: 9.13%

FIRST EPSS · 2026-11-24

Description

The panic_gate check in NTP before 4.2.8p5 is only re-enabled after the first change to the system clock that was greater than 128 milliseconds by default, which allows remote attackers to set NTP to an arbitrary time when started with the -g option, or to alter the time by up to 900 seconds otherwise by responding to an unspecified number of requests from trusted sources, and leveraging a resulting denial of service (abort and restart).

It was found that ntpd did not correctly implement the threshold limitation for the '-g' option, which is used to set the time without any restrictions. A man-in-the-middle attacker able to intercept NTP traffic between a connecting client and an NTP server could use this flaw to force that client to make multiple steps larger than the panic threshold, effectively changing the time to an arbitrary value at any time.