How to fix the 0x000000BE blue screen error (ATTEMPTED_WRITE_TO_READONLY_MEMORY) in Windows
Prefer to fix it yourself? The manual steps follow.
- 8methods
- 10 to 60 minutes
- Intermediate
Applies to Windows 11 and Windows 10 PCs that crash with stop code 0x000000BE, bug check 0xBE or ATTEMPTED_WRITE_TO_READONLY_MEMORY
8 methods in this guide
Hi, I have been getting BSODs regularly lately, sometimes as often as twice an hour, which is very annoying because I use this computer for work as well. When the PC crashes, it shows the 0x000000BE error with the code ATTEMPTED_WRITE_TO_READONLY_MEMORY. Any tips on fixing this would be appreciated.
Stop error 0x000000BE, also written 0xBE, is ATTEMPTED_WRITE_TO_READONLY_MEMORY. Windows stopped because a driver tried to write to memory that is marked read-only. Find the driver named on the stop screen or in the crash dump, then update, roll back or remove it first.
0x000000BE means a driver tried to write to read-only memory, so Windows stopped the PC to protect itself. Look for the driver file named on the stop screen or in the crash dump, then update, roll back or disable that driver (Fix 1). If the crashes began after an update or new device, undo that change (Fix 2, Fix 3). If the PC restarts in a loop, use Safe Mode (Fix 4).
| Error | A stop screen with Stop code: ATTEMPTED WRITE TO READONLY MEMORY. Event Viewer writes it as The bugcheck was: 0x000000be. |
|---|---|
| Where it appears | At random while you work, game or copy files, sometimes during startup. The screen shows the message, collects data and the PC restarts by itself. |
| Main cause | A driver that writes to a read-only memory segment, in Microsoft's words. Third-party drivers for network, USB, graphics, storage and security software are the usual suspects. |
| Fastest fix | Update, roll back or disable the driver the stop screen or dump names (Fix 1). |
| Also written as | 0xBE, 0x00000BE, 0x000000BE, bug check 0xBE, bugcheck 0x000000be, BugcheckCode 190, BCCode: be, attempted write to readonly memory. |
| Affects | Windows 11 and Windows 10, and older versions back to Windows XP. Windows 10 left support on 14 October 2025, so new driver fixes for it are no longer guaranteed. |
| Vendor status | Microsoft documents 0xBE for programmers only. There is no general Windows patch: the fix comes from the maker of the faulty driver. |
| Where the cause is logged | C:\Windows\Minidump (one .dmp file per crash), Event Viewer System log event 1001, and WinDbg's !analyze -v line IMAGE_NAME. |
| Time to fix | 10 to 20 minutes for a driver fix. 30 to 60 minutes when the PC restarts in a loop or Windows must be reset. |
Facts checked on 16 October 2026. Steps written for Windows 11 (25H2 and 26H2) and Windows 10 22H2.
What the 0x000000BE blue screen means
Microsoft's bug check reference says the ATTEMPTED_WRITE_TO_READONLY_MEMORY bug check has a value of 0x000000BE and is issued if a driver attempts to write to a read-only memory segment. Windows marks its own code and some data as read-only on purpose, so a write there is a bug or a sign that something tampered with the system.
Windows cannot tell whether the write was harmless, so it stops at once rather than risk damaged data. If Windows can tell which driver did it, Microsoft says its name is printed on the blue screen. That name is the most useful fact on the whole screen: write it down or take a photo before the PC restarts.

| What you see | Where |
|---|---|
| Stop code: ATTEMPTED WRITE TO READONLY MEMORY | The stop screen on Windows 11 and Windows 10 |
The bugcheck was: 0x000000be (0x..., 0x..., 0x..., 0x...) | Event Viewer, System log, event 1001, after the restart |
BugcheckCode 190 | Event Viewer, Kernel-Power event 41. 190 is 0xBE in decimal. |
BUGCHECK_CODE: be, ATTEMPTED_WRITE_TO_READONLY_MEMORY (be) | WinDbg after !analyze -v |
| 0xBE, 0x00000BE, 0x000000BE, bsod 0xbe | Short and long forms of the same number, typed by hand |
Microsoft says the screen colour and message of a stop code error vary by Windows 11 version. On Windows 11 24H2 and later the screen is black. The line Your device ran into a problem and needs to restart and the stop code stay the same.
What causes the 0xBE blue screen, most common first
Microsoft names a driver as the cause in its definition, so the question is always which one. A driver is most often new or freshly updated, comes with a device you added, or comes with a program that hooks deep into Windows, such as security, VPN, anti-cheat or hardware monitoring software.
| How often | Cause | Sign | Fix |
|---|---|---|---|
| Most often | A buggy or outdated third-party driver: network, Wi-Fi, USB, graphics, storage, audio | The stop screen's What failed line or the dump's IMAGE_NAME names a .sys file that is not part of Windows | Fix 1 |
| Often | A recent driver, app or Windows update that brought a new driver | The crashes began within days of an update | Fix 2 |
| Often | A newly added device, dock or USB gadget and its driver | The crashes began after you plugged something in | Fix 3 |
| Less often | A program with its own kernel driver: antivirus, VPN, anti-cheat, RGB or overclocking tools | The dump names only Windows files, or a driver from such a program | Fix 5 |
| Rarely | Faulty RAM, an unstable overclock or damaged system files | Different stop codes each time, crashes under heavy load, SFC finds errors | Fix 6, Fix 7 |
Microsoft says most unexpected restarts need no action. A crash that repeats with the same stop code, as in the reader's question above, points to one driver that loads every time, which makes it easier to find.
Find the driver behind 0x000000BE
Microsoft's reference points to the !analyze command of its debugger as the way to find the root cause. You do not have to be a programmer to read the one line that matters. If the PC still starts, it takes about ten minutes.
- Open File Explorer and go to
C:\Windows\Minidump. Each crash leaves one.dmpfile named by its date. - Install Microsoft's debugger: open Terminal and run
winget install Microsoft.WinDbg. - Start WinDbg as administrator, select File > Open dump file and open the newest
.dmpfile. - Type
!analyze -vand press Enter. Wait until the analysis ends. - Read the lines IMAGE_NAME and MODULE_NAME. A name such as
ntoskrnl.exeis Windows itself; any other.sysfile is your suspect.
| Parameter | Meaning | What it tells you |
|---|---|---|
| 1 | Virtual address of the attempted write | Where in memory the driver tried to write |
| 2 | PTE contents | The page table entry that marks that memory read-only |
| 3 and 4 | Reserved | Nothing you can use |
Press Win + X, select Event Viewer and open Windows Logs > System. Find event 1001 with 0x000000be, then read the errors and warnings a few minutes before it. A network adapter, USB controller or disk that logs errors right before each crash is your first suspect.
How to fix the 0x000000BE blue screen error
Start with Fix 1 if the stop screen or the dump names a driver. Fix 2 is for crashes after an update, Fix 3 for new hardware and Fix 4 for a PC that restarts in a loop. Fix 5 finds a guilty program. Fixes 6 to 8 are the general checks and repairs.
| What you see | Start with | Then |
|---|---|---|
The stop screen or IMAGE_NAME names a third-party .sys driver | Fix 1 | Fix 2 |
| Crashes began after a driver, app or Windows update | Fix 2 | Fix 1 |
| Crashes began after you added a device, dock or USB gadget | Fix 3 | Fix 1 |
| The PC restarts in a loop and never reaches the desktop | Fix 4 | Fix 7 |
| Only Windows files named, and security, VPN or tuning software installed | Fix 5 | Fix 6 |
| Different stop codes each time, or nothing above helped | Fix 6 | Fix 7, Fix 8 |
Fix 1. Update, roll back or disable the driver the crash names
15 minutesLow riskThe stop screen shows a What failed line, or !analyze -v shows an IMAGE_NAME that is not a core Windows file.
Microsoft defines 0xBE as a driver writing to read-only memory and says Windows prints that driver's name when it can. Only a different version of that driver, or not loading it, removes the bad write.

- Search the driver file name (for example
rt640x64.sysornvlddmkm.sys) to learn which device or program it belongs to. - Right-click Start and select Device Manager, then find that device.
- If the crashes began after a driver update, open Properties > Driver and select Roll Back Driver.
- Otherwise, download the newest driver for that exact device from its maker or your PC maker's support page and install it.
- If no newer driver exists, right-click the device and select Disable device for a test.
- Restart and use the PC the way it used to crash. Step by step with screenshots: Update, roll back or reinstall a driver

If IMAGE_NAME is ntoskrnl.exe or another Microsoft file, Windows only caught the bad write there. The real culprit is often a third-party driver that is not named: go to Fix 2 and Fix 5.
It worked if: Device Manager shows the new, older or disabled driver, and the PC runs through the task that used to crash without a new file in C:\Windows\Minidump.
If not: If no driver is named, or the crash returns, go to Fix 2.
Fix 2. Undo the update or program that came before the crashes
15 to 30 minutesRead the warningThe crashes began within days of a Windows update, a driver update or a new program, and no driver is named.
Every update can bring a new driver, and a program can install its own. Going back to the state before the first crash removes that driver without having to know its name.
System Restore keeps your files but removes apps and drivers installed after the restore point. Uninstalling a Windows update removes its security fixes until it installs again. Note what you remove so you can add it back later.
- Note the date of the first crash: open Event Viewer and find the oldest event 1001 with
0x000000be. - Open Settings > Apps > Installed apps and sort by install date. Uninstall a program installed just before that date: Uninstall a program or app in Windows
- If a Windows update came the same day, uninstall it: How to uninstall a Windows update
- If you cannot tell what changed, press Win + R, type
rstruiand choose a restore point from before the first crash: Undo recent changes with System Restore - Restart and use the PC as before.

It worked if: The PC runs through a full day of normal use without a new crash dump.
If not: If you added hardware in the same period, go to Fix 3. Otherwise go to Fix 5.
Fix 3. Unplug new hardware and test with the basics only
15 minutesLow riskThe crashes began after you added a device: a dock, a USB hub or adapter, a mouse with its own software, an external drive or a card inside the PC.
Microsoft's first step for repeated stop codes is to remove new hardware. Every device brings its own driver, and USB and network drivers are a common source of 0xBE.
- Shut the PC down and unplug everything except the keyboard, mouse and screen.
- Remove any card or drive you added inside the PC before the crashes began.
- Start the PC and use it for the length of time that usually brings a crash.
- If it stays stable, plug the devices back in one at a time, a day apart if the crash was rare.
- When the crash returns, update the driver of the last device you added, or uninstall it with Delete the driver software for this device ticked.

It worked if: The PC runs without 0xBE with the basics only, and the crash returns only with one device plugged in.
If not: If it crashes with nothing extra attached, go to Fix 5.
Fix 4. Stop a restart loop from Safe Mode or the recovery environment
30 minutesRead the warning0x000000BE appears during startup and the PC restarts again and again before you can sign in.
Safe Mode starts Windows with a minimal set of drivers, so the third-party driver behind 0xBE usually does not load. Microsoft recommends Safe Mode when restarting is a problem, and the other fixes can be run from there.
Safe Mode and Startup Repair change nothing in your files. System Restore removes apps and drivers installed after the restore point. Have your BitLocker recovery key ready, because the recovery environment can ask for it.
- Turn the PC on and, when the logo appears, hold the power button until it shuts down. Do this twice; the third start opens Automatic Repair.
- Select Advanced options > Troubleshoot > Advanced options > Startup Settings > Restart, then press 4 for Safe Mode: Start Windows or a Mac in Safe Mode
- In Safe Mode, roll back or uninstall the driver or program you installed last, as in Fix 1 and Fix 2.
- If Safe Mode does not start, go back to Advanced options and run Startup Repair: Run Startup Repair
- If that fails, select System Restore and pick a point from before the first crash.

It worked if: Windows reaches the desktop in normal mode after you remove the driver, and the restart loop is gone.
If not: If the PC starts now, run the checks in Fix 6 and Fix 7. If it still loops, go to Fix 8.
Fix 5. Find a guilty program with a clean boot
30 minutes plus testingLow riskThe dump names only Windows files, or a driver of security, VPN, anti-cheat, RGB or hardware monitoring software.
These programs load their own kernel drivers at startup. A clean boot starts Windows without third-party services, so if 0xBE stops, one of them is the cause, and halving the list finds which.
A clean boot turns off non-Microsoft services and startup apps, and nothing is uninstalled. Step by step with screenshots: How to perform a clean boot in Windows

- Do the clean boot and use the PC as long as it usually takes to crash.
- If it stays stable, turn half of the services back on in
msconfigand restart. - Keep halving until the crash returns; the last group you turned on holds the culprit.
- Update that program from its maker or uninstall it, then return
msconfigto Normal startup.
Do not just turn protection off. If an antivirus or VPN driver is the cause, update it or replace it with another product, and keep Microsoft Defender on in the meantime.
It worked if: The PC is stable in a clean boot, and the crash returns only with one program's service on.
If not: If 0xBE also happens in a clean boot, go to Fix 6.
Fix 6. Test the memory and undo overclocks
30 minutesLow riskThe stop codes change from crash to crash, the PC runs an overclock or memory profile (XMP or EXPO), or nothing above helped.
Microsoft does not list RAM as a cause of 0xBE. But bad or overclocked memory can corrupt any data, including a driver's, so a test rules it out when the driver fixes fail.
- Reset every CPU, GPU and memory overclock to default in the BIOS, and turn off XMP or EXPO for the test.
- Press Win + R, type
mdschedand select Restart now and check for problems: How to test your RAM with Windows Memory Diagnostic - Wait for the test to finish and Windows to start. The result appears as a notification, or in Event Viewer under MemoryDiagnostics-Results.
- If errors are reported, test one memory stick at a time to find the bad one.
It worked if: The memory test reports no errors, and the PC is stable at default speeds.
If not: If the memory is fine, go to Fix 7. If a stick fails, replace it.
Fix 7. Repair system files and check the disk
20 to 60 minutesNo riskSFC has never run on this PC, Event Viewer shows disk errors, or the crash happens during startup.
A damaged Windows file is a rare cause of 0xBE, but these two checks rule it out before a reset. They were in the old version of this guide too, now moved after the driver fixes.
DISM fetches clean copies of Windows components, then SFC replaces damaged system files with them. Step by step with screenshots: Run DISM and SFC to repair Windows system files
In Terminal (Admin), one after the other:
DISM.exe /Online /Cleanup-Image /RestoreHealth
sfc /scannowThen check the disk for file system errors and bad sectors. chkdsk C: /f /r runs at the next restart and can take an hour on a large drive: Check a disk for errors (chkdsk)
It worked if: SFC reports no integrity violations or that it repaired them, and CHKDSK reports no bad sectors.
If not: If CHKDSK finds bad sectors, back up your files and replace the drive. If everything is clean, go to Fix 8.
Fix 8. Reset Windows and keep your files
60 minutes or moreRead the warningEvery fix above failed and the dumps keep naming only Windows files.
A reset replaces every Windows file and the whole driver store at once. If 0xBE then returns before you install any driver of your own, the cause is the hardware.
Reset PC with Keep my files keeps documents, pictures and the desktop, but removes the apps you installed. Back up your files to an external drive or cloud storage before you start: Back up your files (Windows Backup, File History, Time Machine)
- Back up your files and note the apps you will need to install again.
- Open Settings > System > Recovery (on Windows 10: Settings > Update & Security > Recovery).
- Select Reset PC, then Keep my files and Cloud download.
- After the reset, install the chipset and device drivers from your PC maker first, then apps one at a time, testing between them. Full method: Reinstall Windows without losing files

It worked if: Windows starts fresh, and the crash does not return after you add drivers and apps one by one.
If not: If 0xBE returns on a clean Windows before any extra driver, contact your PC maker or a repair shop.
Still getting 0x000000BE: what to collect and whom to ask
Microsoft treats 0xBE as a driver bug, so the help you need comes from the driver's maker. Collect the facts once and send them to whoever the dump points at.
- The three newest
.dmpfiles fromC:\Windows\Minidump, zipped. - The IMAGE_NAME and MODULE_NAME lines from
!analyze -v. - Your Windows edition and build from Settings > System > About.
- The driver version of the named device from Device Manager.
- What you were doing at each crash: idle, gaming, copying files, on a VPN, at startup.
| Where to report | When |
|---|---|
| The maker of the driver in IMAGE_NAME | The dump names a third-party driver |
| The maker of the security, VPN or anti-cheat program | The clean boot in Fix 5 pointed to that program |
| Microsoft Q&A or Feedback Hub | Only Windows files are named, after a Windows update |
| Your PC maker or a repair shop | Crashes on a clean reset, memory errors or disk errors |
How to keep 0xBE from coming back
- Get drivers from Windows Update or the device maker's own page.
- Create a restore point before you change drivers or install system tools.
- Keep 10 to 15 % of the system disk free, as Microsoft's stop code checklist advises.
- Remove the software of devices you no longer use.
- Use driver updater programs that install drivers from unknown sources.
- Run two antivirus programs at once; both load kernel drivers.
- Keep an overclock or memory profile that has never passed a stability test.
- Ignore a stop code that repeats: it names the same driver each time.
Other blue screens follow the same logic: find the driver in the dump first. Our guide to blue screen error code 133 shows it for a driver that holds the processor too long.
Frequently asked questions
What is the 0x000000BE error?
0x000000BE is the Windows stop code ATTEMPTED_WRITE_TO_READONLY_MEMORY. Microsoft's bug check reference says it is issued when a driver attempts to write to a read-only memory segment. Windows stops the PC at once because it cannot know whether the write damaged anything. The fix is to find that driver, on the stop screen or in the crash dump, and update, roll back or remove it, as in Fix 1.
Are 0xBE, 0x00000BE and 0x000000BE the same error?
Yes. They are the same hexadecimal number written with a different count of leading zeros. Event Viewer uses the long form 0x000000be, WinDbg prints be, and the Kernel-Power 41 event writes it in decimal as BugcheckCode 190. Searches for 0xbe error, bugcheck 0x000000be or the bugcheck was: 0x000000be all lead to the same stop code and the same fixes on this page.
How do I fix this blue screen if I cannot read the dump?
Work from what changed. If the crashes began after an update or a new program, undo it as in Fix 2. If they began after you plugged something in, remove it as in Fix 3. If nothing changed, a clean boot (Fix 5) shows whether a program's driver is behind it without any debugging. The Event Viewer System log can also show device errors right before each crash.
Can bad RAM cause the attempted write to readonly memory blue screen?
It can, but it is not the usual cause. Microsoft's definition names a driver, and a driver bug repeats in the same way each time. Faulty or overclocked memory tends to cause different stop codes from crash to crash. If that is what you see, or the driver fixes failed, reset any overclock and run Windows Memory Diagnostic as in Fix 6. One user on Microsoft Q&A tested RAM with no errors and the crash still came, so do not stop at the memory test.
Is 0x000000BE a sign of a virus?
Rarely. Writing to read-only kernel memory is something malware that patches Windows can do, but on a normal PC a buggy driver is far more likely. Run a full scan with Microsoft Defender if you installed software from an unknown source before the crashes began. If the scan is clean, follow the driver fixes. Keep your security software on, and update it rather than turn it off if its own driver is named.
What does www.windows.com/stopcode on the blue screen mean?
It is Microsoft's short link to its help page for stop code errors. The page gives basic steps that fit 0xBE too: remove new hardware, start in Safe Mode, check Device Manager, keep 10 to 15 % of the disk free, install updates and restore Windows. This guide follows those steps but orders them for this one stop code, with the named driver first.
Can I just ignore the 0xBE blue screen?
Once, yes. Microsoft says that in most cases the restart solves the problem and no action is needed. A crash that comes back with the same stop code, even twice an hour as in the question above, will not go away by itself, because the same driver loads every time. Each crash can lose unsaved work, so find the driver and fix it.
Does 0x000000BE happen on Windows 10 and Windows 11 alike?
Yes. The stop code and its meaning are the same on Windows 11 and Windows 10, and the fixes on this page work on both. Only the screen differs: Windows 11 24H2 and later show a black stop screen. Windows 10 left support on 14 October 2025, so a driver maker may no longer release a fix for it, which makes rolling back or removing the driver more likely.
I see 0x00000BE on Windows XP. Does this guide apply?
The meaning is the same: a driver wrote to read-only memory. On Windows XP the screen is blue text with the code and often the driver name. But Windows XP has had no support for many years and current drivers do not exist for it, so the only practical fixes are removing the named device or program, or moving to a supported Windows. This guide is written for Windows 11 and Windows 10.
Sources
- Microsoft Learn: Bug Check 0xBE ATTEMPTED_WRITE_TO_READONLY_MEMORY (learn.microsoft.com)
- Microsoft Support: Troubleshooting Windows unexpected restarts and stop code errors (support.microsoft.com)
- Microsoft Q&A: ATTEMPTED WRITE TO READONLY MEMORY bsod problem (learn.microsoft.com)
Did this fix work?
One click, no account. It tells the next reader which guides are worth their time.
Questions and experiences: fix the 0x000000BE blue screen error (ATTEMPTED_WRITE_TO_READONLY_MEMORY) in Windows
Still broken, or found a fix we did not cover? Ask here: members and our editors answer. Reading is open; writing needs a free account.
…