Videolabs libmicrodns 0.1.0 resource record recursive label uncompression denial-of-service vulnerability
The mDNS message parser in libmicrodns 0.1.0 follows compression pointers in resource record labels recursively without any recursion limit. An attacker who sends a crafted mDNS message with a pointer that refers back to itself can cause endless recursion, exhaust the stack and crash the process, giving a denial of service.
Originally disclosed on Cisco Talos
An exploitable denial-of-service vulnerability exists in the resource record-parsing functionality of Videolabs libmicrodns 0.1.0. When parsing compressed labels in mDNS messages, the compression pointer is followed without checking for recursion, leading to a denial of service.
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 label-decoding function recurses into compression pointers without tracking recursion depth or detecting loops, so a self-referential pointer causes unbounded recursion.
Impact
A remote, unauthenticated attacker could crash the process that uses the library, causing a denial of service.
What the attacker needed
Network access to the mDNS listener; no authentication needed
The fix
The vendor patched the issue, presumably by adding recursion checks when following compression pointers.
How it was found
- Send an mDNS message to the target that contains a resource record label with a compression pointer.
- Make the pointer refer back to its own location so decoding loops.
- The parser recurses endlessly and the stack is exhausted, crashing the process.
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.
mDNS is a way for devices on a local network to find each other by name. To save space, names in these messages can point back to an earlier part of the same message instead of repeating the text. The library followed those pointers without ever checking how deep it had gone, so a pointer that loops back on itself made the program call itself forever until it ran out of memory and crashed.
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.