Tp-Link AX53 v1.0 tmpServer opcode 0x442 out-of-bounds write vulnerability
The tmpServer service on the TP-Link Archer AX53 router has an out-of-bounds write when handling a crafted TLV structure in opcode 0x442 packets. An attacker able to reach the service could write past a fixed-size buffer and potentially execute arbitrary code.
Originally disclosed on Cisco Talos
An out-of-bounds write vulnerability exists in the tmpServer opcode 0x442 functionality of Tp-Link AX53 v1.0 1.3.1 Build 20241120 rel.54901(5553). A specially crafted network packets can lead to arbitrary code execution.
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
Likely a loop that copies variable-length TLV values into a fixed 0x8000 buffer at an index that grows with each entry, without checking the total against the buffer size.
Impact
An attacker with access to the service could corrupt memory and potentially execute arbitrary code, though the service is only reachable via the vendor's cloud tunnel after authentication.
What the attacker needed
Authenticated HomeShield cloud access; reach localhost port 20002 via tunnel
How it was found
- Connect to the tmpServer service through the cloud SSH port forward on localhost port 20002.
- Send an ASSOCIATION request packet to move the session status to 2.
- Send an ASSOCIATION accept packet to move the session status to 3.
- Send a DATA HELLO packet with opcode 5 to reach the data handling path.
- Send a DATA packet whose payload contains a TLV of type 0x403 with nested entries of type 0x448 to trigger the out-of-bounds write.
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 router runs a small background service that accepts network messages. When it reads a specially shaped message, it writes data past the end of a fixed-size memory area, which can corrupt other memory and let an attacker run their own code. The service is only reachable through the vendor's cloud app tunnel, not directly from the internet.
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.