FOUNDING PRICING · 40% OFFfor the first 1,000 members · from ₹95/month
OutageCrowdStrike11 min read

CrowdStrike 2024 Outage Explained: One Bad Read in the Kernel

How a CrowdStrike Falcon content update crashed 8.5 million Windows machines in July 2024, why a kernel fault means a boot loop, and what was changed.

ShareXLinkedInWhatsApp
A large overhead display in a concourse at Washington Dulles Airport showing the Windows blue error screen above signs for gates B62 to B81, on 19 July 2024.
A large overhead display in a concourse at Washington Dulles Airport showing the Windows blue error screen above signs for gates B62 to B81, on 19 July 2024. Photo: reivax, CC BY-SA 2.0, via Wikimedia Commons.

On 19 July 2024, CrowdStrike pushed a routine content update to its Falcon security sensor on Windows. The update made a kernel-mode driver read one element past the end of an array, and Microsoft later estimated that 8.5 million Windows devices crashed as a result. The bug itself is the first one every C programmer is warned about. The interesting part is where it ran, because that explains the blue screens, the boot loops and the days of manual repair.

The update was live for 78 minutes. The clean-up took far longer, and the reasons are all operating systems fundamentals.

A diagram showing Channel File 291 passing the Content Validator, the Content Interpreter in kernel mode reading index 20 of a 20-element array, and the resulting cycle of page fault, blue screen, restart and early driver load.

What broke for users, and when

Windows machines running Falcon sensor version 7.11 or later that were online and received the update showed a blue screen and then restarted, over and over. Microsoft's support article describes the symptom as stop code 0x50 or 0x7E followed by a continual restarting state. Mac and Linux hosts were not affected, because they do not use the file in question.

Microsoft put the count at 8.5 million devices, which it said was less than one percent of all Windows machines. Reporting on the day described airline check-in systems failing in many countries, a ground stop of flights in the United States, trouble at banks and broadcasters, and some emergency call centres in the US not working properly. CrowdStrike's chief executive said publicly that this was a defect in a content update and not a cyberattack.

Advertising screens on pillars in a baggage claim hall at LaGuardia Airport, each showing the Windows blue error screen, with empty baggage belts behind them.
Blue screens on the display pillars in baggage claim at LaGuardia Airport, New York, on 19 July 2024. Photo: Smishra1, CC BY-SA 4.0, via Wikimedia Commons.

All times in the table are UTC and come from CrowdStrike's own reports.

WhenWhat happened
28 Feb 2024Sensor 7.11 becomes generally available. It adds a new "IPC Template Type" for detecting attacks that abuse named pipes.
5 Mar 2024The Template Type passes a stress test. The first IPC Template Instance ships to production in Channel File 291.
8 to 24 Apr 2024Three more IPC Template Instances are deployed. All behave as expected.
19 Jul 2024, 04:09Two more IPC Template Instances are deployed in a new version of Channel File 291. Machines that load it crash.
19 Jul 2024, 05:27CrowdStrike reverts the update. Machines that connect after this point are not affected.
29 Jul 2024CrowdStrike reports that about 99% of Windows sensors are back online.
6 Aug 2024CrowdStrike publishes its full root cause analysis.

How the Falcon sensor is put together

To follow the root cause you need a few terms from CrowdStrike's reports.

Sensor Content is code. It ships as part of a sensor release, goes through the full release testing process, and includes things called Template Types. A Template Type is a capability compiled into the sensor: a fixed set of input fields about some kind of system activity that detection rules can match against.

Rapid Response Content is configuration, not code. It is how CrowdStrike reacts to new threats without shipping a new sensor. It consists of Template Instances, each of which fills in matching criteria for the fields of one Template Type. Think of a Template Type as a function signature and a Template Instance as a set of regular expressions to apply to its arguments.

Template Instances travel to machines in Channel Files. Channel File 291 carries the instances for the IPC Template Type. These files sit in C:\Windows\System32\drivers\CrowdStrike\ and have a .sys extension, but CrowdStrike is explicit that they are data files and not kernel drivers.

On the machine, the Content Interpreter, part of the sensor's C++ code, evaluates the instances against live activity. Before a channel file is published, a Content Validator checks each channel file against the Template Type's definition.

The crucial fact is where the interpreter runs. The crash dump in CrowdStrike's analysis names csagent.sys, a file system filter driver, as the faulting module. That is kernel-mode code.

The root cause: 21 fields defined, 20 supplied

The IPC Template Type had two descriptions that disagreed. Its definition file said it had 21 input fields. The sensor code that actually gathered the data and called the interpreter supplied only 20.

Nobody noticed, for a specific reason. Every Template Instance used in testing, and every one shipped between March and April, used a wildcard for the 21st field. A wildcard matches anything, so the interpreter never needed to look at that field's value. The mismatch was a latent bug: present, but on a path that never executed.

On 19 July, one of the two new instances put a real, non-wildcard criterion in field 21. Now the interpreter had to fetch the 21st input to compare it. The inputs were held as an array of 20 pointers, so it read the slot after the last valid one. In spirit, the failing logic looked like this (an illustration, not CrowdStrike's code):

// inputs has 20 valid entries: inputs[0] .. inputs[19]
for (int i = 0; i < instance->field_count; i++) {   // field_count == 21
    if (is_wildcard(instance->criteria[i])) continue;
    const char *s = inputs[i]->buffer;   // i == 20: out of bounds
    match(instance->criteria[i], s);
}

Whatever bytes happened to sit after the array were treated as a pointer. CrowdStrike's crash analysis shows that value pointing at an address with no valid mapping. The interpreter dereferenced it, the CPU raised a page fault, and Windows could not resolve the fault.

Why a kernel fault means a blue screen, a boot loop and manual repair

If an ordinary application reads a bad address, the CPU faults, the kernel takes control, decides the process is at fault and terminates it. Everything else carries on. The kernel can do this because it is a separate, more trusted party standing outside the process.

When the faulting code is itself in kernel mode, there is no outer party. The driver shares one address space and one privilege level with the scheduler, the file system and the memory manager. An invalid memory access there means kernel state can no longer be trusted, and continuing might corrupt data on disk. So Windows deliberately halts: a bugcheck, shown to the user as the blue screen. Stop code 0x50, the one in Microsoft's support article, is the code for a page fault on an invalid kernel address.

A side-by-side diagram: on the left a bad read in a user-mode application crosses the privilege boundary as a fault and the kernel terminates only that application, and on the right the same bad read inside the csagent.sys driver in the kernel's shared address space leaves no outer party, so Windows halts and every application stops.
The same bad read, in user mode and in kernel mode

A single crash would have been a bad morning. The loop came from two further facts. First, the channel file was already written to disk, so it survived the restart. Second, CrowdStrike's driver is loaded from an early phase of boot. That is deliberate: a security product wants to be running before any malware that starts early. Named pipes are an everyday Windows mechanism for processes to talk to each other, so soon after each boot the driver received a pipe notification, evaluated the same instance, made the same read and crashed again.

Recovery needed hands on each machine for the same reason. CrowdStrike withdrew the file after 78 minutes, but a withdrawn file only helps a machine that can stay up long enough to download the replacement. Some machines did manage that: CrowdStrike advised rebooting, preferably on a wired connection, to give the sensor a chance to fetch the reverted file before the crash.

For the rest, every tool an IT team would normally use to fix a fleet remotely runs on top of the operating system that was failing to start. The published manual fix was to boot into Safe Mode or the Windows Recovery Environment, delete the files matching C-00000291*.sys from the CrowdStrike directory, and restart. On machines with BitLocker disk encryption, reaching the disk from the recovery environment could require the recovery key for that device, which had to be looked up from somewhere else.

A ceiling-mounted display next to the Gate B10 sign at Boise Airport showing a blue Windows Recovery screen in place of flight information.
A display stuck on a Windows Recovery screen beside Gate B10 at Boise Airport, Idaho, on 19 July 2024. Photo: DJ Cane, CC BY-SA 4.0, via Wikimedia Commons.

Microsoft later released a USB recovery tool to automate the steps, but the work was still per machine. That is why a 78-minute exposure produced days of recovery, with about 99% of sensors back by 29 July.

A three-phase diagram: from 28 February to 24 April 2024 the mismatch of 21 defined fields and 20 supplied inputs stays latent because every instance uses a wildcard in field 21, on 19 July a new Channel File 291 is live from 04:09 to 05:27 UTC and crashes machines, and recovery runs until about 99% of sensors are back on 29 July, with a bar comparing the 78 minutes with the 10 days.
Latent for months, live for 78 minutes, days to repair

Why the safeguards did not catch it

CrowdStrike's root cause analysis lists several gaps that lined up:

  • No compile-time check on field counts. Nothing compared the 21 fields in the definition with the 20 inputs the sensor code provided.
  • No runtime bounds check. The interpreter trusted the index it was given.
  • Tests only used wildcards in field 21. The automated test cases never exercised the one path that would have exposed the bug.
  • The Content Validator had the same blind spot. It validated the new instance against the definition, which said 21 fields, so the instance looked correct.
  • No staged rollout for this kind of content. The new Template Instances were not released to a small group first. Eligible machines that were online during the 78 minutes received the file.

The last point is what turned a bug into a global event. The first four decide whether a bad file can be produced. The fifth decides how many machines meet it.

What CrowdStrike said it changed

  • The compiler for sensor content now validates the number of inputs for each Template Type. This went into production on 27 July 2024.
  • The Content Interpreter gained a bounds check on 25 July, plus a check that the input array size matches what the content expects. The sensor code was also corrected to supply 21 inputs. CrowdStrike said both fixes would reach sensor 7.11 and later through a hotfix release by 9 August 2024.
  • Tests now cover non-wildcard criteria for every field of every Template Type.
  • The Content Validator was changed straight away to allow only wildcards in field 21, with broader checks to follow so that an instance cannot match on more fields than the sensor provides.
  • New Template Instances are deployed in stages: a canary step first, then successively wider rings, with time between rings to watch telemetry and the option to roll back.
  • Customers can choose when and where Rapid Response Content is deployed.
  • Two independent security vendors were engaged to review the sensor code and the end-to-end quality process.

The computer science underneath

User mode and kernel mode. A CPU runs code at different privilege levels, and the operating system uses two of them. Applications run in user mode and must ask the kernel for anything sensitive through a system call. The lesson on system calls and the user/kernel boundary covers that crossing, and protection rings and access control explains the hardware checks behind it. The boundary is also a blast wall: a fault on the user side kills one process, while a fault on the kernel side has nothing to contain it.

Where drivers live. Whether a driver bug can take down the machine is a design decision. In a microkernel, drivers are ordinary processes that can crash and be restarted. In monolithic and hybrid designs, which include Windows, drivers are loaded into the kernel for speed and direct access. The trade-off is laid out in kernel architectures: monolithic, microkernel and hybrid, and I/O hardware, device drivers and DMA shows what a driver is and why the kernel has to trust it. A filter driver like the one here is not controlling hardware, but it holds the same privilege.

Boot order. Booting is a chain of stages, each loading the next, as described in booting: from the power button to a login prompt. Anything that fails early in that chain fails before networking, remote management or a login screen exist. A component that loads early and reads persistent state can therefore fail in a way that repeats on every start.

What an interviewer could ask from this

Why did this crash the whole machine and not just one program? The faulting read happened in a kernel-mode driver. There is no higher-privileged component to isolate and kill it, and kernel memory can no longer be trusted, so the OS halts.

What is an out-of-bounds read, and why is it undefined behaviour in C? Reading an array index outside its allocated range. The language does no bounds checking, so you get whatever bytes are adjacent. Here those bytes were used as a pointer, which pointed to unmapped memory.

Why did the machines boot loop? The bad file persisted on disk and the driver that read it loaded early in every boot. The trigger, a named pipe event, happens during normal start-up.

Why would a security vendor put code in the kernel at all? Visibility into system-wide events, the ability to block actions inline, loading before early malware, and resistance to tampering. The cost is that bugs are not contained.

How would you roll out a risky config change to millions of clients? In rings: internal machines, a small canary group, then progressively larger groups, with health signals gating each step and automatic rollback. Treat configuration with the same care as code.

Takeaways

  • The bug was a mismatch between two descriptions of the same interface, 21 fields in one place and 20 in another, exposed by the first input that actually used the last field.
  • Privilege decides blast radius. The same bad read in user mode ends one process; in kernel mode it ends the machine.
  • Early-loading code plus persistent bad state gives you a failure that survives reboots and blocks remote repair.
  • Configuration that an interpreter acts on is effectively code and needs bounds checks, validation and staged rollout.

Sources

  1. CrowdStrike: Falcon Content Update Preliminary Post Incident Report
  2. CrowdStrike: External Technical Root Cause Analysis, Channel File 291 (6 August 2024)
  3. CrowdStrike: Technical Details, Falcon Content Update for Windows Hosts
  4. CrowdStrike: Remediation and Guidance Hub, Channel File 291 Incident
  5. Microsoft: Helping our customers through the CrowdStrike outage
  6. Microsoft Security Blog: Windows Security best practices for integrating and managing security tools
  7. Microsoft Support: KB5042421, CrowdStrike issue impacting Windows endpoints
  8. TechCrunch: Faulty CrowdStrike update causes major global IT outage

Written by the Codevizag Academy team

An independent explainer built from the public sources listed above. Codevizag Academy is not affiliated with CrowdStrike. Found a mistake? Write to support@codevizag.com.

More case studies

Understood it? Now prove it.

The lessons behind this case study are free, and 20 problems a month are judged on real test cases at no cost.

Start solving free