Important CVSS 7.8 EPSS 0.65417 🔬 Patch diffed 2023-01 archive

Executive Summary

None

Overview

7.8
CVSS HIGH
Important
MS Severity
Not Exploited
MS Exploit Status
More Likely
MS Exploit Likelihood
Category Elevation of Privilege
Released Jan 10 2023
Last Updated Jan 10 2023
Publicly Disclosed No
CISA KEV Not Listed
Known Exploits None Known
EPSS Score 0.65417 — 0.99192 percentile
NVD CVSS 7.8 HIGH — matches MSRC

CVSS Vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C
ATTACK VECTOR
Local
ATTACK COMPLEXITY
Low
PRIVILEGES REQUIRED
Low
USER INTERACTION
None
SCOPE
Unchanged
CONFIDENTIALITY
High
INTEGRITY
High
AVAILABILITY
High
EXPLOIT CODE MATURITY
Unproven
REMEDIATION LEVEL
Official Fix
REPORT CONFIDENCE
Confirmed
Temporal Score: 6.8

EPSS Score

0.65417
probability of exploitation in the next 30 days
0.99192 percentile - updated 2026-08-14
View on FIRST.org

Affected Products

6 affected products
Product KB Article Severity Impact Restart Required
Windows 11 version 21H2 for ARM64-based Systems 5022287 (Security Update) Important Elevation of Privilege Yes
Windows 11 version 21H2 for x64-based Systems 5022287 (Security Update) Important Elevation of Privilege Yes
Windows 11 Version 22H2 for ARM64-based Systems 5022303 (Security Update) Important Elevation of Privilege Yes
Windows 11 Version 22H2 for x64-based Systems 5022303 (Security Update) Important Elevation of Privilege Yes
Windows Server 2022 5022291 (Security Update) Important Elevation of Privilege Yes
Windows Server 2022 (Server Core installation) 5022291 (Security Update) Important Elevation of Privilege Yes

Patches

3 patches
Article Type Restart
5022287 Security Update Yes
5022303 Security Update Yes
5022291 Security Update Yes

Patch Diff

ghidriff · afd.sys (KB5022303)

Patch diff 10.0.22621.608 -> 10.0.22621.1105 (single-function fix: AfdNotifyRemoveIoCompletion PreviousMode check)

Pre-patch version 10.0.22621.608
Post-patch version 10.0.22621.1105
Function Address Change Note
NTOSKRNL.EXE::ProbeForWrite EXTERNAL:00000041 refcount similarity 1.0
AfdNotifyRemoveIoCompletion 1c006f92c code, length similarity 1.0
View full diff report View RCA report Download PoC

Attack Path

Local EoP to SYSTEM via an arbitrary kernel write in AfdNotifySock - PreviousMode never checked on the output pointer

Attack path for CVE-2023-21768 Local EoP to SYSTEM via an arbitrary kernel write in AfdNotifySock - PreviousMode never checked on the output pointer 01 — ENTRY Attacker opens a socket and issues the AFD notify IOCTL DeviceIoControl(hSocket, IOCTL_AFD_NOTIFY_SOCK 0x12127). Winsock is reachable by any unprivileged user; afd.sys is always loaded. 02 — CONTROLLED INPUT Supplies a 0x30-byte AFD_NOTIFYSOCK_STRUCT with a kernel address at +0x18 AfdNotifySock validates InputBufferLength == 0x30 and resolves the completion handle, but field_0x18 is copied through as an output pointer under attacker control. 03 — PATH AfdNotifyRemoveIoCompletion runs and produces a value to write back ProbeForWrite is applied to pStruct->pData2 for dwLen * 0x20 bytes, then IoRemoveCompletion -> KeRemoveQueueEx returns a completion count. 04 — MISSING CHECK The completion count is written through field_0x18 with no PreviousMode check ProbeForWrite guards pData2 but never field_0x18, and the write happens regardless of whether the request came from user or kernel mode. The patch adds the missing PreviousMode validation. 05 — PRIMITIVE Arbitrary kernel-address write of a controlled small integer *pStruct->field_0x18 = writeValue lands anywhere in kernel space. Aiming it at a token privilege field or a page-table entry escalates to SYSTEM.

Derived from the patch delta: the checks added by the vendor identify which fields crossed a trust boundary unvalidated. Reachability and privilege are taken from the call chain in the RCA report.

Known Exploits

Acknowledgments

None