Skip to content
DoS Advisory Intermediate CVE-2016-7428

Network Time Protocol Broadcast Mode Poll Interval Enforcement Denial of Service Vulnerability

ntpd's broadcast mode poll interval check used the time of the last received packet, including spoofed or replayed ones, instead of the last clean packet. An attacker could send spoofed broadcast packets to keep resetting this timer, causing legitimate broadcast packets to be rejected and denying service.

Matthew Van Gundy Follow

Originally disclosed on Cisco Talos

Medium 5.3 View original

An exploitable denial of service vulnerability exists in the broadcast mode poll interval enforcement functionality of ntpd. To limit abuse, ntpd restricts the rate at which each broadcast association will process incoming packets. ntpd will reject broadcast mode packets that arrive before the poll interval specified…

Matthew Van Gundy, on Cisco Talos

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The poll interval check compared against the last received packet time (peer->timelastrec), which is updated by all packets including spoofed and replayed ones, rather than the last clean packet time (peer->timereceived).

Impact

An attacker could cause ntpd to reject all broadcast mode packets from legitimate NTP broadcast servers, resulting in a denial of service; authentication and the restrict notrust directive have no effect because the vulnerable logic runs before authentication.

What the attacker needed

Network access to the victim; Ability to spoof source IP addresses; Knowledge of the broadcast server's IP

The fix

The fix was to compare against the last clean packet time (peer->timereceived) instead of the last received packet time, so only clean packets reset the poll interval timer.

How it was found

  1. Discover the IP address of the victim's broadcast server, for example by sending a client mode NTP packet and reading the refid field of the reply.
  2. At least once per poll period, send the victim a spoofed broadcast mode packet from the broadcast server's IP address.
  3. This updates peer->timelastrec to the current time, so when a legitimate packet arrives it appears to have been received too early and is discarded.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

NTP is a protocol that keeps computer clocks in sync. In broadcast mode, a server sends time updates to many clients at once. The software had a bug where it would ignore real updates if an attacker sent fake ones often enough, so the victim's clock could not be updated.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by Matthew Van Gundy

View all

8 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.