Join our Newsletter — 33% off our NHI Course
Home› Guides› Kernel Mode for Beginners: Why One Security Update…
Guide Endpoint Security

Kernel Mode for Beginners: Why One Security Update Could Crash Millions of PCs

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 2 December 2026 11 min read
On this page

Kernel mode is the most trusted level a computer runs code at; user mode is a safer level for apps.

This guide is for anyone who remembers the July 2024 blue screens and wants to know why one update caused so much trouble. You do not need to write code to be affected: if your organisation uses security tools on its computers, some parts of those tools probably run in kernel mode.

In short

  • Computers keep two main levels of trust: user mode for apps and kernel mode for the core of the system.
  • If an app crashes in user mode, the damage usually stays inside that app. If kernel code crashes, the whole system can stop.
  • Many security tools run partly in kernel mode, because it lets them see and guard the whole computer.
  • In July 2024, a faulty update to one such tool crashed about 8.5 million Windows devices [5]. Makers now say they stage updates more carefully.

What you will learn

  • Explain the difference between kernel mode and user mode.
  • Describe why security tools often run in kernel mode.
  • Explain how the July 2024 outage happened, in plain words.
  • Ask suppliers how they test and roll out updates.
Core of the system (kernel)
the central part of the operating system that controls memory, devices and running programs.
Hardware helper (driver)
a piece of software that lets the system talk to a device, or adds deep features such as security checks.
Small group first (staged rollout)
sending an update to a few computers before all of them.

What is kernel mode?

Think of a theatre. The audience sits in the seats, and staff run the lights and stage from a locked control room. A problem in one seat stays in that seat. A problem in the control room can stop the whole show.

A computer works in a similar way. Its processor runs code in two main modes [1]. Everyday apps run in user mode, the seats. Each app gets its own private space, so if one app crashes, others and the system usually carry on [1].

The core of the system runs in kernel mode, the control room. All kernel-mode code shares one space, so a driver is not walled off from the rest. If a kernel-mode driver crashes, the whole operating system crashes [1].

Where the comparison stops working: a theatre has one control room. A computer's processor can have several privilege levels, often drawn as rings, numbered from most trusted to least. Windows uses only two of them [2].

Why does it matter?

Code in kernel mode is powerful. That power helps security tools, but a mistake there can stop the computer.

If you manage IT for a team

What could happen: one bad update to a tool with kernel parts stops every laptop at once.

Check this: ask whether updates reach a small test group before everyone.

Next: Security Agent Update Staged Rollout Guide

If you run a small business

What could happen: your tills, booking system or laptops stop until someone fixes each one by hand.

Check this: keep a printed recovery plan and the recovery keys somewhere you can reach offline.

Next: EDR, XDR and MDR for Beginners

If you are new to security work

What could happen: an attacker who reaches kernel mode can hide from tools and switch them off.

Check this: learn which of your tools run in kernel mode and why.

Next: How Operating Systems Work for Beginners

What does it look like?

Here is a made-up note from a supplier about a security tool's update. It shows what to look for.

Example only. All values are made up.

EXAMPLE Shield agent, update notice (FAKE)
Parts:     kernel driver + user-mode app            (1)
Update:    detection rules file 0000, today 09:00    (2)
Rollout:   all customers at once                     (3)
Your control:  none for rules files                  (4)
Help page: status.example.invalid                    (5)
  1. The tool has a part in kernel mode and a part in user mode.
  2. A content file of detection rules, read by the kernel part.
  3. Every computer gets it at the same time.
  4. In a real file, this line would say whether you can delay or stage updates.
  5. Where the supplier posts news if something goes wrong.

Why this is risky: if the rules file has a fault, every computer may read it at once, inside kernel mode.

The safer way: ask for updates that go to small groups first, and for a setting that lets you choose the pace.

How does it work?

Here is how a security tool uses kernel mode, and how the July 2024 outage unfolded.

  1. The tool puts a part in the kernel. Security makers use kernel drivers to see the whole system, to start early before other apps, and to resist being switched off [3]. Microsoft says these benefits come at the cost of resilience [3].
  2. The maker sends new detection content. On 19 July 2024 at 04:09 UTC, CrowdStrike sent a content update for its Falcon sensor. It said the file was configuration data, not new program code [4].
  3. The kernel part reads the content. A fault in the file caused an out-of-bounds memory read, meaning the code read past the end of the data it expected [4]. Microsoft's analysis found the error was in a CrowdStrike kernel driver [3].
  4. Windows stops to protect itself. The error could not be handled, so Windows crashed with a blue screen [4]. Mac and Linux computers were not affected [4].
  5. The fix has to reach each computer. CrowdStrike reverted the file at 05:27 UTC the same day [4]. Microsoft estimated about 8.5 million Windows devices were affected, under one percent of all Windows machines [5].
Diagram titled Two levels of trust inside a computer. A large grey circle labelled User mode holds apps such as a browser, email and games, with a note that each app has its own space. Inside it, a dark inner circle labelled Kernel mode holds the core of the system, drivers and some security tool parts. A green box linked to the outer circle reads: If an app crashes, usually only that app closes and the rest of the computer keeps running. A dark box linked to the inner circle reads: If kernel code crashes, the whole system can stop, as in July 2024, when Windows PCs showed a blue error screen. A note says processors can have more levels, often drawn as rings.
Figure 1. A crash in user mode usually stays in one app. A crash in kernel mode can stop the whole computer.

Since then, changes have followed. CrowdStrike said it would stage content updates, starting with a small test group, and give customers more control over timing [4]. Microsoft has urged security makers to keep only small sensors in the kernel and move other work to user mode [3]. In June 2025 it said it would let security partners start building tools that run outside the Windows kernel. It also said their updates must roll out gradually and be monitored [6].

A worked example

Kaia Engel runs IT for a small accountancy firm with 30 laptops. The firm uses a well-known security tool on every machine. After reading about the July 2024 outage, she wants to know if the same thing could happen to her firm.

She starts by asking the supplier a few plain questions. Does the tool have a part that runs in kernel mode? The answer is yes, a small driver. Do updates go to everyone at once? The supplier says customers can now choose update groups.

Kaia sets up three groups. The first is her own laptop and one spare. The second is five staff who are happy to test. The third is everyone else, including the partners' laptops.

She sets updates to reach the first group straight away, the second a day later, and the rest after that. She knows this delay has a cost: new protection reaches most staff a little later. She agrees the trade-off with the partners, and keeps urgent fixes on a faster path.

Next, she checks recovery. A laptop that will not start may need its disk recovery key before it can be fixed. Kaia makes sure each laptop's disk recovery key is stored safely and can be reached even if laptops will not start. She prints a short recovery sheet and keeps it in the office safe.

Finally, she adds the supplier's status page to her bookmarks and signs up for its alerts. If something goes wrong, she wants to hear it from the supplier first.

Myths and mistakes

What people thinkWhat is true
The July 2024 outage was a cyber attack.The maker's own report describes a faulty content update sent during normal work.
It was a Windows update that went wrong.It was an update to a third-party security tool that runs on Windows.
Security tools should never run in kernel mode.Kernel access helps them see and guard the system. The aim is to keep that part small and well tested.
Only new program code is risky.A content or settings file can also cause a crash if the code that reads it has a fault.
Delaying every security update is safest.Delay leaves gaps in protection. Small test groups first, then everyone, balances the two.

What can I do this week?

  • List the security tools on your computers and ask which ones have kernel parts.
  • Ask each supplier how they test and stage their updates.
  • Set up a small test group of computers that gets updates first, if your tools allow it.
  • Check that disk recovery keys are stored where you can reach them offline.
  • Bookmark each supplier's status page.

Checklist

  • I know which tools on our computers run partly in kernel mode.
  • Each supplier has told us how they test and stage updates.
  • We use update groups, with a small test group first.
  • Urgent security fixes still have a fast path.
  • Recovery keys can be reached when computers will not start.
  • We have a printed recovery plan.
  • We know where each supplier posts outage news.

Common questions

Why do security tools need kernel mode at all?

Because it lets them see the whole computer. Microsoft says makers use kernel drivers to watch everything, start early before other apps, and resist being turned off by attackers. The trade-off is that a fault in that code can crash the whole machine instead of one app.

Was the July 2024 outage a hack?

No. CrowdStrike's own report says it was a faulty content update for its Falcon sensor, sent during normal work. The file caused an error that Windows could not handle, so computers crashed. The maker reverted the file about 80 minutes later, but computers that had already crashed still needed fixing.

Did it affect Mac and Linux computers?

No. CrowdStrike said Mac and Linux computers were not affected by that update. The fault was in how the Windows version of the sensor read the file. Staged updates are still a good idea on every system, because any update can contain a mistake.

Will security tools move out of the kernel?

Partly, over time. In June 2025 Microsoft said it would give some security partners early access to a way of building tools that run outside the Windows kernel. How fast each tool moves depends on its maker, so ask your supplier for its plans.

What is a staged rollout?

A staged rollout sends an update to a small group of computers first. If nothing goes wrong, it then goes to larger groups. It means a faulty update is more likely to be caught on a few machines, rather than all of them at the same time.

Where next?

Ready for the detail? Read the practitioner guide: Kernel-Mode vs User-Mode EDR. It goes further into how each design holds up against attacks, how macOS and Linux handle security tools, and how to harden agent rollouts.

Also useful:

Related NHI Mgmt Group resources: EDR Guide, How Operating Systems Work for Beginners and Non-Human Identities for Beginners.

Key terms

Kernel
The core part of an operating system that manages memory, processors and devices for apps.
Kernel mode
The most trusted level, where drivers and core system parts run.
User mode
A restricted level where apps run outside the most trusted part of the system.
Device driver
Software that lets the operating system work with a device or add low-level features.
Blue Screen of Death
A Windows stop error that halts the system and usually restarts it.
Staged rollout
Releasing an update to small groups before everyone, so problems show up early.
Endpoint detection and response
Security software that watches each device for suspicious activity and helps respond.

Sources and further reading

  1. Microsoft, "User mode and kernel mode", Microsoft Learn (Windows drivers). https://learn.microsoft.com/en-us/windows-hardware/drivers/gettingstarted/user-mode-and-kernel-mode (accessed 2 Dec 2026).
  2. Microsoft, "Why is kernel32.dll running in user mode and not kernel mode, like its name implies?", The Old New Thing, 26 September 2023. https://devblogs.microsoft.com/oldnewthing/20230926-00/?p=108824 (accessed 2 Dec 2026).
  3. Microsoft Security, "Windows Security best practices for integrating and managing security tools", 27 July 2024. https://www.microsoft.com/en-us/security/blog/2024/07/27/windows-security-best-practices-for-integrating-and-managing-security-tools/ (accessed 2 Dec 2026).
  4. CrowdStrike, "Falcon Content Update Preliminary Post Incident Report", July 2024. https://www.crowdstrike.com/en-us/blog/falcon-content-update-preliminary-post-incident-report/ (accessed 2 Dec 2026).
  5. Microsoft, "Helping our customers through the CrowdStrike outage", Official Microsoft Blog, 20 July 2024. https://blogs.microsoft.com/blog/2024/07/20/helping-our-customers-through-the-crowdstrike-outage/ (accessed 2 Dec 2026).
  6. Microsoft, "The Windows Resiliency Initiative: Building resilience for a future-ready enterprise", Windows Experience Blog, 26 June 2025. https://blogs.windows.com/windowsexperience/2025/06/26/the-windows-resiliency-initiative-building-resilience-for-a-future-ready-enterprise (accessed 2 Dec 2026).

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.