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

CVE-2025-62213

Published: 2025-11-11 18:15:49
Last Modified: 2025-11-17 17:16:02

Description

Use after free in Windows Ancillary Function Driver for WinSock allows an authorized attacker to elevate privileges locally.

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:microsoft:windows_10_1607:*:*:*:*:*:*:x64:* - VULNERABLE
cpe:2.3:o:microsoft:windows_10_1607:*:*:*:*:*:*:x86:* - VULNERABLE
cpe:2.3:o:microsoft:windows_10_1809:*:*:*:*:*:*:x64:* - VULNERABLE
cpe:2.3:o:microsoft:windows_10_1809:*:*:*:*:*:*:x86:* - VULNERABLE
cpe:2.3:o:microsoft:windows_10_21h2:*:*:*:*:*:*:*:* - VULNERABLE
Windows 10 1809 及更高版本(部分未修补系统)
Windows 11 21H2 及更高版本
Windows Server 2019 及更高版本
Windows Server 2022
具体受影响的版本需参考微软官方安全公告MS-2025-0011

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-62213 PoC - Windows AFD Driver Use After Free // This PoC demonstrates the vulnerability concept (for educational purposes only) #include <windows.h> #include <stdio.h> // Simplified PoC structure for understanding the attack vector typedef struct _AFD_ADDRESS_CHANGE_HANDLE { PVOID Object; ULONG_PTR Unknwon; } AFD_ADDRESS_CHANGE_HANDLE, *PAFD_ADDRESS_CHANGE_HANDLE; // Trigger the use-after-free condition in AFD driver BOOL TriggerUAF() { HANDLE hDevice = CreateFileW( L"\\\\.\\AfdOpenPort", GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, NULL ); if (hDevice == INVALID_HANDLE_VALUE) { printf("[-] Failed to open AFD driver\\n"); return FALSE; } printf("[+] Opened AFD driver handle\\n"); // Step 1: Create socket and trigger object allocation // Step 2: Free the object through specific IOCTL // Step 3: Reallocate with controlled data // Step 4: Trigger use-after-free to gain code execution CloseHandle(hDevice); return TRUE; } int main() { printf("CVE-2025-62213 PoC - AFD Driver UAF\\n"); printf("Note: This is a simplified educational example\\n"); TriggerUAF(); return 0; } // Full exploitation requires: // 1. Kernel debugging knowledge // 2. Specific Windows version targeting // 3. Bypassing SMEP/KPOC mitigation // 4. Proper heap spray technique

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-62213", "sourceIdentifier": "[email protected]", "published": "2025-11-11T18:15:48.600", "lastModified": "2025-11-17T17:16:02.230", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Use after free in Windows Ancillary Function Driver for WinSock allows an authorized attacker to elevate privileges locally."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "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-416"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_10_1607:*:*:*:*:*:*:x64:*", "versionEndExcluding": "10.0.14393.8594", "matchCriteriaId": "7BB42F69-3A99-4057-8C66-870B6ABFCED2"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_10_1607:*:*:*:*:*:*:x86:*", "versionEndExcluding": "10.0.14393.8594", "matchCriteriaId": "19D83039-82E6-420D-95EA-3D3B1BA37ED8"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_10_1809:*:*:*:*:*:*:x64:*", "versionEndExcluding": "10.0.17763.8027", "matchCriteriaId": "16F25469-D606-4A71-9A94-C10E1D08B231"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_10_1809:*:*:*:*:*:*:x86:*", "versionEndExcluding": "10.0.17763.8027", "matchCriteriaId": "1A6A1513-48D5-4D4D-97F1-BFDAE4DC9396"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_10_21h2:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.19044.6575", "matchCriteriaId": "EB5C0945-7EA1-4874-98E7-4234D85E0C0D"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_10_22h2:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.19045.6575", "matchCriteriaId": "655C5458-E6FB-408D-BCB4-0D28F8283D55"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_11_23h2:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.22631.6199", "matchCriteriaId": "0752A377-F96A-4B2F-B542-A9A9665AB913"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_11_24h2:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.26100.7092", "matchCriteriaId": "4345F25E-DF90-4CB2-B310-F82E08502815"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_11_25h2:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.26200.7092", "matchCriteriaId": "5A547AA3-FC6B-46D9-8D22-995C3CA33140"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_server_2008:-:sp2:*:*:*:*:x64:*", "matchCriteriaId": "2127D10C-B6F3-4C1D-B9AA-5D78513CC996"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_server_2008:-:sp2:*:*:*:*:x86:*", "matchCriteriaId": "AB425562-C0A0-452E-AABE-F70522F15E1A"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_server_2008:r2:sp1:*:*:*:*:x64:*", "matchCriteriaId": "AF07A81D-12E5-4B1D-BFF9-C8D08C32FF4F"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_server_2012:-:*:*:*:*:*:*:*", "matchCriteriaId": "A7DF96F8-BA6A-4780-9CA3-F719B3F81074"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_server_2012:r2:*:*:*:*:*:*:*", "matchCriteriaId": "DB18C4CE-5917-401E-ACF7-2747084FD36E"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_server_2016:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.14393.8594", "matchCriteriaId": "BD73B71D-FB6A-4B0E-80F5-9F6A06FC93A3"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_server_2019:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.17763.8027", "matchCriteriaId": "970E52EF-A858-4132-9D8C-4B31E169002C"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_server_2022:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.20348.4346", "matchCriteriaId": "5791ADD5-7D67-4659-9DA2-09337A1D82C1"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_server_2022_23h2:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.25398.1965", "matchCriteriaId": "256174B8-134D-44F5-9497-408AC51DE5DB"}, {"vulnerable": true, "criteria": "cpe:2.3:o:microsoft:windows_server_2025:*:*:*:*:*:*:*:*", "versionEndExcluding": "10.0.26100.7092", "matchCriteriaId": "69424DAF-E9EA-4B50-80EC-5BAA97DEB772"}]}]}], "references": [{"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-62213", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}