Skip to content
DoS Write-up Advanced

TP-Link TDDP Buffer Overflow Vulnerability

A buffer overflow in the TDDP protocol of TP-Link devices allows an attacker to send a crafted UDP packet with a length field exceeding the maximum buffer size, causing memory corruption and a denial of service. The vulnerability was reported to TP-Link in 2020 but never assigned a CVE.

Olivier Laflamme Follow

Published on boschko.ca

This blog explores a vulnerability that was reported to TP-Link in 2020. However, no CVE was ever assigned, and details about the bug were never disclosed publicly.

Olivier Laflamme, on boschko.ca

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The TDDP packet length field is not validated against the maximum buffer size before being used in memory operations, leading to an out-of-bounds write.

Impact

An attacker could cause a denial of service by crashing the tddpd service, potentially disrupting device management.

What the attacker needed

Network access to UDP port 1040; TDDP service running

How it was found

  1. Set up the device firmware in a VM and start the tddpd service.
  2. Craft a UDP packet with the TDDP version set to 2 and the packet length field set to a value greater than 0x14000.
  3. Compute the MD5 digest over the packet with the digest field zeroed and insert it into the packet.
  4. Send the packet to the tddpd service on UDP port 1040.
  5. Observe that the tddpd process crashes due to memory corruption.

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 write-up has not been written yet. The Original tab links to the source.

This is a buffer overflow bug in a debugging protocol used by TP-Link routers. An attacker can send a specially crafted network packet that claims to be larger than the buffer can hold, which corrupts memory and crashes the service, causing 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.

More by Olivier Laflamme

View all

2 more disclosed reports, best first.

More from TP-Link

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.