Skip to content
Memory corruption Advisory Advanced CVE-2020-1115

Microsoft Windows 10 CLFS.sys ValidateRegionBlocks privilege escalation vulnerability

A malformed CLFS log file can cause a heap buffer overflow in the Windows kernel driver CLFS.sys during validation of blocks related to the last OwnerPage. An attacker can trigger this from userland, leading to privilege escalation and potentially arbitrary code execution.

Marcin 'Icewall' Noga Follow

Originally disclosed on Cisco Talos

High 8.8 View original

A privilege escalation vulnerability exists in the CLFS.sys ValidateRegionBlocks functionality of Microsoft Windows 10 CLFS.SYS 10.0.19041.264 (WinBuild.160101.0800) and Insider Preview CLFS.SYS 10.0.20150.1000 (WinBuild.160101.0800). A specially crafted malformed log file can cause a heap buffer overflow, resulting…

Marcin 'Icewall' Noga, on Cisco Talos

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 report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The driver fails to properly validate the physical_lsn field in a block, causing an incorrect size calculation and a heap buffer overflow during a memmove operation.

Impact

This could allow an attacker to corrupt kernel pool structures and potentially execute arbitrary code with elevated privileges.

What the attacker needed

Ability to open a crafted log file

How it was found

  1. Create a malformed CLFS log file with a block whose physical_lsn is larger than that of the last OwnerPage.
  2. Open a handle to the log file, triggering CLFS.SYS to call ValidateRegionBlocks.
  3. The driver allocates a small pool buffer based on the block's sector count.
  4. The driver calculates an oversized copy length and performs a memmove, overflowing the pool buffer.

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 report has not been written yet. The Original tab links to the source.

This is a bug in a Windows kernel driver that handles log files. By crafting a special log file, an attacker can make the driver write more data than it allocated, corrupting memory. This can let them run code with high privileges, taking over the system.

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.

More by Marcin 'Icewall' Noga

View all

146 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

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.