Skip to content
DoS Advisory Intermediate CVE-2016-9311

Network Time Protocol Trap Crash Denial of Service Vulnerability

When ntpd is configured to send traps, a crafted crypto-NAK packet whose source and mode do not match an existing peer causes report_event() to be called with a NULL peer, tripping an assertion and aborting the daemon. A remote unauthenticated attacker could crash the service, causing a denial of service.

Matthew Van Gundy Follow

Originally disclosed on Cisco Talos

Medium 5.9 View original

An exploitable denial of service vulnerability exists in the trap functionality of ntpd. If an ntpd instance is configured to send traps, a specially crafted network packet can be used to cause a null pointer dereference resulting in a denial of service.

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 report_event() function assumes a peer pointer is always valid when reporting peer events, but a failed crypto-NAK validity check can call it with a NULL peer.

Impact

A remote unauthenticated attacker could crash ntpd, causing a denial of service, but only where trap recipients are configured.

What the attacker needed

Ntpd configured with trap recipients; attacker can send packets to ntpd

The fix

The code should not report peer events when no valid peer exists, and operators should remove trap commands from the configuration; the text does not say a fix was released.

How it was found

  1. Configure ntpd with one or more trap recipients.
  2. Send a crypto-NAK packet whose source address and mode do not match an existing peer.
  3. A validity check fails and ntpd calls report_event with a NULL peer.
  4. The assertion fails and ntpd aborts.

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.

ntpd is the program that keeps a computer's clock in sync over the network. It can be set up to send 'trap' alerts to monitoring systems, and a bug meant that a malformed network message could make it try to send an alert about a connection partner that does not exist, which makes the program shut itself down. The result is that the time service stops working until someone restarts it.

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.