Security Vulnerability Report
中文
CVE-2025-58311 CVSS 5.8 MEDIUM

CVE-2025-58311

Published: 2025-11-28 04:16:01
Last Modified: 2025-12-02 02:37:17

Description

UAF vulnerability in the USB driver module. Impact: Successful exploitation of this vulnerability will affect availability and confidentiality.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:o:huawei:emui:14.0.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:huawei:emui:14.2.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:huawei:emui:15.0.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:huawei:harmonyos:4.0.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:huawei:harmonyos:4.2.0:*:*:*:*:*:*:* - VULNERABLE
华为设备(具体型号待官方公告确认)
运行存在漏洞USB驱动模块的所有华为产品

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-58311 PoC - USB Driver UAF Trigger // This PoC demonstrates the UAF vulnerability in USB driver module // Note: This is for educational and testing purposes only #include <windows.h> #include <stdio.h> #include <usb.h> // Simulated vulnerable USB driver structure typedef struct { PVOID pDeviceContext; DWORD dwDeviceState; PVOID pNextDescriptor; } USB_DEVICE_CONTEXT, *PUSB_DEVICE_CONTEXT; // Vulnerable function - UAF occurs when accessing freed memory void TriggerUAF(PUSB_DEVICE_CONTEXT pContext) { // Free the device context if (pContext->pDeviceContext) { LocalFree(pContext->pDeviceContext); pContext->pDeviceContext = NULL; // Should be set, but may not be } // Later access to freed memory - UAF vulnerability // Attacker can control the reallocated memory if (pContext->pNextDescriptor != NULL) { // Accessing potentially freed memory memcpy(pContext->pNextDescriptor, attacker_data, data_size); } } int main() { printf("CVE-2025-58311 USB Driver UAF PoC\n"); printf("Target: Huawei devices with vulnerable USB driver\n"); // Initialize USB device context PUSB_DEVICE_CONTEXT pContext = (PUSB_DEVICE_CONTEXT) LocalAlloc(LPTR, sizeof(USB_DEVICE_CONTEXT)); pContext->pDeviceContext = LocalAlloc(LPTR, 0x1000); pContext->dwDeviceState = DEVICE_STATE_CONNECTED; // Trigger device disconnect sequence printf("Simulating USB device disconnect...\n"); TriggerUAF(pContext); printf("UAF vulnerability triggered\n"); printf("Impact: Availability and Confidentiality compromise\n"); return 0; } // Metasploit module reference: // modules/exploits/windows/local/huawei_usb_uaf_cve_2025_58311.rb

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-58311", "sourceIdentifier": "[email protected]", "published": "2025-11-28T04:16:00.807", "lastModified": "2025-12-02T02:37:17.267", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "UAF vulnerability in the USB driver module.\nImpact: Successful exploitation of this vulnerability will affect availability and confidentiality."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:H", "baseScore": 5.8, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "HIGH", "privilegesRequired": "HIGH", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 0.6, "impactScore": 4.7}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H", "baseScore": 7.1, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.2}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-416"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:huawei:emui:14.0.0:*:*:*:*:*:*:*", "matchCriteriaId": "32FBF39A-164F-4F98-AB49-28C50A430C36"}, {"vulnerable": true, "criteria": "cpe:2.3:o:huawei:emui:14.2.0:*:*:*:*:*:*:*", "matchCriteriaId": "4AA76C33-8D23-490B-B620-C24EDCC86A56"}, {"vulnerable": true, "criteria": "cpe:2.3:o:huawei:emui:15.0.0:*:*:*:*:*:*:*", "matchCriteriaId": "888C5BD7-421B-4A85-8719-BFEE3C215527"}, {"vulnerable": true, "criteria": "cpe:2.3:o:huawei:harmonyos:4.0.0:*:*:*:*:*:*:*", "matchCriteriaId": "8198CDB2-4BC5-411A-8736-615A531FC545"}, {"vulnerable": true, "criteria": "cpe:2.3:o:huawei:harmonyos:4.2.0:*:*:*:*:*:*:*", "matchCriteriaId": "2401DE15-9DBF-4645-A261-8C24D57C6342"}, {"vulnerable": true, "criteria": "cpe:2.3:o:huawei:harmonyos:4.3.0:*:*:*:*:*:*:*", "matchCriteriaId": "082BBC06-A0B2-481E-BF6F-56180E17ABEF"}, {"vulnerable": true, "criteria": "cpe:2.3:o:huawei:harmonyos:4.3.1:*:*:*:*:*:*:*", "matchCriteriaId": "6EA69843-EC8D-42E2-900E-017D2B502E9E"}, {"vulnerable": true, "criteria": "cpe:2.3:o:huawei:harmonyos:5.0.1:*:*:*:*:*:*:*", "matchCriteriaId": "738D803A-C4CE-477B-BC89-CE47351C0A84"}, {"vulnerable": true, "criteria": "cpe:2.3:o:huawei:harmonyos:5.1.0:*:*:*:*:*:*:*", "matchCriteriaId": "E39DE6A6-CBE6-4086-93CD-113D1B3BA730"}]}]}], "references": [{"url": "https://consumer.huawei.com/en/support/bulletin/2025/11/", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}