Skip to content
Memory corruption Advisory Advanced

Microsoft CLIPSP.SYS License Update out-of-bounds read vulnerability

An out-of-bounds read vulnerability exists in the License Update functionality of Microsoft CLIPSP.SYS when handling a tampered license blob with a non-null-terminated PFN string. An attacker could use this to infer memory contents and potentially escalate privileges.

Philippe Laulheret Follow

Originally disclosed on Cisco Talos

High 7.4 View original

An out-of-bounds read vulnerability exists in the License Update functionality of Microsoft CLIPSP.SYS 10.0.22621 Build 22621. 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 fails to ensure that the PFN string in a license blob is null-terminated before using string functions that rely on null termination.

Impact

A low-privileged user or a process in an LPAC container could exploit this to read out-of-bounds memory and potentially escalate privileges or escape the sandbox.

What the attacker needed

Ability to call NtQuerySystemInformation; low privilege user or LPAC container; crafted license blob

The fix

The driver should validate that the PFN string is null-terminated before processing it.

How it was found

  1. Tamper with a license blob to include a non-null-terminated PFN string.
  2. Install the tampered license using the SPCallServerHandleUpdateLicense function.
  3. Ensure the license has an associated keyholder blob of type 0xDD with an expression (type 1) that will be matched against the PFN.
  4. The driver retrieves the PFN and calls check_if_expression_in_pfn, which reads past the end of the PFN.
  5. The match/no-match result is returned to the user, allowing inference of memory contents.

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 bug in a Windows driver that handles software licenses. The driver reads past the end of a string because it expects the string to end with a special zero character, but an attacker can provide a license without that zero. By observing whether a pattern matches, the attacker can learn what is in memory beyond the string, which could help them break out of a sandbox or 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.