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
    • 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-2023-21768

CVE-2023-21768: Windows 11 Privilege Escalation Flaw

CVE-2023-21768 is a privilege escalation vulnerability in the Windows 11 Ancillary Function Driver for WinSock that allows attackers to gain elevated system privileges. This article covers technical details, impact, and patches.

Published: January 28, 2026

CVE-2023-21768 Overview

CVE-2023-21768 is an elevation of privilege vulnerability affecting the Windows Ancillary Function Driver for WinSock (AFD.sys). This kernel-mode driver is a critical component responsible for providing network socket functionality to Windows applications. When successfully exploited, this vulnerability allows a local attacker with limited privileges to escalate to SYSTEM-level access, potentially gaining complete control over the affected system.

Critical Impact

Local attackers can leverage this vulnerability to escalate privileges to SYSTEM level, enabling complete system compromise, persistence mechanisms, and lateral movement within enterprise environments.

Affected Products

  • Microsoft Windows 11 21H2 (x64 and ARM64)
  • Microsoft Windows 11 22H2 (x64 and ARM64)
  • Microsoft Windows Server 2022

Discovery Timeline

  • 2023-01-10 - CVE-2023-21768 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-21768

Vulnerability Analysis

This vulnerability resides in the Windows Ancillary Function Driver for WinSock (AFD.sys), a kernel-mode driver that acts as the interface between user-mode Winsock applications and the underlying TCP/IP stack. The vulnerability is classified under CWE-822 (Untrusted Pointer Dereference), indicating that the driver improperly handles pointer operations from user-controlled input.

The Ancillary Function Driver serves as a critical intermediary for all Windows network socket operations. When applications make socket-related system calls, AFD.sys processes these requests in kernel mode. The vulnerability arises from insufficient validation of user-supplied data before dereferencing pointers, allowing an attacker to manipulate memory operations within the kernel context.

Successful exploitation grants the attacker SYSTEM-level privileges, the highest privilege level on Windows systems. This enables complete system compromise including the ability to install persistent backdoors, access all user data, modify security configurations, and pivot to other systems on the network.

Root Cause

The root cause stems from an untrusted pointer dereference vulnerability (CWE-822) within the AFD.sys driver. The driver fails to properly validate pointer values received from user-mode applications before dereferencing them in kernel context. This allows a local attacker to craft malicious input that causes the driver to read from or write to arbitrary kernel memory locations, ultimately enabling privilege escalation.

Attack Vector

The attack requires local access to the target system with low-privilege user credentials. The attacker must execute a specially crafted application that interacts with the AFD.sys driver through legitimate Windows API calls. By manipulating the data passed to the driver, the attacker can trigger the pointer dereference vulnerability.

The exploitation process typically involves:

  1. Creating a malicious application that opens a socket connection
  2. Crafting specific IOCTL requests to the AFD driver with manipulated pointer values
  3. Triggering the vulnerable code path that dereferences the attacker-controlled pointer
  4. Leveraging the resulting memory corruption to gain kernel code execution or modify security tokens
  5. Achieving SYSTEM-level privileges on the compromised system

Technical details and exploitation mechanics are documented in the Microsoft Security Update Guide for CVE-2023-21768.

Detection Methods for CVE-2023-21768

Indicators of Compromise

  • Unusual processes running with SYSTEM privileges that originated from low-privilege user contexts
  • Suspicious IOCTL requests targeting AFD.sys with malformed or unusual parameters
  • Unexpected kernel memory access patterns or crash dumps related to AFD.sys
  • Process token modifications indicating privilege escalation events

Detection Strategies

  • Monitor for suspicious process creation events where child processes have elevated privileges compared to parent processes
  • Implement kernel-level monitoring to detect anomalous AFD.sys driver interactions
  • Deploy endpoint detection and response (EDR) solutions capable of identifying exploitation attempts targeting Windows kernel drivers
  • Analyze Windows Security Event Logs for Event ID 4688 (Process Creation) with privilege escalation patterns

Monitoring Recommendations

  • Enable Windows Defender Exploit Guard and Attack Surface Reduction (ASR) rules for kernel-level exploit protection
  • Configure advanced audit policies to capture detailed process creation and privilege use events
  • Implement SentinelOne's Singularity platform for real-time behavioral detection of kernel exploitation attempts
  • Establish baseline behavior for network-related system calls and alert on deviations

How to Mitigate CVE-2023-21768

Immediate Actions Required

  • Apply Microsoft's January 2023 security updates immediately on all affected Windows 11 and Windows Server 2022 systems
  • Prioritize patching for internet-facing systems and those accessible to untrusted users
  • Implement network segmentation to limit lateral movement potential if exploitation occurs
  • Review and restrict local user access to minimize the attack surface

Patch Information

Microsoft addressed this vulnerability in the January 2023 Patch Tuesday security updates. Administrators should apply the appropriate cumulative update for their Windows version through Windows Update, Windows Server Update Services (WSUS), or the Microsoft Update Catalog. Detailed patch information and download links are available in the Microsoft Security Update Guide for CVE-2023-21768.

Workarounds

  • Restrict local access to systems by enforcing strict user account policies and removing unnecessary local administrator rights
  • Implement application control policies to prevent unauthorized executables from running
  • Deploy network-level controls to limit access to critical systems running vulnerable Windows versions
  • Consider isolating unpatched systems until updates can be applied
bash
# Verify Windows update status via PowerShell
Get-HotFix | Sort-Object -Property InstalledOn -Descending | Select-Object -First 10

# Check AFD.sys driver version to confirm patch status
Get-ItemProperty "C:\Windows\System32\drivers\afd.sys" | Select-Object VersionInfo

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechWindows

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability75.52%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-822

  • NVD-CWE-noinfo
  • Technical References
  • Microsoft Security Update Guide CVE-2023-21768
  • Related CVEs
  • CVE-2026-23672: Windows UDFS Privilege Escalation Flaw

  • CVE-2026-25178: Windows WinSock Driver Privilege Escalation

  • CVE-2026-24283: Windows File Server Privilege Escalation

  • CVE-2026-24294: Windows SMB Server Privilege Escalation
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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