Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain low-priv local shell
-
DeliveryOpen AFD.sys device handle via Winsock
-
ExploitIssue crafted IOCTL sequence
-
InstallTrigger use-after-free in kernel pool
-
C2Reclaim freed object with controlled data
-
ExecuteOverwrite token or kernel pointer
-
ImpactExecute payload as SYSTEM
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Attacker must already have local code execution on the target Windows host with at least low-privilege user rights (CVSS PR:L) - this is not remotely exploitable and cannot be triggered by an unauthenticated network attacker. No user interaction is required (UI:N) and attack complexity is low (AC:L), so once the attacker is on the box, exploitation is reliable against default Windows installations that ship AFD.sys (i.e., all supported Windows versions). The limiting factor is the local-access prerequisite, meaning this CVE is a post-compromise escalation primitive rather than an initial-access vulnerability. |
| Impact | The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) confirms this requires local access with low privileges and no user interaction, yielding high impact across CIA - classic LPE characteristics. EPSS data was not provided in the input, and the CVE is not listed in CISA KEV, so there is no confirmed evidence of active exploitation. However, AFD.sys vulnerabilities have a strong track record of being chained into post-exploitation toolchains (e.g., used after initial phishing or browser RCE), and the low attack complexity combined with kernel-level impact makes this a meaningful patch priority for any Windows endpoint fleet. The Microsoft-internal reporter and absence of public POC suggests targeted-research rather than widespread exploitation at this time. |
| Exploit ScenarioDerived | An attacker who has already obtained a low-privileged foothold on a Windows host - for example via phishing, a compromised browser, or stolen user credentials - invokes a crafted sequence of Winsock IOCTLs that triggers the use-after-free in AFD.sys. By reclaiming the freed kernel object with attacker-controlled data, they corrupt a kernel pointer or token field and elevate to NT AUTHORITY\SYSTEM. No public exploit is identified at time of analysis, but AFD.sys LPE primitives are routinely incorporated into post-compromise toolkits. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 09, 2026
Local privilege escalation in the Windows Ancillary Function Driver (AFD.sys) for WinSock allows an authenticated low-privileged user to gain SYSTEM-level access through a use-after-free condition. The flaw was reported by Microsoft (MSRC) and carries a CVSS 7.8 score with high impact across confidentiality, integrity, and availability. No public exploit identified at time of analysis, though the AFD.sys driver has a long history of similar bugs being weaponized post-disclosure.
RemediationAI
Apply the Microsoft security update referenced in the MSRC advisory at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-45638 as soon as it is available for your Windows build; exact patch KB numbers should be retrieved from that advisory since they were not included in the provided data. As a compensating control until patching, restrict local interactive and remote-shell access to Windows hosts to trusted administrators only, since exploitation requires local code execution context - this is a meaningful mitigation on servers but largely impractical on user workstations. Application allowlisting (Windows Defender Application Control / AppLocker) can block unsigned exploit binaries from running, with the trade-off of operational overhead for software changes; AFD.sys itself cannot be safely disabled because Winsock depends on it.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 33 packages in microsoft, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
AFD.sys is the kernel-mode Ancillary Function Driver that backs the user-mode Winsock (ws2_32.dll) API on Windows, brokering socket operations between applications and the TCP/IP stack. The root cause is CWE-122 (heap-based buffer overflow), though the description specifies a use-after-free - indicating that AFD.sys frees a heap-allocated object but retains or reuses a stale pointer, allowing controlled memory corruption in the kernel pool. AFD.sys is reachable from any user-mode process via standard Winsock calls, making it a high-value attack surface that has been repeatedly targeted (e.g., CVE-2023-21768, CVE-2024-38193) for local privilege escalation.
Know when Windows 10 1607 gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (microsoft).
CVSS VectorVendor: microsoft
Lifecycle Timeline
2DescriptionCVE.org
Use after free in Windows Ancillary Function Driver for WinSock allows an authorized attacker to elevate privileges locally.
Executive ViewAI
Windows AFD.sys vulnerability CVE-2026-45638 allows local users with existing account credentials to escalate to system administrator privileges, creating material risk across all Windows deployments with local user access. With no patch currently available and given AFD.sys's track record of post-disclosure exploitation, the window to implement compensating controls is narrow. Organizations must immediately restrict local logon permissions to prevent internal users or compromised accounts from escalating to system access.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict local interactive logon via Group Policy-apply 'Deny log on locally' for standard user accounts, limiting local access to administrators only; (2) Disable Winsock AFD functionality if operationally unnecessary for your environment; (3) Enforce strong credential hygiene and multi-factor authentication to reduce account compromise risk; (4) Deploy endpoint detection and response (EDR) monitoring for privilege escalation attempts (Windows Event ID 4672); (5) Implement workstation segmentation to isolate systems with high-privilege requirements; (6) Enable Windows Exploit Guard for process hardening.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Related Vulnerabilities in Windows AFD WinSock Use-After-Free Privilege Escalation
View all 5More in Windows 10 1607
View allWindows MSHTML component contains a remote code execution vulnerability that allows attackers to craft malicious ActiveX
<p>A remote code execution vulnerability exists when the Windows Print Spooler service improperly performs privileged fi
Windows MSDT (Microsoft Support Diagnostic Tool) allows remote code execution when called via the ms-msdt URL protocol f
The SMBv1 server in Microsoft Windows Vista SP2; Windows Server 2008 SP2 and R2 SP1; Windows 7 SP1; Windows 8.1; Windows
The Windows VBScript engine contains a remote code execution vulnerability in object handling that allows full system co
Windows Print Spooler Remote Code Execution Vulnerability. Rated high severity (CVSS 7.8), this vulnerability is no auth
The Win32k kernel-mode driver in Windows Vista through Windows Server 2016 allows local privilege escalation, exploited
Windows Search Remote Code Execution Vulnerability. Rated high severity (CVSS 7.5), this vulnerability is remotely explo
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Windows Kernel contains a TOCTOU race condition vulnerability allowing local privilege escalation, exploited by the OilR
An elevation of privilege vulnerability exists in Windows when the Win32k component fails to properly handle objects in
An elevation of privilege vulnerability exists in Windows when the Win32k component fails to properly handle objects in
EUVD-2026-35564
GHSA-cqjv-c8hw-93x7
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB