TOTOLINK T6 Buffer Overflow Vulnerability in MQTT Packet Handler

Vulnerability

A critical buffer overflow vulnerability has been identified in the TOTOLINK T6 router, specifically in the firmware version 4.1.5cu.748_B20211015. The issue arises in the MQTT Packet Handler component, within the function 'tcpcheck_net' of the file '/router/meshSlaveDlfw'. The vulnerability is caused by the 'serverIp' argument being manipulated, leading to a buffer overflow. This flaw can be exploited remotely, allowing an attacker to overwrite the saved return address and execute arbitrary code.

Impact

Exploitation of this vulnerability leads to a buffer overflow, allowing for remote code execution on the affected device.

Reproduction

To reproduce this vulnerability, send a malicious packet over MQTT to the 'totolink/router/meshSlaveDlfw' topic. The packet must be crafted to exploit the buffer overflow in the 'tcpcheck_net' function by overwriting the return address with a value that directs execution to a controlled location.

Added: Jul 25, 2025, 9:18 PM
Updated: Jul 25, 2025, 9:18 PM

Vulnerability Rating

Custom Algorithm
spread
2.6
impact
7.5
exploitability
9.1
remediation
7.7
relevance
0.3
threat
6.4
urgency
2.9
incentive
9.2

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.