CVE-2015-5300: High severity red hat fedora vulnerability
It was found that ntpd did not correctly implement the -g option:
-g Normally, ntpd exits with a message to the system log if the offset exceeds the panic threshold, which is 1000 s by default. This option allows the time to be set to any value without restriction; however, this can happen only once. If the thresh‐ old is exceeded after that, ntpd will exit with a message to the system log. This option can be used with the -q and -x options. See the tinker command for other options.
ntpd could actually step the clock multiple times by more than the panic threshold if its clock discipline doesn't have enough time to reach the sync state and stay there for at least one update. If a man-in-the-middle attacker can control the NTP traffic since ntpd was started (or maybe up to 15-30 minutes after that), they can prevent the client from reaching the sync state and force it to step its clock by any amount any number of times, which can be used by attackers to expire certificates, etc.
This is contrary to what the documentation says. Normally, the assumption is that an MITM attacker can step the clock more than the panic threshold only once when ntpd starts and to make a larger adjustment the attacker has to divide it into multiple smaller steps, each taking 15 minutes, which is slow.
Other sources
The panicgate 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).
— MITRE
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2015-5300?
CVE-2015-5300 is classified as a high-severity vulnerability due to its potential impact on system time synchronization.
How do I fix CVE-2015-5300?
To fix CVE-2015-5300, upgrade your NTP software to version 4.2.8 or later.
What systems are affected by CVE-2015-5300?
CVE-2015-5300 affects various versions of NTP across multiple Linux distributions including Red Hat, Fedora, SUSE, and Ubuntu.
What does the -g option in NTP relate to CVE-2015-5300?
The -g option in NTP, while intended to allow setting time to any value, compromises safeguards against excessive time shifts, making systems vulnerable under certain conditions.
Is CVE-2015-5300 a remote exploit risk?
Yes, CVE-2015-5300 poses a remote exploit risk since it can be triggered by an attacker manipulating time settings without proper restrictions.