How To Fix ATTEMPTED_WRITE_TO_READONLY_MEMORY Blue Screen
ATTEMPTED_WRITE_TO_READONLY_MEMORY is a Windows blue screen with the stop code 0xBE.
Microsoft says it is issued when a driver tries to write to a read-only memory segment.
The fix is to find that driver, update or roll it back, and repair Windows if the cause is not clear.
Table of Contents
- Quick answer
- What the error means
- What the four parameters show
- Find the driver named on the screen
- Remove new hardware first
- Start in Safe Mode if the PC will not stay up
- Update or roll back the driver
- Install Windows updates
- Repair system files with DISM and SFC
- Other checks Microsoft recommends
- Be careful with Driver Verifier
- Restore Windows if the cause stays unclear
- When to contact the device or app maker
- For IT staff: read the crash dump
- Official sources
- More Windows error guides
Quick answer
The table gives the fastest route for each situation.
| Situation | What to do |
|---|---|
| The blue screen names a file | Update, roll back or remove that driver |
| You added hardware before it started | Shut down, remove it and restart |
| The PC restarts before you can work | Start in Safe Mode and use Device Manager |
| It began after a Windows or driver update | Use System Restore or uninstall the update |
| Nothing points to one driver | Run DISM and SFC, then check updates and firmware |
What the error means
The bug check has the value 0x000000BE.
Microsoft describes it as an error issued if a driver attempts to write to a read-only memory segment.
Windows protects some memory so that it can be read but not changed, and a write to that area stops the system to prevent damage.
Microsoft’s page is written for programmers, so the steps below combine it with the company’s general guidance for customers.
What the four parameters show
The crash screen and dump file record four values.
| Parameter | Meaning |
|---|---|
| 1 | Virtual address of the attempted write |
| 2 | Contents of the page table entry (PTE) |
| 3 | Reserved |
| 4 | Reserved |
These values mainly help a developer, but they confirm that a program running in kernel mode made the bad write.
Find the driver named on the screen
Microsoft says that if the responsible driver can be identified, its name is printed on the blue screen.
The same name is stored in memory at the location called KiBugCheckDriver.
Photograph the screen or write down the file name, because it tells you which device or program to fix.
If no name appears, the later steps on Windows Update, DISM and System Restore still apply.
Remove new hardware first
Microsoft’s blue screen guide says to shut down the PC and remove any hardware you added just before the error began.
Restart and see whether the stop code returns.
If it does not, check the maker’s site for a driver that supports your version of Windows before you reconnect the device.
Start in Safe Mode if the PC will not stay up
You can run the remaining steps from Safe Mode, which loads only a limited set of files and drivers.
- Open Settings, then System, then Recovery.
- Next to Advanced startup, select Restart now.
- Select Troubleshoot, then Advanced options, then Startup Settings, then Restart.
- Press 4 or F4 for Safe Mode, or 5 or F5 for Safe Mode with Networking.
If you cannot reach Settings, Microsoft says you can interrupt startup by holding the power button during boot twice, and the third start shows the Automatic Repair screen.
Our guide to starting Windows 11 in Safe Mode covers the same entry points.
Update or roll back the driver
Microsoft’s Device Manager page lists these steps for an automatic update.
- Right-click Start and select Device Manager.
- Expand the device category and right-click the device.
- Select Update driver, then Search automatically for updated driver software.
- If nothing is found, select the option to search Windows Update, then select Close.
If the error began right after a driver changed, roll it back instead.
- Right-click the device and select Properties.
- Open the Driver tab and select Roll Back Driver.
- Pick a reason, select Yes and restart if asked.
Microsoft warns against drivers from sites other than the device maker’s own.
Install Windows updates
Microsoft lists Windows Update as a standard step for stop codes.
Open Start, then Settings, then Windows Update, and select Check for updates.
Microsoft’s advanced stop code guide also says to install the latest cumulative updates.
Our guide to optional updates in Windows 11 shows where driver updates appear.
Repair system files with DISM and SFC
Microsoft’s System File Checker page says to run DISM first because it supplies the files used for repairs.
- Type cmd in search, right-click Command Prompt and select Run as administrator.
- Run DISM.exe /Online /Cleanup-image /Restorehealth and wait for it to finish.
- Run sfc /scannow and keep the window open until it reaches 100%.
Our SFC and DISM guide explains the result messages.
Other checks Microsoft recommends
Microsoft’s stop error guidance lists several checks that apply to any bug check code.
| Check | What Microsoft says |
|---|---|
| BIOS and firmware | Make sure they are up to date |
| Hardware and memory | Run any relevant hardware and memory tests |
| Malware | Run Microsoft Safety Scanner or another scanner that checks the MBR |
| Disk space | Keep about 10 to 15 percent free |
Be careful with Driver Verifier
Driver Verifier is a Microsoft tool that stress-tests drivers to find faulty ones.
Microsoft warns that it uses a lot of CPU, can slow the computer and may cause extra crashes.
It advises against verifying all drivers at once and suggests groups of 10 to 20 at most.
If the PC cannot reach the desktop because of it, start in Safe Mode, where the tool does not run.
Restore Windows if the cause stays unclear
Microsoft says to use a restore point or another recovery option when earlier steps fail.
- System Restore rolls back system files and settings, not personal files.
- Startup Repair is under Troubleshoot, then Advanced options.
- Uninstall updates is in the same menu and leaves your files and apps alone.
- Reset this PC lets you keep your files or remove everything.
Back up your files first, and have your BitLocker recovery key ready if the drive is encrypted.
When to contact the device or app maker
Microsoft’s advanced guidance says to contact the vendor for updated drivers and applications when the error message names a specific driver.
The same advice applies after any software or hardware change you made before the crashes started.
If the maker has no newer driver, Microsoft recommends disabling the related service, and removing a driver that was recently added.
Keep the stop code and the file name from the blue screen ready, because the support team will ask for both.
For IT staff: read the crash dump
Microsoft’s advanced steps use the memory dump to name the faulting driver.
- Open Advanced system settings, then under Startup and Recovery select Settings and set Write debugging information to Automatic memory dump.
- After the next crash, copy MEMORY.DMP from the Windows folder to another computer.
- Open it in WinDbg from the Windows SDK, run !analyze -v and review the STACK_TEXT section.
Small dumps are saved in the Minidump folder inside the Windows folder.
Official sources
This guide draws on Microsoft pages only.
- Bug Check 0xBE ATTEMPTED_WRITE_TO_READONLY_MEMORY
- Troubleshooting Windows unexpected restarts and stop code errors
- Stop error troubleshooting guidance
More Windows error guides
- How To Fix MEMORY_MANAGEMENT Blue Screen (2027)
- How To Fix IO1_INITIALIZATION_FAILED Blue Screen
- How To Fix MACHINE_CHECK_EXCEPTION Blue Screen
- How To Fix APC_INDEX_MISMATCH Blue Screen
- How To Fix KERNEL_MODE_HEAP_CORRUPTION Blue Screen
- How To Fix VIDEO_SCHEDULER_INTERNAL_ERROR Blue Screen
See all: Windows 11 Guides