CVE-2015-8138: Input Validation
NTP before 4.2.8p6 and 4.3.x before 4.3.90 allows remote attackers to bypass the origin timestamp validation via a packet with an origin timestamp set to zero.
Other sources
The TEST2 check of the originate timestamp in received packets, which requires the timestamp to match the value of the peer->aorg variable and which is supposed to be random to prevent spoofing attacks has been found to be faulty.
When ntpd receives a reply, it clears the peer->aorg variable to prevent a replay attack. This makes the value known to the attacker and a spoofed packet with a zero originate timestamp will pass the TEST2.
This means an off-path attacker can disrupt the synchronization with KoD packets, similar to CVE-2015-7704, or they can push arbitrary offset/delay measurements to the client, taking full control over the clock or cause ntpd to exit with an offset larger than the panic threshold.
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/ntpto a version that resolves this vulnerability.Fixed in 1:4.2.8p7+dfsg-1 - Upgrade
Upgrade
debian/ntpto a version that resolves this vulnerability.Fixed in 1:4.2.6.p5+dfsg-2+deb7u7Fixed in 1:4.2.6.p5+dfsg-7+deb8u2Fixed in 1:4.2.8p7+dfsg-1
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2015-8138?
CVE-2015-8138 has a medium severity rating, which indicates a moderate risk to affected systems.
How do I fix CVE-2015-8138?
To mitigate CVE-2015-8138, users should update to NTP versions 4.2.8p12+dfsg-4 or 4.3.90 and higher.
What software is affected by CVE-2015-8138?
CVE-2015-8138 affects NTP versions before 4.2.8p6 and 4.3.x before 4.3.90.
Can CVE-2015-8138 be exploited remotely?
Yes, CVE-2015-8138 allows remote attackers to bypass origin timestamp validation.
What impact does CVE-2015-8138 have on my systems?
Exploitation of CVE-2015-8138 could lead to manipulation of time synchronization, which may affect system operations.