Skip to content
DoS Advisory Advanced CVE-2022-40732

Microsoft DirectComposition CCompositionSurfaceBitmapMarshaler null pointer dereference vulnerability

A Windows kernel component, the DirectComposition surface bitmap marshaler, fails to validate a pointer when a particular integer property is set, so a crafted sequence of system calls dereferences a null pointer. An unprivileged local user can trigger a system crash and reboot, causing denial of service.

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, when the integer property 0x3 is set, the code does not check that the pointer at offset +38h actually refers to a DxgkCompositionObjectType object before passing it to the kernel graphics call.

Impact

An unprivileged local user could crash the machine, causing a denial of service; the report does not claim memory corruption or code execution.

What the attacker needed

Local access to the machine; ability to run code as an unprivileged user

How it was found

  1. Create a composition surface bitmap marshaler object.
  2. Set the integer property 0x3 on that object without a valid handle reference stored at offset +38h.
  3. The kernel calls the graphics ink-cookie routine with the unchecked pointer and faults, crashing the system.

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.

Windows splits its work between normal programs and a privileged core called the kernel. Some kernel code handles drawing and animation, and it accepts instructions from ordinary programs. Here the kernel trusted a value that had not been set up properly and tried to use it, which crashed the whole machine. The result is a denial of service: the computer stops working until it restarts.

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.