CVE-2022-21967 — Xbox Live Auth Manager for Windows Elevation of Privilege Vulnerability
Executive Summary
None
Overview
CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:L/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 | 5011491 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 10 for x64-based Systems | 5011491 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 10 Version 1607 for 32-bit Systems | 5011495 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 10 Version 1607 for x64-based Systems | 5011495 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 10 Version 1809 for 32-bit Systems | 5011503 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 10 Version 1809 for ARM64-based Systems | 5011503 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 10 Version 1809 for x64-based Systems | 5011503 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 10 Version 1909 for 32-bit Systems | 5011485 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 10 Version 1909 for ARM64-based Systems | 5011485 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 10 Version 1909 for x64-based Systems | 5011485 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 10 Version 20H2 for 32-bit Systems | 5011487 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 10 Version 20H2 for ARM64-based Systems | 5011487 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 10 Version 20H2 for x64-based Systems | 5011487 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 10 Version 21H1 for 32-bit Systems | 5011487 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 10 Version 21H1 for ARM64-based Systems | 5011487 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 10 Version 21H1 for x64-based Systems | 5011487 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 10 Version 21H2 for 32-bit Systems | 5011487 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 10 Version 21H2 for ARM64-based Systems | 5011487 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 10 Version 21H2 for x64-based Systems | 5011487 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 11 version 21H2 for ARM64-based Systems | 5011493 (Security Update) |
Important | Elevation of Privilege | Yes |
| Windows 11 version 21H2 for x64-based Systems | 5011493 (Security Update) |
Important | Elevation of Privilege | Yes |
Patches
| Article | Type | Restart |
|---|---|---|
5011491 |
Security Update | Yes |
5011495 |
Security Update | Yes |
5011503 |
Security Update | Yes |
5011485 |
Security Update | Yes |
5011487 |
Security Update | Yes |
5011493 |
Security Update | Yes |
Patch Diff
Integer overflow -> out-of-bounds write (CWE-190) in XblAuthManagerProxy.dll (Xbox Live Auth Manager), the custom COM marshaling proxy for Xbox Live auth tokens. ReadStringFromStream reads a client-supplied element count from a marshaled stream and computes the byte size as count*2 (WCHAR) without bounding count, so a large count overflows the size used for allocation/copy -> OOB write in the receiving (higher-privileged) process. IN-HOUSE ghidriff of XblAuthManagerProxy.dll 10.0.19041.746 -> .1586 (Mar 8 2022) confirms the fix: ReadStringFromStream now checks the length is < 0x100001 (bounded to <= 0x100000) before computing cb = count*2, and verifies the actually-read byte count equals cb (else returns 0x8000ffff/-0x7fff0001) - preventing the overflow.
| Function | Address | Change | Note |
|---|---|---|---|
ReadStringFromStream |
code change |
code (length bound before *2 added) | Pre: reads a count and computes cb = count*2 for a WCHAR string from the marshaled stream without an upper bound -> integer overflow of the size. Post: `if (len < 0x100001)` guard (<= 0x100000) before `cb = len*2`, plus a check that the read byte count == cb, else error - eliminating the overflow/OOB write. |
Root Cause Analysis
CVE-2022-21967 — Xbox Live Auth Manager XblAuthManagerProxy.dll Integer Overflow → OOB Write in ReadStringFromStream
Summary
| Product | Windows — XblAuthManagerProxy.dll (Xbox Live Auth Manager COM marshaling proxy) |
| CVE ID | CVE-2022-21967 |
| Impact | Elevation of Privilege |
| CWE | CWE-190: Integer Overflow → CWE-787: Out-of-bounds Write |
| Patch Date | March 8, 2022 |
| Pre-patch | XblAuthManagerProxy.dll 10.0.19041.746 |
| Post-patch | XblAuthManagerProxy.dll 10.0.19041.1586 |
| Fix gating | None — bound check added |
Vulnerability
XblAuthManagerProxy.dll implements custom COM marshaling proxies for Xbox Live auth tokens, so a process unmarshals attacker-influenced data. ReadStringFromStream reads a client-supplied element count from the marshaled stream and computes the byte size as count * 2 (WCHAR) without bounding count. A large count overflows the size used to allocate/copy the string, yielding a heap out-of-bounds write in the receiving process (CWE-190 → CWE-787).
The patch (confirmed — diff)
// ReadStringFromStream (10.0.19041.1586) — PATCHED
if (0x100000 < len) goto error; // *** bound: len <= 0x100000 before doubling ***
cb = len * 2;
... read ...
if (read_bytes != cb) goto error; // verify actual read length
The count is bounded to 0x100000 before cb = count*2, and the actual read length is verified — eliminating the overflow. Unconditional (2022).
Detection
Crashes in XblAuthManagerProxy!ReadStringFromStream; marshaled Xbox Live auth streams carrying implausibly large string counts.
References
- CVE-2022-21967 · MSRC advisory · Full diff:
/data/patch_diffs/xblauthmanagerproxy_dll-cve-2022-21967-ghidriff.md
Attack Path
A marshaled string element count is doubled to bytes without a bound, overflowing the size for an OOB write
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.
Exploits & PoC
Detection Rules
Acknowledgments
Rick Veldhoven