Skip to content
Race condition Advisory Advanced CVE-2016-9038

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.

Marcin 'Icewall' Noga Follow

Originally disclosed on Cisco Talos

High 8.1 View original

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.

Marcin 'Icewall' Noga, on Cisco Talos

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

  1. Open the device created by the driver, which grants full access to the Everyone group.
  2. Send the IOCTL whose first DWORD selects the version-query function.
  3. Supply an output pointer at offset 8 of the input buffer that passes the write probe.
  4. 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.

More by Marcin 'Icewall' Noga

View all

146 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.