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

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

A stack-based buffer overflow exists in the confsrv confctl_set_app_language function of TCL LinkHub Mesh Wi-Fi. An attacker on the same Wi-Fi network can send a crafted protobuffer packet to port 9003, causing a buffer overflow that may lead 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 confctlsetapplanguage 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 strcpy to copy the user-supplied lang string 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 high impact on confidentiality, integrity, and availability.

What the attacker needed

Access to the LinkHub Mesh 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.
  2. Send a crafted protobuffer message of type APPLang to port 9003 with an overly long lang field.
  3. The message is routed to the confsrv handler, which calls confctl_set_app_language.
  4. The lang value is copied with strcpy into a 256-byte stack buffer, 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 report describes a memory corruption bug in a Wi-Fi router. When the router receives a special network message, it copies the message's language field into a fixed-size memory area without checking the length, so a long value overflows that area and can crash the router or let an attacker run their own 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.