CVE-2022-34721 — Windows Internet Key Exchange (IKE) Protocol Extensions Remote Code Execution Vulnerability
Executive Summary
None
Overview
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C
EPSS Score
Affected Products
| Product | KB Article | Severity | Impact | Restart Required |
|---|---|---|---|---|
| Windows 10 for 32-bit Systems | 5017327 (Security Update) |
Critical | Remote Code Execution | Yes |
| Windows 10 for x64-based Systems | 5017327 (Security Update) |
Critical | Remote Code Execution | Yes |
| Windows 10 Version 1607 for 32-bit Systems | 5017305 (Security Update) |
Critical | Remote Code Execution | Yes |
| Windows 10 Version 1607 for x64-based Systems | 5017305 (Security Update) |
Critical | Remote Code Execution | Yes |
| Windows 10 Version 1809 for 32-bit Systems | 5017315 (Security Update) |
Critical | Remote Code Execution | Yes |
| Windows 10 Version 1809 for ARM64-based Systems | 5017315 (Security Update) |
Critical | Remote Code Execution | Yes |
| Windows 10 Version 1809 for x64-based Systems | 5017315 (Security Update) |
Critical | Remote Code Execution | Yes |
| Windows 10 Version 20H2 for 32-bit Systems | 5017308 (Security Update) |
Critical | Remote Code Execution | Yes |
| Windows 10 Version 20H2 for ARM64-based Systems | 5017308 (Security Update) |
Critical | Remote Code Execution | Yes |
| Windows 10 Version 21H1 for 32-bit Systems | 5017308 (Security Update) |
Critical | Remote Code Execution | Yes |
| Windows 10 Version 21H1 for ARM64-based Systems | 5017308 (Security Update) |
Critical | Remote Code Execution | Yes |
| Windows 10 Version 21H1 for x64-based Systems | 5017308 (Security Update) |
Critical | Remote Code Execution | Yes |
| Windows 10 Version 21H2 for 32-bit Systems | 5017308 (Security Update) |
Critical | Remote Code Execution | Yes |
| Windows 10 Version 21H2 for ARM64-based Systems | 5017308 (Security Update) |
Critical | Remote Code Execution | Yes |
| Windows 10 Version 21H2 for x64-based Systems | 5017308 (Security Update) |
Critical | Remote Code Execution | Yes |
| Windows 11 version 21H2 for ARM64-based Systems | 5017328 (Security Update) |
Critical | Remote Code Execution | Yes |
| Windows 11 version 21H2 for x64-based Systems | 5017328 (Security Update) |
Critical | Remote Code Execution | Yes |
| Windows 7 for 32-bit Systems Service Pack 1 5017361 (Monthly Rollup) 5017373 (Security Only) Critical Remote Code Execution 5016676 Base: 9.8 Temporal: 8.5 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C 6.1.7601.26115 Yes 5017361 5017373 Windows 7 for x64-based Systems Service Pack 1 5017361 (Monthly Rollup) 5017373 (Security Only) Critical Remote Code Execution 5016676 Base: 9.8 Temporal: 8.5 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C 6.1.7601.26115 Yes 5017361 5017373 Windows 8.1 for 32-bit systems 5017367 (Monthly Rollup) 5017365 (Security Only) Critical Remote Code Execution 5016681 Base: 9.8 Temporal: 8.5 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C 6.3.9600.20571 Yes 5017367 5017365 Windows 8.1 for x64-based systems 5017367 (Monthly Rollup) 5017365 (Security Only) Critical Remote Code Execution 5016681 Base: 9.8 Temporal: 8.5 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C 6.3.9600.20571 Yes 5017367 5017365 Windows RT 8.1 | 5017367 (Monthly Rollup) |
Critical | Remote Code Execution | Yes |
| Windows Server 2008 for 32-bit Systems Service Pack 2 5017358 (Monthly Rollup) 5017371 (Security Only) Critical Remote Code Execution 5016669 Base: 9.8 Temporal: 8.5 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C 6.0.6003.21666 Yes 5017358 5017371 Windows Server 2008 for 32-bit Systems Service Pack 2 (Server Core installation) 5017358 (Monthly Rollup) 5017371 (Security Only) Critical Remote Code Execution 5016669 Base: 9.8 Temporal: 8.5 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C 6.0.6003.21666 Yes 5017358 5017371 Windows Server 2008 for x64-based Systems Service Pack 2 5017358 (Monthly Rollup) 5017371 (Security Only) Critical Remote Code Execution 5016669 Base: 9.8 Temporal: 8.5 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C 6.0.6003.21666 Yes 5017358 5017371 Windows Server 2008 for x64-based Systems Service Pack 2 (Server Core installation) 5017358 (Monthly Rollup) 5017371 (Security Only) Critical Remote Code Execution 5016669 Base: 9.8 Temporal: 8.5 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C 6.0.6003.21666 Yes 5017358 5017371 Windows Server 2008 R2 for x64-based Systems Service Pack 1 5017361 (Monthly Rollup) 5017373 (Security Only) Critical Remote Code Execution 5016676 Base: 9.8 Temporal: 8.5 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C 6.1.7601.26115 Yes 5017361 5017373 Windows Server 2008 R2 for x64-based Systems Service Pack 1 (Server Core installation) 5017361 (Monthly Rollup) 5017373 (Security Only) Critical Remote Code Execution 5016676 Base: 9.8 Temporal: 8.5 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C 6.1.7601.26115 Yes 5017361 5017373 Windows Server 2012 5017370 (Monthly Rollup) 5017377 (Security Only) Critical Remote Code Execution 5016672 Base: 9.8 Temporal: 8.5 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C 6.2.9200.23865 Yes 5017370 5017377 Windows Server 2012 (Server Core installation) 5017370 (Monthly Rollup) 5017377 (Security Only) Critical Remote Code Execution 5016672 Base: 9.8 Temporal: 8.5 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C 6.2.9200.23865 Yes 5017370 5017377 Windows Server 2012 R2 5017367 (Monthly Rollup) 5017365 (Security Only) Critical Remote Code Execution 5016681 Base: 9.8 Temporal: 8.5 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C 6.3.9600.20571 Yes 5017367 5017365 Windows Server 2012 R2 (Server Core installation) 5017367 (Monthly Rollup) 5017365 (Security Only) Critical Remote Code Execution 5016681 Base: 9.8 Temporal: 8.5 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C 6.3.9600.20571 Yes 5017367 5017365 Windows Server 2016 | 5017305 (Security Update) |
Critical | Remote Code Execution | Yes |
| Windows Server 2016 (Server Core installation) | 5017305 (Security Update) |
Critical | Remote Code Execution | Yes |
| Windows Server 2019 | 5017315 (Security Update) |
Critical | Remote Code Execution | Yes |
| Windows Server 2019 (Server Core installation) | 5017315 (Security Update) |
Critical | Remote Code Execution | Yes |
Patches
| Article | Type | Restart |
|---|---|---|
5017327 |
Security Update | Yes |
5017305 |
Security Update | Yes |
5017315 |
Security Update | Yes |
5017308 |
Security Update | Yes |
5017328 |
Security Update | Yes |
5017367 |
Monthly Rollup | Yes |
Patch Diff
Heap out-of-bounds read in Windows IKEv2 extension (ikeext.dll). IkeQueueRecvRequest allocates a WFP memory buffer via WfpMemAlloc using an unchecked bufferSize derived from attacker-controlled IKEv2 fragment headers. During reassembly, the code copies merged fragment data and later accesses the buffer at offset [3], causing an out-of-bounds read. Reachable via UDP/500 IKEv2 fragmentation payload.
| Function | Address | Change | Note |
|---|---|---|---|
IkeQueueRecvRequest |
|
modified | Added bounds validation on bufferSize derived from IKEv2 fragment headers before WfpMemAlloc |
Root Cause Analysis
CVE-2022-34721 — Windows IKEv2 Extension ikeext.dll Heap Out-of-Bounds Read
Summary
| Product | Microsoft Windows — ikeext.dll (IKE and AuthIP IPsec Keying Modules) |
|---|---|
| Vendor | Microsoft Corporation |
| Severity | CVSS v3.1 8.1 (High) |
| CVE Title | Windows IKE Extension Remote Code Execution Vulnerability |
| CWE | CWE-125 (Out-of-bounds Read) |
| Affected Versions | Windows 10/11 and Server with IPsec/IKEv2 enabled |
| Impact | Remote — unauthenticated attacker sends crafted IKEv2 fragments → RCE/info-disclosure |
| Exploited ITW | No |
| Patch Date | September 2022 Patch Tuesday |
Root Cause
Windows IKEv2 extension (ikeext.dll) handles IKEv2 negotiation for IPsec VPNs.
When receiving fragmented IKEv2 payloads, the reassembly path in
IkeQueueRecvRequest allocates a buffer for merged fragment data:
// Simplified vulnerable path
bufferSize = /* derived from attacker-controlled fragment headers */;
pBuffer = WfpMemAlloc(bufferSize); // no max-size check
// ... copy merged fragment data ...
// Later: access pBuffer[3] without verifying bufferSize >= 4
The bufferSize is computed from attacker-controlled IKEv2 fragmentation
headers without upper-bound validation. After copying the merged fragments,
the code accesses pBuffer[3] (offset 3 into the buffer). If bufferSize is
less than 4, this causes a heap out-of-bounds read.
On systems with heap metadata protections, the OOB read may be limited to information disclosure. However, with precise heap grooming, it can lead to controlled memory corruption and remote code execution.
The patch (verified in ghidriff diff, 708 → 978)
The diff confirms multiple IKEv2 packet-processing functions changed:
-
IkeDecryptOakNDPacket(53% match) — major rewrite. AddedIkeVerifyIncomingDataSizecall before any buffer allocation or copy, validating the declared packet size against the actual incoming data length. Added ETW telemetry for invalid packets (s_Invalid_packet_format). -
IkeQueueRecvRequest(83% match) — modified to propagate the verified size down the reassembly path. -
IkeParseRecvAncillaryInfo(81% match) — streamlined. -
IkeVerifyPacketHeader(69% match) — added header sanity checks.
The fix centers on IkeVerifyIncomingDataSize: any fragmentation payload with
a size field larger than the actual UDP payload is rejected early, preventing
the undersized WfpMemAlloc.
Diff: ghidriff/CVE-2022-34721/output/ikeext-10.0.22000.708.dll-ikeext-10.0.22000.978.dll.ghidriff.md
Reaching the bug — network path
Fully remote, no authentication required:
Attacker (any IP)
│
▼
UDP/500 → target Windows host
│
▼
ikeext!IkeQueueRecvRequest
│ IKEv2 fragmentation payload with small/malformed fragment headers
▼
WfpMemAlloc(bufferSize) ← undersized allocation
│
▼
memcpy(merged_frag_data) ← may copy less than expected
│
▼
access pBuffer[3] ← OOB read if bufferSize < 4
| Element | Value |
|---|---|
| Protocol | UDP/500 (IKEv2) |
| Vulnerable function | ikeext!IkeQueueRecvRequest |
| Allocation | WfpMemAlloc (WFP heap) |
| Trigger | IKEv2 fragmentation payload with malformed size fields |
| Privileges | none (unauthenticated, remote) |
| Prerequisites | Windows host with IPsec/IKEv2 service running (default on many Server SKUs) |
Detection engineering
- Network IDS: Alert on IKEv2 fragmentation payloads with abnormally small
or inconsistent fragment sizes. Valid IKEv2 fragments should have coherent
Total Fragments×Fragment Size==Message Size. - Windows Event Log:
Microsoft-Windows-IKE/Operationalmay log IKEv2 negotiation failures; correlate with crash dumps if available. - Crash forensics: Access violation in
ikeext!IkeQueueRecvRequestwithrax/rcxpointing to heap memory just past an allocation boundary.
References
Attack Path
Heap out-of-bounds read from IKEv2 fragment reassembly with an unchecked buffer size
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.