CVE-2026-2871 Details
Description
A weakness has been identified in Tenda A21 1.0.0.0. This affects the function fromSetIpMacBind of the file /goform/SetIpMacBind. This manipulation of the argument list causes stack-based buffer overflow. The attack is possible to be carried out remotely. The exploit has been made available to the public and could be used for attacks.
A stack-based buffer overflow vulnerability has been identified in the Tenda A21 router, specifically in the firmware version 1.0.0.0. The issue arises in the IP-MAC binding configuration endpoint '/goform/SetIpMacBind', within the 'fromSetIpMacBind' function. This function processes the 'list' parameter, which contains binding rules. The vulnerability occurs because the function does not validate the length of the input string before copying it into a fixed-size stack buffer of 128 bytes, using the unsafe 'strcpy' function. Additionally, the parsed data is passed to 'set_device_name', which includes further unsafe 'sprintf' calls, creating multiple points of stack corruption. This vulnerability can be exploited remotely, and a public exploit is available.
To address this vulnerability, it is recommended to use bounds-checked functions, such as 'strncpy', to prevent buffer overflows. Input validation should be implemented to ensure that the 'list' parameter conforms to the expected IP/MAC format and does not exceed the maximum length. Additionally, downstream functions that currently use 'sprintf' should be updated to use 'snprintf' instead.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/QIU-DIE/cve-nneeww/issues/2 | [email protected] | ExploitIssue TrackingMitigationThird Party Advisory |
| https://vuldb.com/?ctiid.347108 | [email protected] | Permissions RequiredVDB Entry |
| https://vuldb.com/?id.347108 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/?submit.754630 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/?submit.754631 | [email protected] | Third Party AdvisoryVDB Entry |
| https://www.tenda.com.cn/ | [email protected] | Product |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer | [email protected] |
| CWE-121 | Stack-based Buffer Overflow | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| tenda a21 firmware | 1.0.0.0 |
CPE
Remediation
| |
| tenda a21 | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 23, 2026 | Initial Analysis | [email protected] |
| Feb 21, 2026 | New CVE Received | [email protected] |