Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privileged local access
-
DeliveryRun crafted WinSock socket sequence
-
ExploitTrigger use-after-free in afd.sys
-
ExecutionReclaim freed kernel object
-
PersistCorrupt kernel memory / token
-
ImpactExecute as SYSTEM
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to already have local, authenticated access to the target host with at least low privileges (CVSS PR:L) and the ability to execute code that makes WinSock/socket syscalls into afd.sys - i.e., this is a post-access privilege-escalation primitive, not remotely reachable. No user interaction is required (UI:N) and no special non-default configuration is needed, since afd.sys is present and active in all supported Windows installations by default. The principal limiting factors are the local attack vector (an attacker must first obtain a foothold on the machine) and the need for the low-privilege authenticated context; there is no network-facing exposure. |
| Impact | The CVSS 3.1 score of 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) reflects local access with low privileges but total impact on confidentiality, integrity, and availability - consistent with SSVC 'Technical Impact: total.' However, the real-world urgency signals are moderate rather than severe: SSVC rates Exploitation as 'none' and Automatable as 'no,' EPSS is low at 0.31% (23rd percentile), and there is no CISA KEV listing or public POC. This is a classic reliable-but-not-yet-exploited local EoP: it requires an attacker to already have code execution on the host, so it is a chaining/post-compromise primitive rather than an initial-access or wormable threat. It should be patched on the normal-to-priority cycle given afd.sys's history of being weaponized once details emerge, but it is not an emergency drop-everything issue today. No signal conflicts are present - the local vector aligns with the description's 'elevate privileges locally.' |
| Exploit ScenarioDerived | An attacker who already has a low-privileged foothold on a Windows host - for example through a phished user account or a compromised service - runs a crafted program that issues a specific sequence of WinSock socket operations to trigger the use-after-free in afd.sys, reclaims the freed kernel object with attacker-controlled data, and elevates to SYSTEM. From there they disable defenses, harvest credentials, and move laterally. No public exploit code is identified at time of analysis, but afd.sys UAF bugs are historically turned into reliable exploits. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 22, 2026
Local privilege escalation in the Windows Ancillary Function Driver for WinSock (afd.sys) allows an authenticated low-privileged attacker to gain SYSTEM-level control by triggering a use-after-free condition in the kernel networking driver. The flaw affects a broad range of Windows client and server releases from Windows 10 1607 through Windows 11 26H1 and Windows Server 2012 through Server 2025. Reported by Microsoft with a vendor patch available; no public exploit identified at time of analysis, and EPSS exploitation probability is low (0.31%).
RemediationAI
Apply the Microsoft security update for CVE-2026-50312 via the MSRC Update Guide (https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-50312); patch to at least the fixed builds for your edition - for example Windows 11 24H2 10.0.26100.8875, Windows 10 22H2 10.0.19045.7548, Windows Server 2022 10.0.20348.5386, Server 2025 10.0.26100.33158, Server 2019 10.0.17763.9020, Server 2016/10.0.14393.9339, Server 2012 6.2.9200.26226, and Server 2012 R2 6.3.9600.23291. Vendor-released patch is available and is the definitive fix. Because afd.sys is a core kernel component with no configuration toggle, there is no clean disable-the-feature workaround; the practical compensating controls are to enforce least privilege so untrusted users cannot run arbitrary code locally, apply application allowlisting to block unknown binaries, and enable attack-surface-reduction and EDR kernel-exploit detections to catch UAF exploitation attempts. These controls reduce but do not eliminate risk and should be treated as interim measures until patching is complete.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 32 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
The Ancillary Function Driver (AFD.sys) is the kernel-mode driver that underpins the Windows Sockets (WinSock) API, mediating user-mode socket calls into the transport stack. It is a long-standing, high-value privilege-escalation target because it is reachable from unprivileged user code yet executes in kernel context. The root cause is CWE-416 (Use After Free): the driver continues to reference a kernel object after it has been freed, allowing a crafted sequence of socket operations to reclaim and manipulate the stale allocation. Controlling the freed object's memory lets an attacker corrupt kernel structures and redirect execution or falsify security tokens.
Know when Windows Server 2012 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
Local post-access EoP requiring a low-privilege authenticated context (AV:L/PR:L), no user interaction, reliable UAF trigger (AC:L), yielding full SYSTEM control (C/I/A:H).
Primary rating from Vendor (microsoft).
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
Use after free in Windows Ancillary Function Driver for WinSock allows an authorized attacker to elevate privileges locally.
Executive ViewAI
Any authenticated local user can exploit CVE-2026-50312 in Windows to gain SYSTEM-level control, creating an insider risk vector across your entire Windows 10, 11, and Windows Server estate (2012-2025). While no active exploitation has been observed and vendor patches are available, the broad exposure and high severity rating necessitate immediate asset discovery and phased remediation to prevent privilege escalation and lateral movement.
Apply vendor patch.
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
Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
More in Windows Server 2012
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
Remote code execution in Microsoft Office 2007-2016 and Windows Vista through 10 allows attackers to execute arbitrary c
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
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
Active Directory Domain Services Elevation of Privilege Vulnerability. Rated high severity (CVSS 7.5), this vulnerabilit
EUVD-2026-43888
GHSA-wq5v-h429-2627
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB