Skip to content
DoS Advisory Intermediate CVE-2020-6078

Videolabs libmicrodns 0.1.0 mdns_recv return value denial-of-service vulnerability

The mdns_recv function does not check the return value of mdns_read_header, so a short mDNS message leaves the header structure uninitialised. If a previous valid message set a non-zero record count, the code then dereferences a null pointer and crashes the service.

Claudio Bozzato Follow

Originally disclosed on Cisco Talos

High 7.5 View original

An exploitable denial-of-service vulnerability exists in the message-parsing functionality of Videolabs libmicrodns 0.1.0. When parsing mDNS messages in mdnsrecv, the return value of the mdnsreadheader function is not checked, leading to an uninitialized variable usage that eventually results in a null pointer…

Claudio Bozzato, 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 return value of mdns_read_header is not checked, so a failed header parse leaves the header structure with stale values from a previous message, and the code later dereferences a null pointer.

Impact

An attacker can send a series of mDNS messages to crash the service, causing a denial of service.

What the attacker needed

Network access to the mDNS service; send a valid message first; then send a short message

How it was found

  1. Send a valid mDNS message so that the header structure is filled with non-zero record counts.
  2. Send a second mDNS message that is too short (12 bytes or fewer) to be parsed as a header.
  3. The header parsing fails and returns null, but the code continues using the old header values.
  4. The code attempts to parse resource records using the null pointer, causing a crash.

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.

A program reads network messages and expects a header at the start. If a message is too short, the header-reading function fails and returns a null pointer, but the program ignores that failure and keeps using old data from a previous message. That leads to a crash when it tries to read from the null pointer.

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 Claudio Bozzato

View all

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