Skip to content
DoS Advisory Advanced CVE-2016-1547

Network Time Protocol Crypto-NAK Preemptible Association Denial of Service Vulnerability

An off-path attacker can send a spoofed crypto-NAK packet with the source address of an existing peer to a client that holds a preemptible association, causing the client to demobilise that association. By repeating the packet, the attacker can prevent the victim from ever re-establishing the association and synchronising time with the legitimate server.

Matthew Van Gundy Follow

Originally disclosed on Cisco Talos

An off-path attacker can cause a preemptible client association to be demobilized by sending a crypto NAK packet to a victim client with a spoofed source address of an existing associated peer. This is true even if authentication is enabled.

This defect was discovered by Stephen Gray and 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

Likely the client treats an unauthenticated crypto-NAK as authoritative and calls unpeer() on a preemptible association, letting an off-path spoofed packet tear down state.

Impact

The victim client loses its time association and cannot synchronise time while the attack continues, causing a denial of service; the text notes this works even with authentication enabled.

What the attacker needed

Client uses a preemptible association; attacker can spoof source addresses; attacker knows the peer's address

The fix

Clients should discard packets that fail to authenticate before they can change NTP state, and may safely ignore crypto-NAK packets entirely, plus add sanity checks such as origin timestamp validation.

How it was found

  1. Set up a client with a preemptible association to a time server (via config preempt flag, broadcast/multicast, or manycast/pool).
  2. Send a crypto-NAK packet to the client with the source address spoofed to that of the existing peer.
  3. Observe the client demobilise the association.
  4. Repeat the crypto-NAK roughly every second to prevent re-establishment and time synchronisation.

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 the protocol computers use to keep their clocks correct by talking to time servers. A client can hold a 'preemptible' association, meaning the server entry may be replaced or dropped under certain conditions. Here, a forged packet that claims the server cannot authenticate the client makes the client throw away that server entry, so it stops getting the time, and the attacker can keep doing this to stop it recovering.

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 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.