The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-21241

CVE-2026-21241: Windows 11 23h2 Privilege Escalation Flaw

CVE-2026-21241 is a use-after-free privilege escalation vulnerability in Windows 11 23h2 Ancillary Function Driver for WinSock that enables local attackers to elevate privileges. This article covers technical details, affected versions, impact, and mitigation strategies.

Updated: May 16, 2026

CVE-2026-21241 Overview

CVE-2026-21241 is a use-after-free vulnerability in the Windows Ancillary Function Driver for WinSock (afd.sys). The flaw allows an authenticated local attacker to elevate privileges to SYSTEM on affected Windows 11 and Windows Server systems. The driver mishandles object lifetimes during WinSock operations, leaving freed memory references reachable from user mode. An attacker who successfully reclaims the freed allocation can corrupt kernel memory and gain arbitrary kernel-mode execution. Microsoft published the advisory through MSRC and assigned the issue to CWE-416. The exploit prediction score (EPSS) currently sits at 0.03% with a percentile of 8.778, and no public proof-of-concept code is available at this time.

Critical Impact

Successful exploitation grants kernel-level code execution, enabling full system compromise, credential theft, and persistent attacker control over the affected host.

Affected Products

  • Microsoft Windows 11 (versions 23H2, 24H2, 25H2) on x64 and ARM64
  • Microsoft Windows Server 2022 and Windows Server 2022 23H2
  • Microsoft Windows Server 2025

Discovery Timeline

  • 2026-02-10 - CVE-2026-21241 published to the National Vulnerability Database
  • 2026-02-11 - Last updated in NVD database

Technical Details for CVE-2026-21241

Vulnerability Analysis

The Ancillary Function Driver for WinSock (afd.sys) brokers user-mode WinSock requests into the Windows kernel networking stack. The driver allocates and tracks state objects tied to socket handles and asynchronous I/O requests. A use-after-free condition occurs when the driver releases one of these objects while another code path retains a reference. Subsequent operations dereference the dangling pointer, reading or writing memory that may have been reclaimed by attacker-controlled data. Local attackers leverage this primitive to corrupt kernel structures and pivot to SYSTEM-level execution. The vulnerability requires local authentication and exhibits high attack complexity, reflecting the timing precision needed to win the race and groom the kernel pool.

Root Cause

The root cause is improper object lifetime management within afd.sys [CWE-416]. The driver fails to synchronize reference counting or invalidate cached pointers when an associated socket or I/O context is torn down. This leaves a stale kernel pointer reachable through IOCTL handlers or completion routines.

Attack Vector

Exploitation requires local code execution as a standard authenticated user. The attacker issues a crafted sequence of WinSock IOCTLs against \Device\Afd to trigger the freed-object race, then sprays the kernel pool to reclaim the slot with controlled data. Dereferencing the dangling pointer yields kernel read/write primitives that escalate the process token to SYSTEM.

No verified public exploit code is available. See the Microsoft Security Update for CVE-2026-21241 for vendor-confirmed technical details.

Detection Methods for CVE-2026-21241

Indicators of Compromise

  • Unexpected token elevation events where a standard-user process gains SYSTEM privileges without an authorized service transition.
  • Kernel bugchecks or \Device\Afd-related crashes in afd.sys correlated with user-mode processes performing high-frequency WinSock IOCTLs.
  • New service installations, scheduled tasks, or LSASS access from processes that previously ran as non-privileged users.

Detection Strategies

  • Hunt for processes opening handles to \Device\Afd followed by rapid NtDeviceIoControlFile calls and abnormal thread priority or token changes.
  • Correlate Windows Event ID 4672 (special privileges assigned) with the parent process integrity level to surface unexpected SYSTEM escalations from medium-integrity processes.
  • Apply behavioral analytics to identify kernel pool grooming patterns, such as repeated allocations of identically sized objects from user mode.

Monitoring Recommendations

  • Forward Sysmon process creation, handle, and image-load telemetry to a centralized analytics platform for retroactive hunting.
  • Monitor WER and Minidump crash reports referencing afd! symbols across the fleet, since failed exploitation often produces kernel faults.
  • Track patch deployment status of the February 2026 cumulative updates across Windows 11 and Windows Server estates.

How to Mitigate CVE-2026-21241

Immediate Actions Required

  • Apply the Microsoft security update referenced in the MSRC advisory to all affected Windows 11 23H2/24H2/25H2 and Windows Server 2022/2025 systems.
  • Prioritize patching multi-user systems, jump hosts, RDP gateways, and developer workstations where local access is broadly available.
  • Restrict interactive and remote logon rights to reduce the population of users able to trigger local privilege escalation.

Patch Information

Microsoft addressed the use-after-free in afd.sys through the February 2026 security update. Patch metadata, KB numbers, and per-build replacement binaries are published in the Microsoft Security Update for CVE-2026-21241. Apply the cumulative update that matches each host's Windows build and reboot to complete kernel driver replacement.

Workarounds

  • No vendor-supplied workaround replaces the patch; deploy the security update as the primary remediation.
  • Enforce least-privilege execution and application allowlisting to limit which binaries can issue WinSock IOCTLs from untrusted user contexts.
  • Enable Hypervisor-Protected Code Integrity (HVCI) and Kernel Control Flow Guard where compatible to raise the cost of kernel exploitation.
bash
# Verify installed update on Windows hosts
wmic qfe list brief /format:table
Get-HotFix | Sort-Object -Property InstalledOn -Descending | Select-Object -First 10

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechMicrosoft Windows

  • SeverityHIGH

  • CVSS Score7.0

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Vendor Resources
  • Microsoft Security Update for CVE-2026-21241
  • Related CVEs
  • CVE-2021-31956: Windows 10 1507 Privilege Escalation Flaw

  • CVE-2025-68154: Systeminformation Library RCE Vulnerability

  • CVE-2025-4056: Gnome Glib DOS Vulnerability on Windows

  • CVE-2025-64298: Mirion Biodose/nmis Info Disclosure Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English