Kaspersky Internet Security KLIF Driver NtAdjustTokenPrivileges_HANDLER Denial of Service
The KLIF kernel driver of Kaspersky Internet Security filters the NtAdjustTokenPrivileges system call and trusts the attacker-supplied privilege count. A large count causes an integer overflow in a size calculation, bypassing a memory-safety check, and the driver then loops over an invalid buffer until it reads unmapped memory and crashes the machine.
Originally disclosed on Cisco Talos
A denial of service vulnerability exists in the syscall filtering functionality of Kaspersky Internet Security KLIF driver. A specially crafted native api call can cause a access violation 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
Likely the driver multiplies the user-controlled privilege count by the entry size and adds a header without checking for integer overflow, so the allocated buffer is far smaller than the loop that later walks it.
Impact
A local user can crash the whole system, causing a denial of service; the report does not claim any code execution or data theft.
What the attacker needed
Local access to the machine; Kaspersky Internet Security installed
The fix
The vendor released a patch, presumably adding an overflow check on the privilege count before the size calculation.
How it was found
- Open a handle to the current process token with the privilege-adjustment right.
- Set the privilege count in the token privileges structure to a very large value.
- Call AdjustTokenPrivileges with that structure so the driver's hook processes it.
- The driver overflows its size calculation, allocates a tiny buffer, and loops over it until it reads invalid memory and the system crashes.
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 kernel driver is software that runs with the highest privileges inside the operating system, so a mistake there can take down the whole computer. Here the driver asks Windows to adjust a process's privileges, and it trusts a number the program supplies for how many privileges are listed. By making that number huge, the program tricks the driver into reading far past the real data, and the machine crashes.
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.