dnsmasq DNSSEC NSEC/NSEC3 Type Bitmap Processing Infinite Loop Denial-of-Service Vulnerability
dnsmasq mishandles NSEC records in DNSSEC validation, lacking a proper exit condition in a loop. A remote attacker can send crafted DNS responses to cause an infinite loop and deny service.
This vulnerability allows remote attackers to create a denial-of-service condition on affected installations of dnsmasq. Authentication is not required to exploit this vulnerability.
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 a loop that processes NSEC type bitmaps without a correct termination condition, so certain record contents keep it running indefinitely.
Impact
A remote, unauthenticated attacker could cause a denial-of-service condition on affected dnsmasq installations.
What the attacker needed
Network access to a dnsmasq resolver; DNSSEC validation enabled
The fix
It was fixed in dnsmasq-2.93.
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.
dnsmasq is a small DNS server that many networks use. DNSSEC is a security add-on that lets DNS answers be checked with cryptographic signatures. A flaw in how dnsmasq checks one kind of DNSSEC record can make it loop forever, so it stops answering queries and the network loses DNS.
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.