Driver Overran Stack Buffer: How to Fix It
In this article
A driver overran stack buffer error is a Windows stop code (BSOD) that means a driver wrote more data into a small stack buffer than it could hold. The fix is to update, roll back, or remove the faulty driver, and to check your RAM and disk for corruption. You cannot patch the driver yourself; you identify which driver is misbehaving and replace or remove it. The steps below are for Windows 10 and Windows 11; menu labels can differ slightly by version and device.
What You'll Need
- A Windows 10 or 11 PC that can boot, even if only into Safe Mode.
- An administrator account.
- A backup of important files, if the PC is unstable.
- A working internet connection for driver downloads.
- A USB flash drive (8 GB or larger) if you need to create Windows installation media for repairs.
Step-by-Step
- Note the stop code and when it happens. Write down the exact message (DRIVER_OVERRAN_STACK_BUFFER) and what you were doing: booting, plugging in a device, launching a game, or waking from sleep. This narrows down the driver involved.
- Boot into Safe Mode if Windows will not start normally. Hold Shift while clicking Restart from the Start menu, then choose Troubleshoot > Advanced options > Startup Settings > Restart, and select Safe Mode. In Safe Mode only essential drivers load, so you can work without the crash repeating.
- Check for recent changes. Open Settings > Windows Update > Update history and look at what installed just before the crashes began. A new driver, Windows update, or newly connected device is the usual trigger. If a specific update lines up, uninstall it from the same Update history page (Uninstall updates) and restart.
- Update the drivers most likely to be involved. The usual suspects are graphics, chipset, network, audio, and storage controllers. Download the latest driver directly from your PC or motherboard manufacturer's support site, not from a third-party driver updater. Install one driver at a time and restart after each, so you know which change helped.
- Roll back a driver that started the problem. Open Device Manager (right-click Start > Device Manager), find the device category, right-click the device > Properties > Driver tab > Roll Back Driver. This is available only if a previous driver is stored; if it is greyed out, use the manufacturer's older driver installer instead.
- Remove or disable suspicious devices. In Device Manager, look for devices with a yellow warning icon. Right-click and choose Disable device (you can re-enable it later) or Uninstall device. For USB devices, unplug them and test. If the crash stops, the device or its driver is the cause.
- Run the built-in troubleshooters. Go to Settings > System > Troubleshoot > Other troubleshooters and run the ones for Windows Update, Blue Screen, and Hardware and Devices. These can reset components and flag problems without you hunting through menus.
- Check RAM and disk health. A failing memory stick can corrupt driver data and trigger this stop code. Open Start, type Windows Memory Diagnostic, and run it (the PC restarts). For the disk, open Command Prompt as administrator and run
chkdsk /f, then restart. Back up files before running disk checks on an unstable drive. - Run System File Checker and DISM. In an administrator Command Prompt, run
sfc /scannow, thenDISM /Online /Cleanup-Image /RestoreHealth. These repair damaged Windows system files that drivers depend on. - Use System Restore if the problem is recent. Search for Create a restore point > System Restore, and pick a point from before the crashes started. This reverts drivers and updates without deleting your personal files, though apps installed after the point are removed.
- Reset or reinstall Windows as a last resort. Go to Settings > System > Recovery > Reset this PC. Choose Keep my files to reinstall Windows while keeping personal data; installed apps and settings are removed. Back up important files first, because a reset can still fail on failing hardware.
Common Mistakes
- Using a third-party driver updater that installs generic or mismatched drivers; always get drivers from the PC, motherboard, or device maker.
- Updating every driver at once, which makes it impossible to tell which change fixed or caused the crash.
- Ignoring hardware: repeated driver crashes on the same PC often mean failing RAM or a bad disk, not a software bug.
- Deleting driver files manually from System32\drivers; this can leave Windows unable to boot. Use Device Manager or the manufacturer's uninstaller.
- Skipping the backup before a reset or chkdsk on a drive that may be failing.
Tips
- Keep a note of the driver versions you install and the dates; it makes rollback and support calls much easier.
- Prefer the driver package from your exact model's support page over the generic one Windows Update offers, especially for graphics and chipset.
- If the crash happens only under load (games, video export), test with the graphics driver first and check temperatures and power supply.
- Disconnect non-essential USB devices while troubleshooting to rule out a peripheral driver.
- Create a restore point before installing any new driver, so you have a quick way back.
Troubleshooting
If the PC still crashes after updating drivers, work through these in order. First, confirm the stop code is still the same; a different code points to a different cause. Second, boot into Safe Mode and see whether the crash stops. If it does, the culprit is a third-party driver or startup app, so disable startup items in Task Manager and re-enable them one at a time. Third, check Event Viewer (right-click Start > Event Viewer > Windows Logs > System) for errors logged just before the crash; look for the driver or device name. Fourth, if Windows cannot boot at all, use Windows installation media to access Startup Repair or Command Prompt from the recovery environment. Fifth, if memory diagnostics report errors, reseat the RAM sticks and test again; if errors persist, replace the faulty stick. If the disk check finds bad sectors, replace the drive and restore from backup. Finally, if all software steps fail and the hardware tests pass, a clean Windows install is the reliable next step.
Frequently Asked Questions
What does "driver overran stack buffer" actually mean?
It is a Windows bug check (stop code 0x000000F7) that occurs when a kernel-mode driver writes past the end of a fixed-size stack buffer, corrupting memory. Windows halts to prevent further damage.
Can I fix it without reinstalling Windows?
Usually yes. Updating, rolling back, or removing the faulty driver, running SFC and DISM, and checking RAM and disk resolve most cases. A reset is a last resort.
How do I find which driver caused it?
Use the timing of the crash, recent changes in Windows Update history, Device Manager warning icons, and Event Viewer system logs. Safe Mode helps confirm whether a third-party driver is involved.
Is it caused by hardware or software?
Most often software (a buggy or mismatched driver), but failing RAM or a failing disk can produce the same stop code. Run Windows Memory Diagnostic and chkdsk to rule hardware out.
Will a Windows reset delete my files?
Choose Keep my files to keep personal data, but installed apps and settings are removed. Back up important files first, because a reset can fail on failing hardware.
Does Safe Mode permanently fix the error?
No. Safe Mode only loads essential drivers, so it stops the crash while you troubleshoot. You still need to update, roll back, or remove the faulty driver in normal mode.