Skip to content
Memory corruption Advisory Advanced CVE-2024-38186

Microsoft CLIPSP.SYS License update privilege escalation vulnerability

A privilege escalation vulnerability exists in the License update functionality of Microsoft CLIPSP.SYS. A specially crafted license blob can lead to privilege escalation, and an attacker can use the NtQuerySystemInformation function call to trigger this vulnerability.

Philippe Laulheret Follow

Originally disclosed on Cisco Talos

High 7.4 View original

A privilege escalation vulnerability exists in the License update functionality of Microsoft CLIPSP.SYS 10.0.22621 Build 22621, 10.0.26080.1 and 10.0.26085.1. A specially crafted license blob can lead to privilege escalation.

Philippe Laulheret, 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

Likely the driver does not validate that the entry_size of a type-0x2 licence entry matches the length of the device_id data, leading to out-of-bound reads and a double-fetch race condition that can cause an out-of-bound write.

Impact

A low-privileged user could potentially escalate privileges and escape a sandbox, as the vulnerable function is reachable from a low-privileged user and potentially running in an LPAC container.

What the attacker needed

Low privilege user access; ability to call NtQuerySystemInformation

How it was found

  1. Call NtQuerySystemInformation with the SystemPolicyInformation class and command_id 100 to invoke SPCallServerHandleUpdateLicense.
  2. Provide a tampered licence blob containing a malformed type-0x2 entry that is truncated.
  3. Arrange the licence blob so that the out-of-bound read of the device_id size lands at the end of a memory page.
  4. Use heap shaping to make the out-of-bound size value change between the two reads, causing an out-of-bound write.

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 report describes a flaw in a Windows driver that handles software licences. A low-privileged user can send a malformed licence file to the driver, which may cause it to read and write outside the intended memory, potentially allowing the user to gain higher 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.

More by Philippe Laulheret

View all

35 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.