Technical Analysis of Windows CLFS Zero-Day Vulnerability CVE-2022-37969 - Part 1: Root Cause Analysis
The Windows CLFS driver lacked a strict bounds check on the SignaturesOffset field in the base log file, allowing a crafted file to overwrite that field and bypass validation of cbSymbolZone, leading to an out-of-bounds write. An attacker could exploit this to corrupt a kernel pointer and gain SYSTEM privileges.
Published on zscaler.com
Subscribe
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the driver did not validate the SignaturesOffset field when loading a base log file, so a crafted value overwrote it in memory and bypassed the cbSymbolZone bounds check before an out-of-bounds memset.
Impact
An attacker who successfully exploits this vulnerability may gain SYSTEM privileges, and the 0-day exploit worked on Windows 10 and Windows 11 before the September patch.
What the attacker needed
Ability to create and modify .blf files; local access to the Windows machine; unpatched Windows 10 or 11
How it was found
- Create a base log file in a public folder using the CreateLogFile API.
- Create many additional base log files so the memory offset between Base Blocks stays constant.
- Modify specific bytes in the first log file, recalculate the CRC32 checksum, and reopen it.
- Create another base log file and add a log container to it.
- Add a log container to the modified log file, then call NtSetInformationFile with FileDispositionInformation.
- Close the handle of the second log file to trigger the vulnerability.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
The Windows kernel has a component that reads log files, and it trusted a number inside the file that says where a list of signatures lives. By putting a huge number there, an attacker made the kernel write data outside the intended area, corrupting a pointer it later used. That corruption can crash the machine or, with more work, let the attacker run code with the highest Windows privileges.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.