Skip to content
DoS Advisory Advanced CVE-2016-4304

Kaspersky Internet Security KLIF Driver NtUserCreateWindowEx_HANDLER Denial of Service

The Kaspersky KLIF driver's filter for the NtUserCreateWindowEx system call only validated the first four bytes of a user-supplied pointer before dereferencing a field at offset 8. A local attacker could pass a crafted pointer to cause an access violation in kernel mode, crashing the system (denial of service).

Piotr Bania Follow

Originally disclosed on Cisco Talos

Medium 5.5 View original

A denial of service vulnerability exists in the syscall filtering functionality of the Kaspersky Internet Security KLIF driver. A specially crafted native api call request can cause a access violation exception in KLIF kernel driver resulting in local denial of service.

Piotr Bania, 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's pointer validation routine only probes the first four bytes of a user-supplied pointer, then later dereferences a field at offset 8 without validating that address.

Impact

A local attacker can cause a kernel access violation, resulting in a denial of service (system crash).

What the attacker needed

Local access to the machine; Kaspersky Internet Security installed

The fix

The driver should validate the entire structure, including the field at offset 8, before dereferencing it; the report notes a patch was released.

How it was found

  1. Obtain the address of the system call stub for NtUserCreateWindowEx.
  2. Allocate two pages of memory, make the second page inaccessible, and place a pointer near the end of the first page.
  3. Call NtUserCreateWindowEx with the crafted pointer as the class version or window name argument.
  4. The driver reads the first four bytes successfully, then tries to read offset 8 and triggers an access violation, 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.

A security product's driver checks a pointer from a program before reading it, but it only checks the first four bytes. The program can arrange memory so that the first four bytes are readable but the next part is not, causing the driver to crash the whole computer. This is a denial of service: the attacker cannot steal data, but they can make the machine stop working.

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 Piotr Bania

View all

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