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).
Originally disclosed on Cisco Talos
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.
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
- Obtain the address of the system call stub for NtUserCreateWindowEx.
- Allocate two pages of memory, make the second page inaccessible, and place a pointer near the end of the first page.
- Call NtUserCreateWindowEx with the crafted pointer as the class version or window name argument.
- 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.