Skip to content

How-ToRAM

KMODE_EXCEPTION_NOT_HANDLED in Windows 11: What It Means and How to Fix It

KMODE_EXCEPTION_NOT_HANDLED (bug check 0x1E) means a kernel-mode program, usually a driver, hit an error nothing caught. Here's how to find the driver from the blue screen, Event Viewer or a crash dump, and fix it with driver rollbacks, Safe Mode, Driver Verifier, memory and BIOS checks, and DISM and SFC.

By , Systems & Technical Editor

7 min read

KMODE_EXCEPTION_NOT_HANDLED in Windows 11: What It Means and How to Fix It

KMODE_EXCEPTION_NOT_HANDLED is one of the stop codes you might see on Windows 11's "Your device ran into a problem and needs to restart" screen. It sounds cryptic, but the name tells you a lot: something running in kernel mode (almost always a driver) hit an error it couldn't recover from. The good news is that this stop code often names the file that crashed, which gives you a head start. This guide explains what the code means, how to find the driver behind it, and what to do when no driver is named. The Windows tools and settings below come from Microsoft's own documentation, and the order of the checks is our advice.

What the error actually means

Microsoft's reference page lists KMODE_EXCEPTION_NOT_HANDLED as bug check 0x1E (full value 0x0000001E). It says the bug check "indicates that a kernel-mode program generated an exception that the error handler didn't catch". In plain English, a driver or other low-level part of Windows did something illegal, nothing caught the error, and Windows stopped to protect your data.

Microsoft lists the likely causes as:

  • A faulty device driver or system service. This is the most common suspect.

  • Hardware issues, which Microsoft describes as "BIOS incompatibilities, memory conflicts, and IRQ conflicts".

  • New hardware that isn't compatible with your version of Windows.

  • A BIOS incompatibility, especially if the crash happens after the first restart during Windows Setup or just after setup finishes.

To put that in context, Microsoft's advanced stop-error guide says its analysis of crashes found that 70% are caused by third-party driver code, 10% by hardware issues, 5% by Microsoft code and 15% have unknown causes. Those figures cover all stop errors, not just 0x1E, but they explain why drivers are the first thing to check.

If you see this error once and it never comes back, you may not need to do anything. Microsoft's own support page says that in most cases a single unexpected restart fixes itself. It's worth acting when the same stop code keeps coming back.

Step 1: Note the file name and the exception code

Look at the bottom of the blue screen. Microsoft says the stop code appears there, along with the name of the module that was running when the crash happened, if Windows can work it out. With KMODE_EXCEPTION_NOT_HANDLED, that's often a .sys file. If you see one, write it down. It's the single most useful clue you'll get.

If the PC restarts before you can read the screen, check the System log in Event Viewer (Windows Logs > System) after it boots. Microsoft says the bug check event lists the four stop code parameters. For 0x1E, parameter 1 is the exception code that wasn't handled and parameter 2 is the address where it happened. Microsoft lists three common exception codes:

Exception code (parameter 1)

Name

What Microsoft says it means

0xC0000005

STATUS_ACCESS_VIOLATION

A memory access violation occurred

0x80000003

STATUS_BREAKPOINT

A breakpoint or ASSERT was hit with no kernel debugger attached

0x80000002

STATUS_DATATYPE_MISALIGNMENT

An unaligned data reference was encountered

For 0xC0000005, Microsoft notes that parameter 4 is the address the driver attempted to access. Microsoft says the 0x80000003 case "should occur rarely". Our Event Viewer guide shows how to filter the System log if you haven't used it before.

Step 2: If a driver is named, update, roll back or remove it

Microsoft's advice for 0x1E is direct: "If a driver is listed by name in the bug check message, disable or remove that driver. Disable or remove any drivers or services that were recently added." Its reference page also says to "check with the manufacturer for driver updates".

Search for the .sys file name to see which device or program it belongs to. Then work through these in order:

  1. Update it from the maker. Get the latest driver from the hardware or software maker's own site, not a driver-updater tool.

  2. Roll it back if the crashes started after an update. Microsoft's Device Manager steps are: right-click Start, open Device Manager, expand the category, right-click the device, select Properties, open the Driver tab and choose Roll Back Driver. You need administrator rights. For graphics cards, our guides to rolling back a graphics driver and doing a clean install with DDU cover the GPU-specific steps.

  3. Uninstall the software that installed it. If the file belongs to an app rather than a device, uninstalling that app is the quickest test.

Microsoft also suggests a clean boot to rule out third-party services. If a maker has no update, Microsoft recommends disabling the related service.

Step 3: Can't get to the desktop? Use Safe Mode

If the crash happens during startup, Microsoft says you might be able to use Safe Mode to disable the driver in Device Manager. Safe Mode starts Windows "in a basic state, using a limited set of files and drivers", which can get you to Device Manager when a normal boot keeps crashing.

To get there, open the Windows Recovery Environment, then select Troubleshoot > Advanced options > Startup Settings > Restart. On the Startup Settings screen, press 4 or F4 for Safe Mode, or 5 or F5 for Safe Mode with Networking if you need to download a driver. If your drive is encrypted, Microsoft notes you'll need your BitLocker recovery key.

The same Startup Settings screen has a Disable automatic restart on system failure option. Microsoft says it stops Windows restarting automatically after an error, and that you should choose it only if Windows is stuck in a loop where it fails, restarts and fails again.

Step 4: No driver named? Read the crash dump

If the blue screen doesn't name a file, the crash dump usually will. Microsoft's guide says small memory dumps are saved in %SystemRoot%\Minidump, and kernel, complete and automatic dumps are saved as %SystemRoot%\MEMORY.DMP. To make sure Windows writes them, open Advanced system settings, select Settings under Startup and Recovery, and choose Automatic memory dump under "Write debugging information".

You can open the dump in WinDbg and run !analyze -v. Microsoft's example output includes a "Probably caused by" line naming the driver. Our minidump and WinDbg guide walks through this step by step. If you'd rather use a simpler tool, see our free BSOD analysis tools roundup.

Step 5: Still stuck? Try Driver Verifier (carefully)

Driver Verifier is built into Windows as verifier.exe. It monitors kernel-mode drivers in real time and, Microsoft says, proactively creates an exception when it finds an error in driver code, so that code can be examined. Microsoft estimates that "about 75 percent of all stop errors are caused by faulty drivers".

It comes with real warnings. Microsoft's Driver Verifier page says running it could cause the computer to crash and that it's meant for computers used for testing and debugging. Its stop-error guide adds that it "consumes lots of CPU and can slow down the computer significantly", that you can expect more crashes, and that you shouldn't verify every driver at once. Instead, test suspicious drivers first, such as those recently updated, in groups of 10 to 20. If the PC won't boot while Driver Verifier is running, start in Safe Mode, where Microsoft says the tool can't run. Then turn it off with verifier /reset. Our Driver Verifier guide covers the settings in detail. We'd only use it after Steps 1 to 4.

Step 6: Check memory, BIOS and new hardware

If drivers come up clean, look at hardware. Microsoft tells you to "run hardware diagnostics that are supplied by the system manufacturer, especially the memory scanner". Its general stop-error steps also include making sure "the BIOS and firmware are up-to-date" and removing any hardware you added just before the crashes started.

  • Memory: run a proper memory test. Our MemTest86 guide shows how. If you've enabled an XMP or EXPO memory profile, our own advice is to try a run at default memory settings too. A memory overclock that's borderline stable can look like a driver bug. See PC crashing after enabling XMP or EXPO.

  • BIOS: Microsoft says BIOS problems behind this error can be resolved by upgrading the BIOS. Follow our guide to updating your BIOS safely, and only use your motherboard maker's own files.

  • New parts: if you've just added a card, drive or USB device, Microsoft's first basic step is to shut down, remove it and see whether the crashes stop.

Step 7: Repair Windows itself

Corrupt system files are a less common cause, but they're quick to rule out. Microsoft recommends running DISM first, then System File Checker, from an administrator Command Prompt:

DISM.exe /Online /Cleanup-image /Restorehealth
sfc /scannow

Microsoft says sfc "will scan all protected system files and replace corrupted files with a cached copy". Our DISM and SFC guide explains what each result means. Microsoft's basic steps also say to install the latest Windows updates and keep 10% to 15% of the drive free. If nothing else works, it suggests a restore point or another recovery option.

Quick checklist

  • Write down the .sys file name and the stop code from the blue screen, or get the parameters from the System log in Event Viewer.

  • Named driver: update it from the maker, roll it back if it changed recently, or uninstall the app that installed it.

  • Crashes at boot: use Safe Mode via Troubleshoot > Advanced options > Startup Settings.

  • No driver named: set Automatic memory dump and read the dump with !analyze -v.

  • Last resort for drivers: Driver Verifier on a few suspects at a time, then verifier /reset.

  • Hardware: memory test, default memory settings, BIOS update, remove new parts.

  • Windows: DISM, then sfc /scannow, plus updates and free space.

For other stop codes, start with our Windows 11 blue screen guide. The closely related IRQL_NOT_LESS_OR_EQUAL and SYSTEM_SERVICE_EXCEPTION errors have their own guides.

The bottom line

KMODE_EXCEPTION_NOT_HANDLED (bug check 0x1E) means a kernel-mode program, usually a driver, hit an exception nothing caught. Start with the file name on the blue screen or the parameters in Event Viewer. If a driver is named, update it, roll it back or remove the app behind it, using Safe Mode if the PC won't boot. If no driver is named, read the crash dump, and only then try Driver Verifier on a few suspects. If drivers check out, test memory at default settings, update the BIOS and remove new hardware, then repair Windows with DISM and SFC.

Sources

  1. 01Bug check 0x1E: KMODE_EXCEPTION_NOT_HANDLED (Microsoft Learn)
  2. 02Advanced troubleshooting for stop or blue screen errors (Microsoft Learn)
  3. 03Analyze bug check (stop code error) data (Microsoft Learn)
  4. 04Driver Verifier (Microsoft Learn)
  5. 05Troubleshooting Windows unexpected restarts and stop code errors (Microsoft Support)
  6. 06Start your PC in safe mode in Windows (Microsoft Support)
  7. 07Update drivers through Device Manager in Windows (Microsoft Support)
  8. 08Use the System File Checker tool to repair missing or corrupted system files (Microsoft Support)

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

How to Use Langflow as an MCP Server for Local AI Tools

How-To

How to Use Langflow as an MCP Server for Local AI Tools

Langflow can turn the flows in a project into MCP tools that apps such as LM Studio and Cursor can call. We cover choosing which flows to expose, naming them so agents pick the right one, connecting a client with an API key, and setting timeouts.

Marcus Thorne5 min

How to Use Langflow With Ollama to Build Local AI Agents on Your PC

How-To

How to Use Langflow With Ollama to Build Local AI Agents on Your PC

Langflow lets you build AI agents and workflows by wiring components together on a canvas. We show how to install it, connect it to a local Ollama model, build a simple agent with tools, call the flow from your own scripts and fix common problems.

Marcus Thorne6 min

How to Update Your Wi-Fi Driver in Windows 11

How-To

How to Update Your Wi-Fi Driver in Windows 11

Updating your Wi-Fi driver can fix dropouts and missing 6GHz or Wi-Fi 7 features. Using Microsoft's and Intel's own pages, we show how to find your adapter, use Windows Update, install Intel's latest Wi-Fi package, find drivers for older or non-Intel cards, and roll back a driver that makes things worse.

Marcus Thorne5 min