CVE-2026-40369: Twelve Bytes to Escape the Browser Sandbox
A Windows kernel routine reachable through a system-information query performed three unchecked 32-bit increments at a caller-supplied kernel address when the buffer length was zero, because the write probe skipped validation for zero-length buffers. An attacker could use this 12-byte write primitive to corrupt kernel data and, by chaining it, escalate a non-administrator process to SYSTEM.
voidsec.com
Published on voidsec.com
I had originally prepared this bug for Pwn2Own Berlin. A couple of days before the contest, Ori Nimron independently dropped a public PoC for the same primitive on GitHub.
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 the zero-length buffer made the kernel's write probe return immediately, so the caller-controlled pointer was never validated before three increments were applied to it.
Impact
The primitive works from a non-elevated Medium-IL process and is reachable from browser renderer sandboxes, and the author chained it to spawn a SYSTEM shell; the sandbox-escape path itself is not covered in this post.
What the attacker needed
Ability to call NtQuerySystemInformation; Medium integrity level process; kernel base address known
How it was found
- Resolve the current kernel base address.
- Read the six device-count DWORDs through the device-information class.
- Trigger the vulnerable class with the target address and a zero length.
- Read the six DWORDs again and compare them with the earlier values.
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.
Windows has a system call that programs use to ask the kernel for information about running processes. When asked for one particular kind of information with a zero-length buffer, the kernel added some counters to a memory address the caller chose, without first checking that the caller was allowed to write there. Because that address can point at kernel data, an attacker can nudge kernel values and eventually gain full administrator-level control of the machine.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.