DeviceObject Nulling: Driver DoS Without BSOD via BYOVD
A kernel read/write primitive from a vulnerable driver (BYOVD) is used to locate the _DRIVER_OBJECT of the Windows Defender network inspection driver and overwrite its DeviceObject pointer with zero. This disconnects the driver from its device stack so I/O requests fail with STATUS_NO_SUCH_DEVICE, giving a denial of service without a blue screen.
S12 - 0x12Dark Development Follow
Published on medium.com
Welcome to this new Medium post. In this one we will see how to perform a silent DoS against a kernel driver by nulling its DeviceObject pointer using a BYOVD kernel read/write primitive.
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 kernel trusts the DeviceObject pointer without integrity protection, so a kernel write primitive from another driver can null it and silently remove the driver from the device stack.
Impact
The targeted driver is disconnected from all I/O and requests fail, giving a stable denial of service without a BSOD; the text does not show any wider effect.
What the attacker needed
Kernel read/write primitive from a vulnerable driver; ability to load that driver on the target
How it was found
- Resolve kernel structure offsets from the public symbol (PDB) data.
- Obtain the base address of the Windows kernel image.
- Walk the object namespace from the root directory to find the Driver directory.
- Search that directory for the target driver by comparing its name.
- Compute the address of the DeviceObject field and overwrite it with zero using the write primitive.
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 drivers are represented by a kernel structure that holds a pointer to the driver's first device. If that pointer is set to zero, the kernel cannot route requests to the driver and simply reports that no such device exists. The author uses a separate, already-vulnerable driver to read and write kernel memory (a technique called BYOVD, bring your own vulnerable driver) to make that change, which stops the target driver working without crashing the machine.
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.