Skip to content
Memory corruption Write-up Advanced

Part 2: Exploit Analysis

A zero-day exploit for CVE-2022-37969 in the Windows CLFS driver was analysed, showing how a corrupted pointer in a base log file leads to an arbitrary write primitive. The exploit then replaces the current process token with the SYSTEM token, achieving local privilege escalation.

zscaler.com

Published on zscaler.com

Subscribe

The author, on zscaler.com

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 a corrupted pointer in a CLFS base log file is dereferenced without proper validation, allowing a fake object to be used for an arbitrary write.

Impact

A local attacker could escalate privileges to SYSTEM on vulnerable Windows 10 and Windows 11 versions.

What the attacker needed

Local access to the target machine; ability to run code

How it was found

  1. Check the Windows OS version and store the offset of the Token field in _EPROCESS.
  2. Retrieve the _EPROCESS and _TOKEN addresses for the current process and the System process.
  3. Check the access token handle.
  4. Obtain the constant offset between two bigpools representing the Base Block.
  5. Craft the base log file after performing heap spraying.
  6. Trigger the CLFS vulnerability to perform an arbitrary write and replace the token.

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.

This is about a bug in a Windows kernel component that manages log files. By crafting a malicious log file, an attacker can trick the kernel into writing to a memory address of their choosing. They use this to swap their low-privilege security token for the one belonging to the SYSTEM account, giving them full control of the machine.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.