Security Vulnerability Report
中文
CVE-2025-20740 CVSS 4.7 MEDIUM

CVE-2025-20740

Published: 2025-11-04 07:15:44
Last Modified: 2025-11-05 17:12:31

Description

In wlan STA driver, there is a possible out of bounds read due to a race condition. This could lead to local information disclosure with User execution privileges needed. User interaction is not needed for exploitation. Patch ID: WCNCR00435337; Issue ID: MSV-4036.

CVSS Details

CVSS Score
4.7
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

Configurations (Affected Products)

cpe:2.3:a:mediatek:software_development_kit:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:mediatek:mt7902:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt7920:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt7921:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt7922:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt7925:-:*:*:*:*:*:*:* - NOT VULNERABLE
MediaTek WLAN STA Driver < 补丁版本 WCNCR00435337

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-20740 PoC - MediaTek WLAN STA Driver Race Condition // This PoC demonstrates the concept of triggering a race condition // Note: Actual exploitation requires specific timing and kernel access #include <stdio.h> #include <pthread.h> #include <unistd.h> #define ITERATIONS 10000 volatile int shared_counter = 0; volatile int trigger_flag = 0; void* writer_thread(void* arg) { for (int i = 0; i < ITERATIONS; i++) { // Simulate wlan STA driver buffer write operation shared_counter = 1; trigger_flag = 1; // Small window for race condition __asm__ __volatile__("" ::: "memory"); shared_counter = 0; trigger_flag = 0; } return NULL; } void* reader_thread(void* arg) { int local_value; for (int i = 0; i < ITERATIONS; i++) { // Simulate potential out-of-bounds read scenario if (trigger_flag) { local_value = shared_counter; // In real vulnerability, this could read beyond buffer if (local_value != 1 && local_value != 0) { printf("Potential OOB read detected: %d\n", local_value); } } } return NULL; } int main() { pthread_t t1, t2; printf("CVE-2025-20740 PoC - MediaTek WLAN STA Race Condition\n"); printf("Simulating race condition in driver buffer access\n"); pthread_create(&t1, NULL, writer_thread, NULL); pthread_create(&t2, NULL, reader_thread, NULL); pthread_join(t1, NULL); pthread_join(t2, NULL); printf("PoC completed. Check for anomalous reads.\n"); return 0; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-20740", "sourceIdentifier": "[email protected]", "published": "2025-11-04T07:15:44.140", "lastModified": "2025-11-05T17:12:30.767", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "In wlan STA driver, there is a possible out of bounds read due to a race condition. This could lead to local information disclosure with User execution privileges needed. User interaction is not needed for exploitation. Patch ID: WCNCR00435337; Issue ID: MSV-4036."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N", "baseScore": 4.7, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.0, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-367"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:mediatek:software_development_kit:*:*:*:*:*:*:*:*", "versionEndIncluding": "3.7", "matchCriteriaId": "9DABBC56-5969-45B0-A810-1AD5225866BD"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt7902:-:*:*:*:*:*:*:*", "matchCriteriaId": "91DEA745-47A8-43F1-A1B2-F53F651A99EF"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt7920:-:*:*:*:*:*:*:*", "matchCriteriaId": "140DAC08-96E9-47D3-BC2E-65E999DCFD50"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt7921:-:*:*:*:*:*:*:*", "matchCriteriaId": "32AFEA0A-FFE2-4EA9-8B51-7E3E75DE65CC"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt7922:-:*:*:*:*:*:*:*", "matchCriteriaId": "EA2A6813-7138-441E-A9E4-FF62FCBD797A"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt7925:-:*:*:*:*:*:*:*", "matchCriteriaId": "27CFC9DF-2F4C-469A-8A19-A260B1134CFE"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt7927:-:*:*:*:*:*:*:*", "matchCriteriaId": "05525018-AFE0-415C-A71C-A77922C7D637"}]}]}], "references": [{"url": "https://corp.mediatek.com/product-security-bulletin/November-2025", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}