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

TCL LinkHub Mesh Wifi confsrv set_port_fwd_rule stack-based buffer overflow vulnerability

A stack-based buffer overflow exists in the set_port_fwd_rule function of TCL LinkHub Mesh Wifi, where user-supplied ipAddr and name fields from a protobuf packet are copied into a fixed-size stack buffer using sprintf without bounds checking. An attacker on the same WiFi network can send a crafted packet to port 9003 to trigger the overflow, potentially leading to code execution.

Carl Hurd Follow

Originally disclosed on Cisco Talos

High 8.8 View original

A stack-based buffer overflow vulnerability exists in the confsrv setportfwdrule functionality of TCL LinkHub Mesh Wifi 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

Impact

An attacker on the same WiFi network could crash the device or potentially execute arbitrary code with high confidentiality, integrity, and availability impact.

What the attacker needed

Access to the LinkHub Mesh WiFi network; ability to send packets to port 9003

How it was found

  1. Connect to the WiFi network provided by the LinkHub Mesh.
  2. Send a crafted protobuf message to port 9003 containing a PortFwdList with a rule that has an overly long ipadr or name field.
  3. The message is routed to the confsrv handler, which unpacks it and calls set_port_fwd_rule.
  4. The function formats the rule data 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 WiFi router's firmware. The router receives a message over the local network and copies part of it into a small fixed-size memory area without checking length, so a long value spills over and crashes the program. An attacker on the same WiFi could exploit this to run their own code on the router.

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.