Detect Tenda RX3 /bin/auto_discover GBK-to-UTF-8 Stack Buffer Overflow (CVE-2026-136548) in Google Chronicle
Detects exploitation attempts against a stack-based buffer overflow (CWE-121/CWE-119) in Tenda RX3 router firmware 16.03.13.11. The flaw is in /bin/auto_discover, the DHCP server component that converts GBK-encoded text to UTF-8. The conversion function writes up to 3 output bytes per 2-byte GBK input character into a fixed 256-byte stack buffer with no bounds check. An attacker on the local network can send a DHCP DISCOVER packet with an oversized GBK-encoded Option 12 hostname to overflow the buffer and overwrite the return address, causing a crash or remote code execution. NVD rates this CVSS 9.3 and states a public exploit is available. Because embedded routers rarely forward rich process telemetry, these detections focus on observable network and syslog signals: anomalous DHCP requests with oversized or high-byte (GBK) hostname/option fields, device crash or reboot indicators from the router's remote syslog, and post-exploitation outbound connections or new listeners from the router's management IP.
MITRE ATT&CK
- Tactic
- Initial Access Impact
YARA-L Detection Query
// df00tech DF00-09240c1556 · https://df00tech.com/detections/CVE-2026-136548 · licence: https://df00tech.com/detections/licence
rule tenda_rx3_auto_discover_gbk_overflow {
meta:
author = "Argus Detection Platform"
description = "Detects oversized/high-byte DHCP hostname indicative of CVE-2026-136548 Tenda RX3 auto_discover GBK overflow"
severity = "CRITICAL"
events:
$e.metadata.event_type = "NETWORK_DHCP" or $e.metadata.product_event_type = /dhcp|auto_discover/
(
re.regex($e.network.dhcp.chaddr, ".*") and
strings.length($e.network.dhcp.client_hostname) > 63
) or
$e.metadata.description = /[\x80-\xff]{8,}/
condition:
$e
} Chronicle YARA-L rule matching DHCP events whose client hostname exceeds 63 bytes or whose message carries long high-byte GBK runs targeting the auto_discover conversion routine.
Data Sources
Required Tables
False Positives & Tuning
- Legitimate non-ASCII hostnames in GBK/CJK networks
- Authorized DHCP fuzzing/pentests
- Buggy DHCP clients emitting over-length hostnames
Other platforms for CVE-2026-136548
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.
- Test 1 Oversized DHCP hostname option (length overflow probe)
Expected signal: DHCP server/router syslog records a request with a hostname field >63 bytes from the test MAC.
- Test 2 High-byte (GBK) DHCP hostname payload
Expected signal: Router/DHCP log captures a hostname field with a long high-byte sequence from the test MAC.
- Test 3 Crash/reboot correlation marker
Expected signal: A syslog event containing auto_discover, GBK and watchdog/reboot keywords is ingested.
Response Playbook
Triage
- Confirm the source device is a Tenda RX3 on firmware 16.03.13.11 (or near-version) and that the alerting hostname/DHCP option originated on the LAN segment serving the router.
- Extract the offending hostname/option value and measure its byte length and high-byte content; a value >63 bytes or with long GBK runs is a strong indicator of a crafted auto_discover payload.
- Check whether the router emitted a crash, watchdog, or reboot syslog event within a few minutes of the anomalous DHCP request, which indicates the overflow was triggered.
- Identify the client MAC/IP that sent the crafted DHCP message and determine whether it is a known/authorized device.
Containment
- Isolate the suspect client from the LAN (port shutdown or MAC filtering) to stop further crafted DHCP requests to the router.
- Place the affected Tenda RX3 behind an upstream firewall and restrict/disable its LAN DHCP exposure until patched or replaced, since no vendor fix may yet be available.
Evidence Collection
- Capture a full packet trace of the DHCP exchange (DISCOVER/REQUEST with the oversized option) from the affected segment for offline analysis.
- Export the router's remote syslog around the event, including any crash/reboot and auto_discover-related messages, and preserve DHCP lease logs listing the client MAC.
Escalation Criteria
- !Escalate to incident response if the router rebooted, became unreachable, or began making unexpected outbound connections after the anomalous DHCP request.
- !Escalate to network/vendor management if multiple routers or repeated attempts are observed, or if the crafted client cannot be attributed to authorized activity.
Investigation Guide
Forensic Artifacts
- >
Router remote syslog entries referencing auto_discover, GBK conversion, or process crash/watchdog resets - >
DHCP lease/server logs recording the oversized or high-byte client hostname and the client MAC address - >
Packet captures of the crafted DHCP DISCOVER/REQUEST on the LAN segment
Tuning Guidance
In networks that legitimately use GBK/CJK client hostnames, raise the high-byte run threshold and prioritize the length>63 condition combined with proximity to router crash events to cut false positives. Scope the rules to syslog/DHCP sources associated with Tenda devices where possible. NVD reports a public exploit for this CVE, so treat alerts that pair an oversized DHCP option with a subsequent device reboot as high confidence.
Hunting Queries
Hunts for router crash/reboot indicators co-occurring with auto_discover or high-byte GBK content, revealing successful overflow attempts that may not trip the length-based alert alone.
// df00tech DF00-09240c1556 · https://df00tech.com/detections/CVE-2026-136548 · licence: https://df00tech.com/detections/licence
Syslog | where SyslogMessage has_any ("auto_discover","watchdog","reboot","segfault") | where SyslogMessage has "GBK" or SyslogMessage matches regex @"[\x80-\xff]{8,}" | project TimeGenerated, Computer, HostIP, SyslogMessage ``` df00tech DF00-09240c1556 · https://df00tech.com/detections/CVE-2026-136548 · licence: https://df00tech.com/detections/licence ```
index=network (auto_discover OR watchdog OR reboot OR segfault) | regex _raw="[\x80-\xff]{8,}" | table _time host src_ip _raw Atomic Red Team Tests
Sends a DHCP request with a hostname option far exceeding the 63-byte limit to exercise the auto_discover length handling in a lab.
Command
python3 -c "from scapy.all import *; sendp(Ether(dst='ff:ff:ff:ff:ff:ff')/IP(src='0.0.0.0',dst='255.255.255.255')/UDP(sport=68,dport=67)/BOOTP(chaddr=b'\\x11\\x22\\x33\\x44\\x55\\x66')/DHCP(options=[('message-type','request'),('hostname','A'*300),'end']), iface='eth0')" Cleanup
echo 'No persistent artifact; release lab lease: dhclient -r eth0 || true' Expected Telemetry
DHCP server/router syslog records a request with a hostname field >63 bytes from the test MAC.
Expected Detection
KQL/SPL length-based rules fire on HostLen>63 for the crafted request.
Sends a DHCP request whose hostname option is a long run of high-byte (GBK-range) characters to simulate the charset-conversion overflow trigger.
Command
python3 -c "from scapy.all import *; sendp(Ether(dst='ff:ff:ff:ff:ff:ff')/IP(src='0.0.0.0',dst='255.255.255.255')/UDP(sport=68,dport=67)/BOOTP(chaddr=b'\\xaa\\xbb\\xcc\\xdd\\xee\\xff')/DHCP(options=[('message-type','request'),('hostname',b'\\xd6\\xd0'*80),'end']), iface='eth0')" Cleanup
dhclient -r eth0 || true Expected Telemetry
Router/DHCP log captures a hostname field with a long high-byte sequence from the test MAC.
Expected Detection
High-byte regex branch of the detections fires (highbyte=1).
Writes a synthetic router syslog line simulating an auto_discover crash following a crafted DHCP request to validate the correlation hunt.
Command
logger -n 127.0.0.1 -P 514 -d -t auto_discover 'auto_discover: GBK convert overflow detected, watchdog reboot imminent' Cleanup
echo 'Synthetic syslog only; no cleanup required' Expected Telemetry
A syslog event containing auto_discover, GBK and watchdog/reboot keywords is ingested.
Expected Detection
The crash-correlation hunting query matches the event.