CVE-2021-43224 — Windows Common Log File System Driver Information Disclosure Vulnerability
Executive Summary
None
Overview
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N/E:U/RL:O/RC:C
EPSS Score
Affected Products
| Product | KB Article | Severity | Impact | Restart Required |
|---|---|---|---|---|
| Windows 10 for 32-bit Systems | 5008230 (Security Update) |
Important | Information Disclosure | Yes |
| Windows 10 for x64-based Systems | 5008230 (Security Update) |
Important | Information Disclosure | Yes |
| Windows 10 Version 1607 for 32-bit Systems | 5008207 (Security Update) |
Important | Information Disclosure | Yes |
| Windows 10 Version 1607 for x64-based Systems | 5008207 (Security Update) |
Important | Information Disclosure | Yes |
| Windows 10 Version 1809 for 32-bit Systems | 5008218 (Security Update) |
Important | Information Disclosure | Yes |
| Windows 10 Version 1809 for ARM64-based Systems | 5008218 (Security Update) |
Important | Information Disclosure | Yes |
| Windows 10 Version 1809 for x64-based Systems | 5008218 (Security Update) |
Important | Information Disclosure | Yes |
| Windows 10 Version 1909 for 32-bit Systems | 5008206 (Security Update) |
Important | Information Disclosure | Yes |
| Windows 10 Version 1909 for ARM64-based Systems | 5008206 (Security Update) |
Important | Information Disclosure | Yes |
| Windows 10 Version 1909 for x64-based Systems | 5008206 (Security Update) |
Important | Information Disclosure | Yes |
| Windows 10 Version 2004 for 32-bit Systems | 5008212 (Security Update) |
Important | Information Disclosure | Yes |
| Windows 10 Version 2004 for ARM64-based Systems | 5008212 (Security Update) |
Important | Information Disclosure | Yes |
| Windows 10 Version 2004 for x64-based Systems | 5008212 (Security Update) |
Important | Information Disclosure | Yes |
| Windows 10 Version 20H2 for 32-bit Systems | 5008212 (Security Update) |
Important | Information Disclosure | Yes |
| Windows 10 Version 20H2 for ARM64-based Systems | 5008212 (Security Update) |
Important | Information Disclosure | Yes |
| Windows 10 Version 21H1 for 32-bit Systems | 5008212 (Security Update) |
Important | Information Disclosure | Yes |
| Windows 10 Version 21H1 for ARM64-based Systems | 5008212 (Security Update) |
Important | Information Disclosure | Yes |
| Windows 10 Version 21H1 for x64-based Systems | 5008212 (Security Update) |
Important | Information Disclosure | Yes |
| Windows 10 Version 21H2 for 32-bit Systems | 5008212 (Security Update) |
Important | Information Disclosure | Yes |
| Windows 10 Version 21H2 for ARM64-based Systems | 5008212 (Security Update) |
Important | Information Disclosure | Yes |
| Windows 10 Version 21H2 for x64-based Systems | 5008212 (Security Update) |
Important | Information Disclosure | Yes |
| Windows 11 version 21H2 for ARM64-based Systems | 5008215 (Security Update) |
Important | Information Disclosure | Yes |
| Windows 11 version 21H2 for x64-based Systems | 5008215 (Security Update) |
Important | Information Disclosure | Yes |
| Windows 7 for 32-bit Systems Service Pack 1 5008244 (Monthly Rollup) 5008282 (Security Only) Important Information Disclosure 5007236 Base: 5.5 Temporal: 4.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N/E:U/RL:O/RC:C 6.1.7601.25796 Yes 5008244 5008282 Windows 7 for x64-based Systems Service Pack 1 5008244 (Monthly Rollup) 5008282 (Security Only) Important Information Disclosure 5007236 Base: 5.5 Temporal: 4.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N/E:U/RL:O/RC:C 6.1.7601.25796 Yes 5008244 5008282 Windows 8.1 for 32-bit systems 5008263 (Monthly Rollup) 5008285 (Security Only) Important Information Disclosure 5007247 Base: 5.5 Temporal: 4.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N/E:U/RL:O/RC:C 6.3.9600.20207 Yes 5008263 5008285 Windows 8.1 for x64-based systems 5008263 (Monthly Rollup) 5008285 (Security Only) Important Information Disclosure 5007247 Base: 5.5 Temporal: 4.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N/E:U/RL:O/RC:C 6.3.9600.20207 Yes 5008263 5008285 Windows RT 8.1 | 5008263 (Monthly Rollup) |
Important | Information Disclosure | Yes |
| Windows Server 2008 for 32-bit Systems Service Pack 2 5008274 (Monthly Rollup) 5008271 (Security Only) Important Information Disclosure 5007263 Base: 5.5 Temporal: 4.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N/E:U/RL:O/RC:C 6.0.6003.21309 Yes 5008274 5008271 Windows Server 2008 for 32-bit Systems Service Pack 2 (Server Core installation) 5008274 (Monthly Rollup) 5008271 (Security Only) Important Information Disclosure 5007263 Base: 5.5 Temporal: 4.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N/E:U/RL:O/RC:C 6.0.6003.21309 Yes 5008274 5008271 Windows Server 2008 for x64-based Systems Service Pack 2 5008274 (Monthly Rollup) 5008271 (Security Only) Important Information Disclosure 5007263 Base: 5.5 Temporal: 4.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N/E:U/RL:O/RC:C 6.0.6003.21309 Yes 5008274 5008271 Windows Server 2008 for x64-based Systems Service Pack 2 (Server Core installation) 5008274 (Monthly Rollup) 5008271 (Security Only) Important Information Disclosure 5007263 Base: 5.5 Temporal: 4.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N/E:U/RL:O/RC:C 6.0.6003.21309 Yes 5008274 5008271 Windows Server 2008 R2 for x64-based Systems Service Pack 1 5008244 (Monthly Rollup) 5008282 (Security Only) Important Information Disclosure 5007236 Base: 5.5 Temporal: 4.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N/E:U/RL:O/RC:C 6.1.7601.25796 Yes 5008244 5008282 Windows Server 2008 R2 for x64-based Systems Service Pack 1 (Server Core installation) 5008244 (Monthly Rollup) 5008282 (Security Only) Important Information Disclosure 5007236 Base: 5.5 Temporal: 4.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N/E:U/RL:O/RC:C 6.1.7601.25796 Yes 5008244 5008282 Windows Server 2012 5008277 (Monthly Rollup) 5008255 (Security Only) Important Information Disclosure 5007260 Base: 5.5 Temporal: 4.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N/E:U/RL:O/RC:C 6.2.9200.23545 6.2.9200.23540 Yes 5008277 5008255 Windows Server 2012 (Server Core installation) 5008277 (Monthly Rollup) 5008255 (Security Only) Important Information Disclosure 5007260 Base: 5.5 Temporal: 4.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N/E:U/RL:O/RC:C 6.2.9200.23545 6.2.9200.23540 Yes 5008277 5008255 Windows Server 2012 R2 5008263 (Monthly Rollup) 5008285 (Security Only) Important Information Disclosure 5007247 Base: 5.5 Temporal: 4.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N/E:U/RL:O/RC:C 6.3.9600.20207 Yes 5008263 5008285 Windows Server 2012 R2 (Server Core installation) 5008263 (Monthly Rollup) 5008285 (Security Only) Important Information Disclosure 5007247 Base: 5.5 Temporal: 4.8 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N/E:U/RL:O/RC:C 6.3.9600.20207 Yes 5008263 5008285 Windows Server 2016 | 5008207 (Security Update) |
Important | Information Disclosure | Yes |
| Windows Server 2016 (Server Core installation) | 5008207 (Security Update) |
Important | Information Disclosure | Yes |
| Windows Server 2019 | 5008218 (Security Update) |
Important | Information Disclosure | Yes |
| Windows Server 2019 (Server Core installation) | 5008218 (Security Update) |
Important | Information Disclosure | Yes |
| Windows Server 2022 | 5008223 (Security Update) |
Important | Information Disclosure | Yes |
| Windows Server 2022 (Server Core installation) | 5008223 (Security Update) |
Important | Information Disclosure | Yes |
| Windows Server, version 2004 (Server Core installation) | 5008212 (Security Update) |
Important | Information Disclosure | Yes |
| Windows Server, version 20H2 (Server Core Installation) | 5008212 (Security Update) |
Important | Information Disclosure | Yes |
Patches
| Article | Type | Restart |
|---|---|---|
5008230 |
Security Update | Yes |
5008207 |
Security Update | Yes |
5008218 |
Security Update | Yes |
5008206 |
Security Update | Yes |
5008212 |
Security Update | Yes |
5008215 |
Security Update | Yes |
5008263 |
Monthly Rollup | Yes |
5008223 |
Security Update | Yes |
Patch Diff
Stack buffer overwrite in CClfsLogFcbPhysical::QueryLogFileInfo. User-supplied infoSize passed unclamped to memset() on a 0x78-byte stack buffer — any size >0x78 zeroes past the buffer, corrupting the stack cookie and return address → BSOD. Patch clamps input to sizeof(CLFS_INFORMATION). Reachable via GetLogFileInformation() from any local user.
| Function | Address | Change | Note |
|---|---|---|---|
CClfsLogFcbPhysical::QueryLogFileInfo |
|
code (size clamp added) | memset size clamped to sizeof(CLFS_INFORMATION) (0x78) before zeroing the stack buffer — prevents overwrite past the 0x78-byte CLFS_INFORMATION structure. |
Root Cause Analysis
CVE-2021-43224 — Windows CLFS clfs.sys Stack Buffer Overwrite
Summary
| Product | Microsoft Windows — clfs.sys (Common Log File System) |
|---|---|
| Vendor | Microsoft Corporation |
| Severity | CVSS v3.1 7.8 (High) |
| CVE Title | Windows CLFS Driver Information Disclosure Vulnerability |
| CWE | CWE-787 (Out-of-bounds Write) |
| Affected Versions | Windows 10/11 and Server |
| Impact | Local — low-privilege user triggers stack buffer overwrite → BSOD / info disclosure |
| Exploited ITW | No |
| Patch Date | December 2021 Patch Tuesday — KB5008215 |
Root Cause
The Common Log File System (clfs.sys) handles GetLogFileInformation requests
via CClfsLogFcbVirtual::QueryLogFileInfo. The function copies log metadata into
a caller-supplied output buffer:
// Simplified vulnerable path
memset(dest_buffer, 0, infoSize); // infoSize is user-controlled!
The infoSize parameter is passed directly from user mode without clamping
to the actual output buffer size (0x78 bytes / sizeof(CLFS_INFORMATION)).
When infoSize=0x110 (or larger) is passed:
memsetzeroes past the 0x78-byte stack buffer- Stack cookie is overwritten
- Return address is corrupted
- Function return triggers
KERNEL_SECURITY_CHECK_FAILURE(bugcheck 0x139) — BSOD
While the immediate effect is a denial-of-service (BSOD), the overwrite pattern is partially attacker-controlled (the zero-fill can be observed in crash dumps), making it an information-disclosure primitive.
The patch (verified in ghidriff diff — clfs.sys 10.0.22000.258 → 10.0.22000.376)
- Modified:
CClfsLogFcbVirtual::QueryLogFileInfo(53% match) — completely rewritten to clampinfoSizetomin(infoSize, 0x78)before thememset. - Added:
CClfsBaseFile::ValidateContainerOffsets— new validation helper that sorts and validates container context offsets usingqsortandCompareOffsets. - Added:
CompareOffsets— qsort comparator for offset validation. - Modified:
CClfsBaseFilePersisted::LoadContainerQ(14% match) — major rewrite to integrate the new validation suite. - Modified:
CClfsBaseFile::FindSymbol(31% match) — hardened symbol lookup. - The fix clamps the input size and adds comprehensive container offset validation to prevent any out-of-bounds access path.
Reaching the bug — local attack
Reachable from any low-privilege process that can open a CLFS log file:
user process (Medium IL)
│
▼
CreateLogFile("\\?\\GLOBALROOT\\Device\\Clfs\\MyLog.blf", OPEN_ALWAYS)
│
▼
RegisterManageableLogClient(hLog)
│
▼
GetLogFileInformation(hLog, &infoBuffer, &infoSize=0x110)
│ infoSize is user-controlled, not validated
▼
clfs!CClfsLogFcbVirtual::QueryLogFileInfo
│ memset(dest, 0, 0x110) — writes 0x98 bytes past stack buffer
▼
stack cookie overwritten → KERNEL_SECURITY_CHECK_FAILURE (0x139) → BSOD
| Element | Value |
|---|---|
| Device path | \Device\Clfs (via CreateLogFile on .blf log file) |
| Vulnerable functions | clfs!CClfsLogFcbVirtual::QueryLogFileInfo, clfs!CClfsLogFcbPhysical::QueryLogFileInfo |
| Buffer | 0x78-byte stack buffer (CLFS_INFORMATION) |
| Privileges | none (standard local user) |
| Trigger | GetLogFileInformation with infoSize > 0x78 |
Detection engineering
- ETW / kernel tracing:
Microsoft-Windows-CLFSprovider showingGetLogFileInformationcalls with abnormally largeinfoSizevalues. - Crash forensics: Bugcheck
0x139(KERNEL_SECURITY_CHECK_FAILURE) inclfs!CClfsLogFcbVirtual::QueryLogFileInfowith a corrupted stack cookie. TheinfoSizeparameter on the stack will be > 0x78. - Behavioral tell: Non-system process repeatedly opening
.blffiles and callingGetLogFileInformationwith varying large sizes is anomalous.
References
Attack Path
Stack buffer overwrite via an unclamped memset size in QueryLogFileInfo
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
1 public PoCUnverified third-party code
Public proof-of-concept repositories aggregated from PoC-in-GitHub. They are not reviewed and may be incomplete, non-functional, or malicious — inspect the code before running anything.
| Repository | Stars | Published | Description |
|---|---|---|---|
| KaLendsi/CVE-2021-43224-POC | 94 | 2021-12-21 | Windows Common Log File System Driver POC |
Detection Rules
Acknowledgments
Anonymous
HyungSeok Han