A vulnerability exists in the Windows Ancillary Function Driver for Winsock (`afd.sys`) can be leveraged by an attacker to escalate privileges to those of NT AUTHORITY\SYSTEM. Due to a flaw in `AfdNotifyRemoveIoCompletion`, it is possible to create an arbitrary kernel Write-Where primitive, which can be used to manipulate internal I/O ring structures and achieve local privilege escalation. This exploit only supports Windows 11 22H2 up to build 22621.963 (patched in January 2023 updates).
Vulnerability
CVE-2023-21768
Windows Ancillary Function Driver for WinSock Elevation of Privilege Vulnerability
Vulnerability details
- Score
- 7.8
- Severity
- high
CVSS 3.1 · microsoft
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:CDescription
Windows Ancillary Function Driver for WinSock Elevation of Privilege Vulnerability
CVE ProgramExploit source choices
16 sourcesOSCP Cheat Sheet
Python Command-Line Ghidra Binary Diffing Engine
LPE exploit for CVE-2023-21768
使用 Github Actions 跟踪 Github 趋势项目。
Using CVE-2023-21768 to manual map kernel mode driver
Windows_AFD_LPE_CVE-2023-21768
C# / .NET version of CVE-2023-21768
zoemurmure/cve-2023-21768-afd-for-winsock-eop-exploit source repository
cvedb/awesome-cve-repo source repository
Red team reconnaissance and vulnerability-testing framework with Nuclei and Metasploit integration. For authorized engagements only.
h1bana/cve-2023-21768 source repository
cvedb/top source repository
Exploit implementation with IO Rings for CVE-2023-21768
recreating exp for cve-2023-21768.
5m4r7m4x/downdatewin source repository