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

TCL LinkHub Mesh Wi-Fi confsrv ucloud_set_node_location buffer overflow vulnerability

A buffer overflow exists in the confsrv ucloud_set_node_location function of TCL LinkHub Mesh Wi-Fi, where a strcpy copies the location field from a protobuf message into a fixed-size buffer without length validation. An attacker on the same Wi-Fi network can send a crafted packet to port 9003 to trigger the overflow, potentially leading to remote code execution.

Carl Hurd Follow

Originally disclosed on Cisco Talos

High 8.8 View original

A 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 a 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

Impact

The buffer overflow can corrupt statically allocated variables in the binary, which could lead to remote code execution.

What the attacker needed

Attacker on the same Wi-Fi network; ability to send packets to port 9003

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 location field.
  3. The message is routed to the confsrv handler ucloud_set_node_location, which copies the location into a fixed-size buffer using strcpy, 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.

A buffer overflow happens when a program copies more data into a fixed-size memory area than it can hold, causing the extra data to spill over and corrupt nearby memory. Here, the device receives a network message with a 'location' field and copies it without checking its length, so an attacker on the same Wi-Fi can send a very long value to crash the device or possibly run malicious code.

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.