Skip to content
DoS Advisory Intermediate CVE-2020-6073

Videolabs libmicrodns 0.1.0 TXT record RDATA-parsing denial-of-service vulnerability

The TXT record parsing in libmicrodns 0.1.0 suffers from integer overflows when handling the RDATA section, allowing an attacker to send a crafted mDNS message that causes an out-of-bounds read and crashes the program.

Claudio Bozzato Follow

Originally disclosed on Cisco Talos

High 7.5 View original

An exploitable denial-of-service vulnerability exists in the TXT record-parsing functionality of Videolabs libmicrodns 0.1.0. When parsing the RDATA section in a TXT record in mDNS messages, multiple integer overflows can be triggered, leading to a denial of service.

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

Likely, the code uses unsigned integers for length tracking without proper bounds checks, so a crafted length value can cause the counters to wrap around and lead to an infinite loop and out-of-bounds read.

Impact

An attacker could cause a denial of service by crashing the application that uses the library.

What the attacker needed

Attacker on same network; send crafted mDNS message

The fix

The vendor patched the vulnerability, likely by adding proper bounds checks to prevent integer overflows.

How it was found

  1. Send an mDNS message with a TXT record where the length byte equals the remaining bytes in the packet.
  2. Ensure the declared RDATA length is less than or equal to that length byte.
  3. The parser advances by that length, setting remaining bytes to zero and causing the length counter to underflow.
  4. The loop continues, reading further length bytes and advancing, eventually causing an out-of-bounds read and 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.

This report describes a bug in a small library that helps computers find services on a local network. When the library reads a special kind of network message, it can get confused by the numbers it uses to track how much data is left, causing it to read past the end of the message and crash. An attacker on the same network could send such a message to make the program stop working.

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.