Skip to content
DoS Advisory Advanced CVE-2022-40733

Microsoft DirectComposition GetWeakReferenceBase null pointer dereference vulnerability

A null pointer dereference in the Windows DirectComposition component allows an unprivileged user to crash the system by setting a float property that incorrectly marks a resource as having a weak reference, then creating a weak reference to it. This leads to a denial of service (system reboot).

Jaewon Min Follow

Originally disclosed on Cisco Talos

Medium 5.0 View original

An access violation vulnerability exists in the DirectComposition functionality win32kbase.sys driver version 10.0.22000.593 as part of Windows 11 version 22000.593 and version 10.0.20348.643 as part of Windows Server 2022 version 20348.643. A specially-crafted set of syscalls can lead to a reboot.

Jaewon Min, 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 kernel incorrectly sets a status flag bit (bit 2) when setting certain float properties, making it believe a weak reference exists when it does not, leading to a null pointer dereference.

Impact

An unprivileged user can cause a system crash (denial of service) by triggering the null pointer dereference.

What the attacker needed

Unprivileged user access; ability to run code

How it was found

  1. Create a CParticleEmitterVisualMarshaler object as the target.
  2. Set a float property of type 0x36 on the target, which calls SetFloatProperty and sets the status flag.
  3. Create a CVisualReferenceControllerMarshaler object.
  4. Set a reference property of type 0x0 on the controller to reference the target, which calls SetVisual and attempts to create a weak reference.
  5. The system crashes due to null pointer dereference.

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.

DirectComposition is a Windows feature for combining graphics. A bug in its kernel driver means that if a program sets a certain property on a graphics object, the system later tries to use a reference that doesn't exist, causing a crash. An attacker with normal user access can trigger this to crash the computer.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by Jaewon Min

View all

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

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.