NT OS Kernel Information Disclosure Vulnerability
A race condition in the Windows kernel's token query function allows a user-controlled buffer to briefly hold a kernel pointer before it is overwritten, leaking a kernel address. An attacker could use this leak to bypass KASLR and chain with other bugs for local privilege escalation.
crowdfense.com
Published on crowdfense.com
hieu.q, voidsec2025-09-12T11:26:09+04:00
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a TOCTOU race condition where a kernel pointer is temporarily stored in a user-supplied buffer before being replaced, allowing a concurrent reader to capture it.
Impact
The leak bypasses KASLR and can be exploited from Low IL or AppContainer; when chained with a write-what-where bug, it could lead to a complete local privilege escalation.
What the attacker needed
Windows 11/Server 2022 24H2 or later; Ability to run code at Low IL or AppContainer; Win a race condition
How it was found
- Create two threads: one to repeatedly read from the user buffer at the specific offset, and one to call NtQueryInformationToken() with the TokenAccessInformation class.
- Run the syscall several times while continuously reading the buffer until the kernel address is leaked.
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 write-up has not been written yet. The Original tab links to the source.
The Windows kernel keeps its own memory addresses secret to make attacks harder. A function that handles token information briefly writes a secret kernel address into a buffer that the user can read, and if you time it right you can grab that address. Knowing the address helps attackers combine this with other bugs to take over the machine.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.