Skip to content
Memory corruption Advisory Advanced CVE-2022-26009

TCL LinkHub Mesh Wi-Fi confsrv ucloud_set_node_location stack-based buffer overflow vulnerability

A stack-based buffer overflow exists in the confsrv ucloud_set_node_location function of TCL LinkHub Mesh Wi-Fi. An attacker on the same Wi-Fi network can send a crafted protobuf packet with an overly long serialNum field to overflow a stack buffer and potentially execute arbitrary code.

Carl Hurd Follow

Originally disclosed on Cisco Talos

High 8.8 View original

A stack-based buffer overflow vulnerability exists in the confsrv ucloudsetnodelocation functionality of TCL LinkHub Mesh Wi-Fi MS1G0001.0014. A specially-crafted network packet can lead to stack-based buffer overflow.

Carl Hurd, 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 function uses sprintf to copy the serialNum field from a protobuf message into a fixed-size stack buffer without any length validation.

Impact

An attacker on the same Wi-Fi network could crash the device or potentially execute arbitrary code with the privileges of the confsrv process.

What the attacker needed

Access to the device's Wi-Fi network

How it was found

  1. Connect to the Wi-Fi network provided by the LinkHub Mesh device.
  2. Send a crafted protobuf message of type NodeLocation to port 9003 with an overly long serialNum field.
  3. The message is routed to the confsrv handler ucloud_set_node_location, which copies serialNum into a stack buffer using sprintf, causing a buffer overflow.

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 is a memory corruption bug in a Wi-Fi router's firmware. The router receives a message over the local network and copies a user-supplied string into a fixed-size memory area without checking its length, so a long string spills over and can crash or take control of the device. An attacker who can connect to the router's Wi-Fi can exploit this.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Carl Hurd

View all

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

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.