| शीर्षक | Tenda HG9 V300001138 Stack-based Buffer Overflow |
|---|
| विवरण | During a security review of the Tenda HG9 router firmware (version V300001138), a critical stack-based buffer overflow vulnerability was identified in the Loopback Detection configuration endpoint /boaform/formLoopBack.
The vulnerability exists in the handling of the Ethtype parameter. When the apply parameter is present, the function eventually checks for the Ethtype parameter. It retrieves the user-supplied string and uses sprintf to format it as a hexadecimal string (prepending "0x") into a local stack buffer named v20.
The destination buffer v20 is declared with a tiny fixed size of 8 bytes. The code intends to parse a 2-byte hexadecimal Ethernet type (e.g., "0800"), which would result in a 6-byte string ("0x0800"). However, there is no validation of the input length. If an attacker provides an Ethtype string longer than 5 bytes, the sprintf function will write past the end of v20, overflowing the stack buffer and overwriting adjacent stack variables, including the saved return address. |
|---|
| स्रोत | ⚠️ https://github.com/QIU-DIE/cve-nneeww/issues/10 |
|---|
| उपयोगकर्ता | LINXI666 (UID 91556) |
|---|
| सबमिशन | 10/02/2026 08:30 AM (3 महीनों पहले) |
|---|
| संयम | 20/02/2026 09:15 PM (11 days later) |
|---|
| स्थिति | स्वीकृत |
|---|
| VulDB प्रविष्टि | 347217 [Tenda HG9 300001138 Loopback Detection Configuration Endpoint /boaform/formLoopBack Ethtype बफ़र ओवरफ़्लो] |
|---|
| अंक | 20 |
|---|