Automated Threat Modeling

Brief Summary: Tenda AC6 CVE-2026-138354 Stack-Based Buffer Overflow in GetValue (libCfm.so)

A brief summary of CVE-2026-138354, a CWE-121 stack-based buffer overflow in the GetValue function of Tenda AC6 firmware V15.03.05.19, including PoC details and detection guidance.

CVE Analysis

11 min read

Gaurav Sarraf
Gaurav Sarraf

2026-11-29

Brief Summary: Tenda AC6 CVE-2026-138354 Stack-Based Buffer Overflow in GetValue (libCfm.so)

Introduction

A publicly disclosed memory corruption flaw in the Tenda AC6 router crashes the web management service through an oversized configuration value, taking the admin interface offline. Because the vulnerable /bin/httpd process runs as root, the researcher who found it assesses privileged code execution as possible, though the reviewed evidence demonstrates only denial of service.

Tenda is a networking vendor founded in 1999 that supplies home and business routers, switches, broadband CPE, gateways, powerline adapters, mobile broadband equipment, and IP cameras. The company says it distributes products to more than 100 countries and describes itself as a leading networking equipment supplier, though that leadership claim is its own, and no independent market share figure appears in the reviewed sources. The AC6 is a consumer dual-band wireless router, and the hardware revision in scope here, AC6 V1.0, is labeled end of life on Tenda's support page.

Technical Information

The vulnerability lives in GetValue() inside the shared library libCfm.so, which the /bin/httpd configuration management service uses on Tenda AC6 hardware V1.0 running firmware V15.03.05.19 (image US_AC6V1.0BR_V15.03.05.19_multi_TD01). The formal weakness mappings are CWE-119 (improper restriction of operations within a memory buffer) and CWE-121 (stack-based buffer overflow). The researcher additionally classifies the underlying write as CWE-787.

Root cause

GetValue(key, out_buf) talks to the cfm configuration daemon over the UNIX domain socket /var/cfm_socket, using a fixed 2016-byte message protocol. After it receives the daemon's response, it copies the value field, located at message offset 516, into the caller-supplied stack buffer using an unbounded strcpy() at offset 0x3c78. The value field can be up to 1495 bytes (2016 minus 516 minus 5), while callers commonly supply stack buffers of only 256 to 512 bytes.

The PoC summarizes the logic of GetValue as follows:

GetValue(key, out_buf):
  1. connect("/var/cfm_socket")        ; UNIX domain socket
  2. msg[0] = 2 (GET)                   ; request type
  3. strcpy(msg+4, key)                 ; key into 512B slot (safe)
  4. SendMsg(fd, msg, 2016)             ; send request
  5. RecvMsg(fd, msg, 2016)             ; receive response
  6. strcpy(out_buf, msg+516)           ; *** NO LENGTH LIMIT *** (0x3c78)

The companion SetValue() at 0x3c9c permits stored values of up to 1499 bytes (the check is cmp r2, #1499), far exceeding the GetValue callers' stack buffers. That is the key asymmetry: a value is stored with one length limit and read back with none.

Static analysis in the PoC reports 1131 GetValue() call sites across more than 100 goform handlers, including formWifiBasicSet, formSetCfm, fromSetWirelessRepeat, fromWizardHandle, and fromWanPolicy. The function is broadly reused, but that is not proof that every caller is remotely exploitable.

Attack flow

The described exploitation chain has four stages:

  1. An attacker sends an HTTP POST to a /goform/ handler with an oversized parameter value.
  2. The handler calls SetValue(key, user_input), storing up to 1499 bytes in the configuration store.
  3. The same handler or a later request retrieves the value through GetValue(key, stack_buf).
  4. The unbounded strcpy overflows the caller's stack frame, overwriting saved registers and the return address, resulting in denial of service or potential code execution.

Because the bad value is stored first and read later, the crash may not occur on the same request that delivered it. The PoC estimates roughly 864 bytes are needed to reach the saved LR for a controlled return-address overwrite.

The researcher notes this is the same GetValue root cause as CVE-2023-30370, previously documented only for the Tenda AC15 and now extended to the AC6. The same unbounded-copy pattern also affects GetUrlValue() at offset 0x4820.

Severity and access requirements

Severity scoring varies by source and provider, and these labels should be preserved. The public CVE record reports 9.9 Critical under both CVSS 3.1 and CVSS 3.0, 9.4 Critical under CVSS 4.0, and 9.0 under CVSS 2.0. NVD separately displays a VulDB-supplied CVSS 4.0 CVSS-BT score of 8.6, High, which is not an independent NIST assessment. The researcher's advisory proposes a CVSS 3.1 score of 9.8.

The CVE record's CVSS 3.1 vector is CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H/E:P/RL:X/RC:C, describing network access, low attack complexity, low privileges, no user interaction, and high confidentiality, integrity, and availability impacts. The researcher instead proposes PR:N (no privileges) and S:U (unchanged scope). The authentication requirement remains disputed because the emulated test does not demonstrate the complete HTTP exploitation chain.

Proof of Concept

A public proof of concept exists as a GitHub Gist authored by the researcher (Zekun Xie, GitHub user aaaakkun, created 2026-11-02). VulDB (the assigning CNA) and OffSeq Radar independently rate exploit maturity as public proof of concept. The evidence supports a verified denial of service crash, with RCE described as possible but not demonstrated.

The reproduction environment extracts the firmware with binwalk -Me (squashfs-root, ARM32 EABI5, soft-float, uClibc) and emulates it with qemu-arm-static plus chroot, an LD_PRELOAD nvram shim, and a fake cfm service bound to /var/cfm_socket that returns 1495 bytes of the character 'A' for any GetValue request.

The trigger is:

POC_OVERFLOW=1495 POC_CHAR=A python3 fake_cfm.py var/cfm_socket & chroot . /usr/bin/qemu-arm-static \ -E LD_PRELOAD=/nvram_shim2.so \ -E LD_LIBRARY_PATH=/lib:/usr/lib \ /bin/httpd

During initialization, httpd calls GetValue("ali.reset.cfg", stack_buf), and the overflowing strcpy produces a SIGSEGV. The captured crash under gdb-multiarch is:

Program received signal SIGSEGV, Segmentation fault.
0x3fdc6514 in strcpy () from libc.so.0

Backtrace:
#0  0x3fdc6514 in strcpy ()     from libc.so.0
#1  0x3ffacc7c in GetValue ()   from libCfm.so
#2  0x0002e29c in ?? ()         from httpd

Registers:
r0  = 0x40800ca0   (destination stack buffer)
r1  = 0x40800771   (source, cfm response data, 1495 bytes of 'A')
r2  = 0x41         (byte being copied = 'A')
r3  = 0x40801000   (write pointer, triggered SIGSEGV)
si_addr  = 0x40801000  (stack guard page hit)

A qemu -strace trace confirms the socket, connect, write(2016), and read(2016) sequence immediately preceding the SIGSEGV. The author notes that QEMU HTTP-POST parsing limitations meant SetValue was invoked via a gdb call in the lab rather than through a real HTTP POST, so the full HTTP POST to SetValue to GetValue to overflow chain is expected to be exploitable on real hardware but is not demonstrated end to end. Static analysis confirms the handler code contains the SetValue calls, with 62 in formWifiBasicSet alone.

Detection Methods

We found no public, ready-to-use signature for CVE-2026-138354. There is no Snort, Suricata, Sigma, or YARA rule and no Nuclei template, and no confirmed IP, domain, or hash indicators. OffSeq's Threat Radar notes that no public Nuclei template is indexed for this CVE. The CVE record links a VulDB CTI page, but it is tagged permissions-required and returns a login wall, so its contents could not be verified.

Correcting an upstream claim. One upstream system claimed exploitation uses an HTTP GET to /goform/GetValue with a Value parameter. The disclosure does not support that. GetValue() is an internal library function in libCfm.so, not a web endpoint. The researcher describes an HTTP POST to normal /goform/ handlers (for example formSetCfm and formWifiBasicSet) carrying an oversized parameter value. Rules keyed on /goform/GetValue will probably miss real attempts.

Network and WAF detection: unusually long goform values. No published rule exists, but the write-up gives concrete limits for a custom one. Scope the inspection to HTTP POST requests to /goform/* on the AC6 management interface, prioritizing the handlers the researcher named: formWifiBasicSet (62 SetValue calls), formSetCfm, fromSetWirelessRepeat (80), fromWizardHandle (121), and fromWanPolicy (54). These are firmware function names that must be mapped to the goform paths your firmware's httpd registers. For thresholds, genuine router settings such as SSIDs, IPs, MACs, and time zones are short, so any single parameter value longer than about 256 bytes is suspicious, since that is the low end of the target buffer sizes. Values from the hundreds of bytes up to 1499 deserve close attention, as the researcher estimates about 864 bytes to reach the saved return address and SetValue rejects anything over 1499. On payload shape, the PoC fills the buffer with a single repeated byte ('A', 0x41), so long runs of one character are a cheap, high-signal check, though real exploits will swap the filler for ARM addresses and shellcode. For context, since CVSS lists Privileges Required as Low, expect these requests to arrive with a valid, possibly stolen or default, admin session; a login followed immediately by oversized goform POSTs is worth an alert.

Host and availability detection: httpd crashes. The researcher confirmed denial of service: httpd, which runs as root, crashes and the web management interface goes down. The simplest health signal is the admin interface going unresponsive, or httpd restarting, shortly after a goform POST. If crash data can be collected from lab units, emulation, or devices with serial or syslog access, the published gdb capture is a clear fingerprint: a SIGSEGV inside libc strcpy called from GetValue in libCfm.so.

Program received signal SIGSEGV, Segmentation fault.
0x3fdc6514 in strcpy () from libc.so.0
#0  0x3fdc6514 in strcpy ()     from libc.so.0
#1  0x3ffacc7c in GetValue ()   from libCfm.so

The same capture reports si_code = 1 (SEGV_MAPERR) and the note Backtrace stopped: previous frame identical to this frame (corrupt stack?), typical of a smashed stack. The addresses come from the QEMU environment and will differ on real hardware, so match on the function chain (strcpy, then GetValue, then httpd), not raw addresses. In the qemu strace output, the crash comes right after a 2016-byte write and read exchange on the UNIX socket, giving emulation and sandbox analysts a syscall-level marker.

Watch for repeated crashes after reboot. In the PoC, httpd calls GetValue("ali.reset.cfg", ...) while starting up, and an oversized stored value crashed it before it handled any request. Since the payload sits in the configuration store, a device that has been sent a malicious value may crash httpd every time it boots or restarts. This is an inference from the PoC, not something the researcher reports directly. If a device's web UI keeps failing to come up after reboots, suspect a stored overflow value and review the configuration for abnormally long entries.

Find exposed devices. For asset inventory and vulnerability scanning, flag Tenda AC6 hardware V1.0 running firmware V15.03.05.19 (the researcher's image is US_AC6V1.0BR_V15.03.05.19_multi_TD01). The researcher calls this the latest firmware available, and it is unpatched.

Expected noise: goform handlers rarely receive large values from legitimate admin activity, so length-based alerts should stay quiet on normal traffic. Firmware-upload and backup-restore paths are the obvious exception and may need excluding.

Affected Systems and Versions

The CVE and NVD records identify Tenda AC6 15.03.05.19, the Configuration Management component, /bin/httpd, and GetValue() in libCfm.so. The researcher's advisory narrows the tested image to US_AC6V1.0BR_V15.03.05.19_multi_TD01 on AC6 V1.0 hardware. The formal records do not establish that every AC6 revision or firmware release is affected.

Note that Tenda AC6 V2.0 firmware V15.03.06.52 is a different hardware revision associated with a separate issue (CVE-2026-11405) and is not confirmed to fix this V1.0 overflow.

Vendor Security History

Tenda's record contains both documented exploitation and later corrective releases for discontinued hardware. 360 Netlab reported observing Tenda router vulnerabilities used to spread the Ttint remote access Trojan beginning in November 2019, associating the earlier exploitation with CVE-2020-10987 and describing a second vulnerability being exploited in August 2020. SecurityWeek independently reported the same historical campaign. Ttint combined DDoS activity with remote access functions including proxying, DNS modification, and system command execution. Netlab also stated it notified Tenda about the second flaw on August 28, 2020, without receiving a response by the report's publication. CISA's KEV catalog separately lists CVE-2020-10987 for the Tenda AC1900 AC15, establishing historical exploitation of a different Tenda vulnerability, not exploitation of CVE-2026-138354.

As a counterexample to a blanket claim that Tenda never patches discontinued products, Tenda's security statement dated July 13, 2026 addresses CVE-2026-11405 across named discontinued products including AC6 V2.0, replacing a prior permission mechanism with a single user login model. That vulnerability's affected revision, mechanism, and fixed firmware differ from the present V1.0 overflow. For CVE-2026-138354, the researcher records vendor notification on November 2, 2026, but the reviewed disclosure does not document a vendor response or released correction.

References

Detect & fix
what others miss

Works with
  • GitHub
  • GitLab
  • Bitbucket
  • Azure DevOps Services
  • Gerrit
  • CVS
  • Jira
  • Linear
  • Slack
  • Security Compass
Explore integrations
Security magnifying glass visualization