Skip to content
CVE-2026-136548 IBM QRadar · QRadar

Detect Tenda RX3 /bin/auto_discover GBK-to-UTF-8 Stack Buffer Overflow (CVE-2026-136548) in IBM QRadar

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.

Based on Zeyfrost tenda-rx3-vulns: dhcp_gbk_overflow

MITRE ATT&CK

Tactic
Initial Access Impact

QRadar Detection Query

IBM QRadar (QRadar)
sql
-- df00tech DF00-09240c1556 · https://df00tech.com/detections/CVE-2026-136548 · licence: https://df00tech.com/detections/licence
SELECT QIDNAME(qid) AS event, sourceip, destinationip, "Hostname" AS host_field, payload FROM events WHERE (UTF8(payload) ILIKE '%auto_discover%' OR UTF8(payload) ILIKE '%DHCPDISCOVER%' OR UTF8(payload) ILIKE '%DHCPREQUEST%' OR UTF8(payload) ILIKE '%GBK%') AND (LENGTH("Hostname") > 63 OR UTF8(payload) MATCHES '.*[\x80-\xff]{8,}.*') ORDER BY starttime DESC LAST 24 HOURS
critical severity medium confidence

AQL query returning router DHCP events whose hostname field exceeds 63 bytes or payload contains long high-byte runs, indicating an auto_discover GBK overflow attempt.

Data Sources

SyslogDHCP Server LogsNetwork Device Logs

Required Tables

events

False Positives & Tuning

  • Legitimate CJK hostnames in GBK-encoded networks
  • Authorized vulnerability scanning of DHCP services
  • Malformed DHCP clients on legacy hardware

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.

  1. 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.

  2. 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.

  3. Test 3 Crash/reboot correlation marker

    Expected signal: A syslog event containing auto_discover, GBK and watchdog/reboot keywords is ingested.


Response Playbook

Triage

  1. 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.
  2. 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.
  3. 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.
  4. Identify the client MAC/IP that sent the crafted DHCP message and determine whether it is a known/authorized device.

Containment

  1. Isolate the suspect client from the LAN (port shutdown or MAC filtering) to stop further crafted DHCP requests to the router.
  2. 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

  1. Capture a full packet trace of the DHCP exchange (DISCOVER/REQUEST with the oversized option) from the affected segment for offline analysis.
  2. 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.

Hunting — KQL
kql
// 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
Hunting — SPL
spl
``` 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

Test 1 Oversized DHCP hostname option (length overflow probe)
linux

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

bash
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

bash
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.

Test 2 High-byte (GBK) DHCP hostname payload
linux

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

bash
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

bash
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).

Test 3 Crash/reboot correlation marker
linux

Writes a synthetic router syslog line simulating an auto_discover crash following a crafted DHCP request to validate the correlation hunt.

Command

bash
logger -n 127.0.0.1 -P 514 -d -t auto_discover 'auto_discover: GBK convert overflow detected, watchdog reboot imminent'

Cleanup

bash
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.

Related Detections