Skip to content

How-ToOS

How to Fix ATTEMPTED_WRITE_TO_READONLY_MEMORY on Windows 11

ATTEMPTED_WRITE_TO_READONLY_MEMORY (0xBE) means a driver tried to write to protected memory. Here's how to find the driver from the blue screen or minidump, update, roll back or remove it, use safe mode and Driver Verifier, and rule out RAM, system files and malware.

By , Systems & Technical Editor

5 min read

How to Fix ATTEMPTED_WRITE_TO_READONLY_MEMORY on Windows 11

The ATTEMPTED_WRITE_TO_READONLY_MEMORY blue screen sounds like a RAM fault, but Microsoft's description points somewhere else. Its bug check reference says stop code 0xBE "is issued if a driver attempts to write to a read-only memory segment". In other words, a piece of driver software tried to change memory that Windows had marked as off-limits, and Windows stopped the PC rather than let it carry on. The steps below follow Microsoft's own documentation, credited at the end, and we've marked where something is our own advice.

Because this error is about a driver misbehaving, the fix is usually to find that driver and update, roll back or remove it. Start with the first steps, which are quick and safe.

Step 1: Note the driver name on the blue screen

Microsoft's bug check page says: "If the driver responsible for the error can be identified, its name is printed on the blue screen". Look for a file name ending in .sys under the stop code, and write it down or take a photo with your phone. Microsoft's general stop code page describes this as the "module name of the code that was being executed at the time the problem occurred".

The PC restarts quickly, so you might miss it. In that case, use the crash dump instead (Step 5), or check Reliability Monitor, which lists recent crashes by date.

Once you have a file name, search for it to find out which product it belongs to. Our view: names that start with nv are often NVIDIA graphics files and amd or ati files often belong to AMD, but third-party antivirus, VPN, RGB lighting, fan control and anti-cheat tools also install drivers, so check rather than guess.

Step 2: Undo recent changes

Microsoft's basic advice for any repeated stop code begins with hardware: "If you added new hardware to your PC before the error, shut down your PC, remove the hardware, and try restarting." The same logic applies to software. If the crashes started after you installed a new app, a new driver or a Windows update, that's your most likely suspect.

If Windows crashes before you can do anything, start it in safe mode. Microsoft's startup settings page says to go to Troubleshoot > Advanced options > Startup Settings > Restart in the recovery environment, then pick Safe Mode from the list. Microsoft says safe mode starts Windows "using a limited set of files and drivers"; our view is that a third-party driver causing the crash often won't load there, which gives you a chance to remove it. You'll need your BitLocker key if the drive is encrypted; see how to find your BitLocker recovery key.

Step 3: Update, roll back or remove the driver

If you know which driver is involved, Microsoft's advanced stop code guide says to contact the hardware or software vendor for an update when "The error message indicates that a specific driver is causing the problem", and to consider "rolling back changes or reverting to the last-known working state".

  • Update it. Get the latest driver from the hardware maker's website, or use Device Manager. Microsoft's stop code page says to look for devices marked with an exclamation point and choose Update driver; "If updating the driver doesn't help, try disabling or uninstalling the device." Our guide to updating drivers in Device Manager walks through it.

  • Roll it back. If the crashes began after a driver update, go back to the previous version. For graphics cards, see how to roll back a graphics driver, or do a clean reinstall with DDU.

  • Remove the app. If the driver belongs to a utility rather than hardware, such as third-party antivirus or an RGB or fan control app, uninstall that app and see if the crashes stop. Microsoft says that if there's no update from the maker, it recommends disabling the related service.

Step 4: Update Windows, BIOS and firmware

Microsoft's checklist for stop errors includes installing the latest Windows updates and making sure "that the BIOS and firmware are up-to-date". Check Settings > Windows Update, then visit your motherboard or laptop maker's support page for BIOS updates. Our view: read the maker's BIOS update instructions carefully and don't update the BIOS during a period of frequent crashes unless the maker's notes mention a stability fix, because a crash during a BIOS flash can cause bigger problems.

Step 5: Read the crash dump to find the driver

If the blue screen didn't show a driver name, the crash dump probably holds it. Microsoft's advanced guide says small memory dumps are saved to %SystemRoot%\Minidump (usually C:\Windows\Minidump), and a full or automatic dump goes to %SystemRoot%\MEMORY.DMP.

  • For a quick look, a free viewer such as BlueScreenView or WhoCrashed can show which driver was involved. See our best free BSOD crash analysis tools.

  • For a more reliable answer, open the dump in WinDbg and run the analysis command. Microsoft's bug check page says the !analyze debug extension "displays information about the bug check and can be helpful in determining the root cause". Our guide to analysing a BSOD minidump with WinDbg covers the steps.

Step 6: Use Driver Verifier if you still can't find it

Microsoft estimates "that about 75 percent of all stop errors are caused by faulty drivers", and its Driver Verifier tool is designed to catch them by putting drivers under stress. It isn't something to run casually. Microsoft warns that Driver Verifier "consumes lots of CPU and can slow down the computer significantly" and that you may see additional crashes.

Microsoft's guidelines are to test "suspicious" drivers first (for example, recently updated ones), and not to verify every driver at once. If the PC then can't reach the desktop, you can switch Driver Verifier off by starting in safe mode, because the tool can't run there. Our Driver Verifier guide explains how to set it up and turn it off again. Create a restore point first; our guide to using System Restore shows how.

Step 7: Rule out memory, files and malware

A driver is the usual cause, but Microsoft's checklist also says to "Run any relevant hardware and memory tests" and to run Microsoft Safety Scanner or another virus scanner. Worth doing if the steps above don't help:

  • Test your RAM with MemTest86. Our advice: if you've enabled XMP or EXPO, also try the default memory settings in the BIOS.

  • Repair Windows system files with DISM and sfc /scannow. Microsoft says the sfc command "will scan all protected system files and replace corrupted files with a cached copy". See how to repair Windows 11 with DISM and SFC.

  • Scan for malware with Microsoft Safety Scanner.

If nothing else works, Microsoft's recovery options include System Restore and Reset this PC, which reinstalls Windows and lets you "choose to keep your personal files or remove everything". See how to reset Windows 11.

The bottom line

ATTEMPTED_WRITE_TO_READONLY_MEMORY (0xBE) means a driver tried to write to memory Windows had made read-only, so the fix is usually to find that driver. Note the .sys file named on the blue screen or in the minidump, then update, roll back or uninstall the driver or the app that installed it, using safe mode if Windows won't stay up. Update Windows and the BIOS, and if the culprit still isn't clear, use Driver Verifier carefully, test your RAM and repair system files before resetting Windows.

Sources

  1. 01Bug Check 0xBE: ATTEMPTED_WRITE_TO_READONLY_MEMORY (Microsoft Learn)
  2. 02Troubleshooting Windows unexpected restarts and stop code errors (Microsoft Support)
  3. 03Advanced troubleshooting for stop code errors (Microsoft Learn)
  4. 04Windows Startup Settings (Microsoft Support)
  5. 05Use the System File Checker tool to repair missing or corrupted system files (Microsoft Support)
  6. 06Recovery options in Windows (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 Fix UNMOUNTABLE_BOOT_VOLUME on Windows 11

How-To

How to Fix UNMOUNTABLE_BOOT_VOLUME on Windows 11

UNMOUNTABLE_BOOT_VOLUME (0xED) means Windows couldn't mount the drive it boots from. Here's how to check the drive and its connection, get into the recovery environment, and run Microsoft's fixes: Startup Repair, chkdsk /r and bootrec, plus what to do if the drive itself has failed.

Marcus Thorne5 min

Best Free CD Ripping Software for Windows (2026)

Best Picks

Best Free CD Ripping Software for Windows (2026)

The best free CD ripping software for Windows, ranked: Exact Audio Copy, fre:ac, CUERipper, foobar2000 and MusicBee. We explain which ones verify rips with AccurateRip, which are easiest, and who each one suits.

Hannah Vance5 min

How to Rip CDs to FLAC on Windows with Exact Audio Copy

How-To

How to Rip CDs to FLAC on Windows with Exact Audio Copy

Exact Audio Copy is a free Windows CD ripper built for bit-perfect copies. We show how to set it up, detect your drive's features, calibrate it with AccurateRip, rip to lossless FLAC, check the results and fix common problems.

Marcus Thorne7 min