CVE-2026-21241
vulnerability analysis and mitigation

Overview

CVE-2026-21241 is a use-after-free (UAF) vulnerability in the Windows Ancillary Function Driver for WinSock (afd.sys) that allows a low-privileged local attacker to elevate privileges to SYSTEM level. It affects multiple Windows versions including Windows 11 (23H2, 24H2, 25H2, 26H1), Windows Server 2022, Windows Server 2022 23H2, and Windows Server 2025. Microsoft disclosed and patched the vulnerability on February 10, 2026, as part of the February 2026 Patch Tuesday security update cycle. It carries a CVSS v3.1 base score of 7.0 (High) (Microsoft MSRC, Feedly).

Technical details

The vulnerability is classified as CWE-416 (Use After Free) and resides in afd.sys, the Windows Ancillary Function Driver that underpins WinSock network operations. A use-after-free condition occurs when the driver accesses memory that has already been freed, allowing an attacker to manipulate freed memory to redirect execution flow and gain elevated privileges. Exploitation requires low privileges and no user interaction, but has high attack complexity (AC:H), meaning reliable exploitation may require specific timing or race condition conditions to be met. A public proof-of-concept exploit has been published by researcher _jle_k, with a detailed write-up and PoC code available (jle-k blog, GitHub PoC, rce4fun blog).

Impact

Successful exploitation allows a low-privileged local attacker to escalate privileges to SYSTEM, granting complete administrative control over the affected Windows system. This impacts confidentiality, integrity, and availability at a HIGH level, enabling an attacker to install malware, access all data, disable security controls, or pivot laterally within a network. Active exploitation in the wild has been reported, making this a significant risk for enterprise environments where attackers may already have limited local access (Microsoft MSRC, BleepingComputer).

Exploitation steps

  1. Gain Local Access: Obtain a low-privileged user account on a vulnerable Windows system (e.g., via phishing, credential theft, or exploitation of another vulnerability).
  2. Identify Target: Confirm the target is running a vulnerable Windows version (Windows 11 23H2/24H2/25H2/26H1, Windows Server 2022, or Windows Server 2025) without the February 2026 security updates applied.
  3. Prepare Exploit: Obtain or compile the public PoC exploit code (e.g., from GitHub or adapt the technique described in the jle-k blog).
  4. Trigger Use-After-Free: Execute the exploit locally to trigger the UAF condition in afd.sys by manipulating WinSock driver objects — freeing a memory object and then accessing it to corrupt kernel memory structures. This may require timing a race condition (high attack complexity).
  5. Elevate Privileges: Leverage the corrupted kernel memory to overwrite security tokens or function pointers, escalating the current process context to SYSTEM.
  6. Post-Exploitation: With SYSTEM privileges, deploy persistence mechanisms, disable endpoint defenses, exfiltrate data, or move laterally across the network (jle-k blog, rce4fun blog).

Indicators of compromise

  • Process: Unexpected processes running under SYSTEM context spawned from low-privileged user sessions; unusual child processes of svchost.exe or user-mode applications with elevated token privileges.
  • Logs: Windows Security Event Log entries showing privilege escalation (Event ID 4672 – Special privileges assigned to new logon) for accounts that should not have SYSTEM-level access; kernel crash dumps (BSOD) in %SystemRoot%\Minidump if exploitation attempts fail.
  • File System: Presence of exploit binaries or compiled C files (e.g., CVE-2026-21241.c or compiled variants) in user-writable directories such as %TEMP%, %APPDATA%, or C:\Users\<user>\Downloads.
  • Network: Outbound connections from SYSTEM-level processes to unusual external IPs or C2 infrastructure following a privilege escalation event.
  • Qualys Detection: Qualys vulnerability scanner detection IDs 92350 and 92351 can identify unpatched systems (Feedly).

Mitigation and workarounds

Microsoft released patches on February 10, 2026, as part of the February 2026 Patch Tuesday update. Administrators should update affected systems to the following minimum build versions: Windows 11 23H2 → 10.0.22631.6649, Windows 11 24H2 → 10.0.26100.7781, Windows 11 25H2 → 10.0.26200.7781, Windows Server 2022 → 10.0.20348.4711, Windows Server 2022 23H2 → 10.0.25398.2149, Windows Server 2025 → 10.0.26100.32313. Given active exploitation in the wild, patching should be treated as an urgent priority, particularly for internet-facing or multi-user systems. No official workaround short of patching has been published by Microsoft (Microsoft MSRC, Qualys Blog).

Community reactions

The vulnerability was highlighted by BleepingComputer as one of six actively exploited zero-days in the February 2026 Patch Tuesday, drawing significant community attention (BleepingComputer). Security researcher _jle_k published a detailed exploitation blog post and shared findings on social media (xcancel.com), while researcher yarden_shafir also commented on the vulnerability (jle-k blog). Sophos, Rapid7, Qualys, and SOCRadar all covered the vulnerability in their February 2026 Patch Tuesday reviews, with Rapid7 and Qualys emphasizing the active exploitation risk (Rapid7 Blog, Qualys Blog). The SANS Internet Storm Center also noted the vulnerability in its diary entry for the patch cycle (SANS ISC).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management