ntpd: read_mru_list() does inadequate incoming packet checks
The ntpd daemon did not properly validate incoming packets handled by its read_mru_list() function, which processes mrulist queries. A server able to send a crafted mrulist query packet could cause ntpd to crash.
Originally disclosed on HackerOne
- Fixed in 13 months
- Paid in 13 months
- Disclosed after 13 months
Summary by the program
Summary: If ntpd is configured to allow mrulist query requests from a server that sends a crafted malicious packet, ntpd will crash on receipt of that crafted malicious mrulist query packet.
Mitigation:
- Only allow
mrulistquery packets from trusted hosts. - Implement BCP-38.
- Upgrade to 4.2.8p9, or later, from the NTP Project Download Page or the NTP Public Services Project Download Page
- Properly monitor your
ntpdinstances, and auto-restartntpd(without-g) if it stops running.
Credit: This weakness was discovered by Magnus Stubman.
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
Impact
An attacker who can send mrulist queries to a server that permits them could crash ntpd, causing a denial of service; restricting mrulist queries to trusted hosts limits exposure.
What the attacker needed
Ntpd allows mrulist queries from the sender; attacker can send packets to ntpd
The fix
Operators should upgrade to 4.2.8p9 or later and restrict mrulist queries to trusted hosts.
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 a program that keeps computers' clocks in sync over the network. It has a feature that lets other machines ask for a list of recently seen clients, and the code handling those requests did not check the incoming packet carefully enough. A malicious packet sent to that feature could make the clock program crash, which is a denial of service.
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.