TechBuzzPro

Fix Attempted Write to Read‑Only Memory BSOD

· 6 min read · Apps & Browsers

In this article
  1. What You'll Need
  2. Step‑by‑Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can fix the “ATTEMPTED_WRITE_TO_READONLY_MEMORY” blue screen by updating or rolling back drivers, repairing system files, and checking hardware components.

What You'll Need

  • A Windows PC that can boot into Safe Mode or the recovery environment
  • Administrator privileges
  • Access to an internet connection for driver updates
  • A USB drive (optional, for creating a recovery media)
  • Basic familiarity with Command Prompt and Device Manager

Step‑by‑Step

  1. Back up important data. Before making any changes, copy critical files to an external drive or cloud storage. The steps below do not erase user data, but a backup protects against accidental loss.
  2. Enter Safe Mode. Restart the computer and press F8 (or hold Shift while clicking Restart) to open the recovery menu. Choose Troubleshoot > Advanced options > Startup Settings > Restart, then select option 4 (Enable Safe Mode). Safe Mode loads only essential drivers, making it easier to isolate the culprit.
  3. Uninstall the most recent driver. Open Device Manager (right‑click the Start button, select Device Manager). Expand categories such as “Display adapters”, “Network adapters”, and “Sound, video and game controllers”. Right‑click any driver that was installed or updated within the last 7 days and choose Uninstall device. Check the box that says “Delete the driver software for this device” if you plan to reinstall a known‑good version.
  4. Reinstall a stable driver version. Visit the hardware manufacturer’s official website (e.g., NVIDIA, AMD, Intel, Realtek) and download the latest stable driver for your model. Run the installer and follow the prompts. If the latest driver re‑introduces the problem, repeat step 3 and install the previous version instead.
  5. Run System File Checker. Open an elevated Command Prompt (right‑click Start, choose Windows Terminal (Admin) or Command Prompt (Admin)). Type sfc /scannow and press Enter. The tool scans protected system files and automatically replaces corrupted copies. Wait for the process to finish (usually 10‑15 minutes).
  6. Repair the component store with DISM. If sfc reports errors it cannot fix, run the Deployment Image Servicing and Management tool: DISM /Online /Cleanup‑Image /RestoreHealth. This command downloads any missing system components from Windows Update and repairs the image.
  7. Check the hard drive for errors. In the same elevated Command Prompt, execute chkdsk /f /r C:. You will be prompted to schedule the scan for the next reboot; type Y and restart. The scan verifies sector integrity and fixes file‑system inconsistencies that can trigger memory‑write violations.
  8. Test RAM with Windows Memory Diagnostic. Press Win + R, type mdsched.exe, and choose “Restart now and check for problems”. The tool runs a series of read/write tests; any reported errors indicate faulty memory that must be replaced.
  9. Update the BIOS/UEFI firmware. An outdated BIOS can mismanage memory protection. Visit the motherboard or system‑integrator’s support page, download the latest BIOS for your exact model, and follow the vendor’s flashing instructions precisely. Do not power off the PC during a BIOS update.
  10. Apply pending Windows updates. Open Settings > Update & Security > Windows Update and click “Check for updates”. Install all critical and optional updates, then restart. Many BSOD fixes are delivered through cumulative updates that address driver‑related bugs.
  11. Disable overclocking. If you have manually increased CPU, GPU, or RAM frequencies in the BIOS or a tuning utility, revert to the manufacturer’s default clock speeds. Overclocking can cause write‑protection violations on certain memory regions.
  12. Perform a clean boot. Press Win + R, type msconfig, and go to the Services tab. Check “Hide all Microsoft services”, then click “Disable all”. Switch to the Startup tab and open Task Manager; disable all startup items. Restart the PC. If the BSOD disappears, re‑enable services one by one to locate the conflicting software.
  13. Consider a system restore. If the problem began after a specific change, open Control Panel > Recovery > Open System Restore, select a restore point dated before the issue, and follow the wizard. This rolls back system files and registry settings without affecting personal files.
  14. Reinstall Windows as a last resort. If none of the above steps resolve the error, back up all data, create a Windows 10/11 installation USB with the Media Creation Tool, boot from it, and choose “Custom: Install Windows only (advanced)”. Delete the existing Windows partition and install a fresh copy. This eliminates any lingering driver or registry corruption.

Common Mistakes

  • Skipping the backup step and then encountering data loss during a clean install.
  • Downloading drivers from unofficial third‑party sites; these may be outdated or bundled with malware.
  • Running sfc /scannow without first fixing disk errors; a corrupted file system can cause false positives.
  • Flashing the BIOS with the wrong file; this can brick the motherboard.
  • Leaving overclocking settings active after a driver rollback, which re‑introduces instability.

Tips

  • Keep a copy of the current driver version before uninstalling it; you can roll back via Device Manager if needed.
  • Use the Event Viewer (Windows Logs > System) to locate the exact driver name that triggered the BSOD; look for entries with the BugCheckCode.
  • If the system boots but the BSOD reappears sporadically, enable “Driver Verifier” (type verifier in Run) to stress test drivers and pinpoint the faulty one.
  • When using DISM, ensure the PC is connected to the internet; otherwise the tool cannot retrieve missing components.
  • Document any BIOS settings you change so you can revert them if the problem persists.

Troubleshooting

If the blue screen still occurs after completing the steps above, follow this escalation path:

  1. Analyze the crash dump. Enable “Small memory dump” in System Properties > Advanced > Startup and Recovery. After a crash, the file C:\Windows\Minidump\*.dmp can be opened with the free WinDbg Preview app from the Microsoft Store. Look for the driver name listed under “Probably caused by”.
  2. Search the driver name online. Official forums or the vendor’s support site often list known incompatibilities with specific Windows builds.
  3. Temporarily disable third‑party antivirus or security suites. Some security software injects drivers that conflict with Windows memory protection.
  4. Swap RAM modules. If you have multiple sticks, test the system with one module at a time. Faulty RAM can masquerade as a write‑to‑readonly‑memory error.
  5. Contact the hardware manufacturer. Provide them with the crash dump and details of the steps you have already taken; they may have a firmware update not yet publicly released.

Frequently Asked Questions

What does the “ATTEMPTED_WRITE_TO_READONLY_MEMORY” message mean?

The kernel tried to write data to a memory region that is marked as read‑only. This usually indicates a buggy driver or corrupted system component.

Can a Windows update cause this BSOD?

Yes. Occasionally a cumulative update includes a new driver that is incompatible with certain hardware. Rolling back the driver or waiting for a hotfix resolves the issue.

Is it safe to run the BIOS update from within Windows?

Only if the manufacturer explicitly provides a Windows‑based flashing utility. Otherwise create a bootable USB and flash from the BIOS menu to avoid power‑loss problems.

Do I need to reinstall all my programs after a clean Windows install?

All applications will need to be reinstalled because a clean install removes the Program Files directory and registry entries.

Will disabling Driver Verifier prevent the BSOD?

Driver Verifier is a diagnostic tool; disabling it will stop the extra stress tests but does not fix the underlying driver bug. Use it only for debugging.

Can a failing SSD trigger this error?

A failing SSD can corrupt system files, leading to memory‑write violations. Running chkdsk and checking SMART health in the BIOS helps confirm SSD health.