Invincea-X SboxDrv.sys Version Number Query Local Privilege Escalation Vulnerability
The SboxDrv.sys driver exposes a device that any local user can open, and one of its IOCTL handlers reads a user-supplied output pointer twice: once to validate it with ProbeForWrite and again to pass it to memcpy. An attacker who races the pointer value between those two reads can make the kernel write to an arbitrary address, potentially escalating privileges.
Originally disclosed on Cisco Talos
An exploitable double fetch vulnerability exists in the SboxDrv.sys driver functionality of Invincea-X 6.1.3-24058. A specially crafted input buffer and race condition can result in kernel memory corruption, which could result in privilege escalation.
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 handler validates a user-supplied pointer with ProbeForWrite but then re-reads the pointer from the user's input buffer for the memcpy, so the value can change between check and use.
Impact
A local attacker could corrupt kernel memory and potentially escalate privileges, though the race is rated high complexity.
What the attacker needed
Local code execution on the host; ability to open the driver device; winning a race condition
How it was found
- Open the device created by the driver, which grants full access to the Everyone group.
- Send the IOCTL whose first DWORD selects the version-query function.
- Supply an output pointer at offset 8 of the input buffer that passes the write probe.
- Race to change that pointer to a kernel address before the copy happens.
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 driver is a program that runs with the highest level of trust in the operating system. This one lets any user on the machine talk to it, and it checks a memory address the user supplies before writing to it, but then re-reads that address from user memory instead of using the checked copy. If the user swaps the address in the tiny gap between the check and the write, the driver writes to a location of the attacker's choosing, which can let them take over the machine.
What is Race condition?
Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.