AdvertiseDonate
Newz Spotlight · 370 Main Street, 11th & 12th Floor, Worcester, MA

A hidden code flaw knocked Outlook offline for 24 hours

Microsoft traced the massive email outage to a bug that sat dormant on gateway servers since July, which activated when traffic patterns shifted.

By Bruno Verma ·

Illustration for: A hidden code flaw knocked Outlook offline for 24 hours
Illustration generated for this article, not a news photograph.

Office workers around the world lost access to their Outlook emails for nearly 24 hours during a major outage that began last Thursday. The disruption started on a normal workday but quickly escalated into one of the most severe failures in Microsoft’s history. By the end of the first hour, the email service was unavailable to employees, businesses, and government agencies.

The initial failure occurred on Exchange Online servers in Switzerland, according to a source familiar with the incident. The problem spread to Mexico and then globally as Microsoft’s failover systems tried to redirect email traffic to other locations. Within two hours, more than 80 percent of Exchange servers were unresponsive. Microsoft labeled the incident as a "sev0" internally, its highest severity category, and mobilized hundreds of engineers to diagnose the issue.

Engineers examined crash reports, trace logs, and kernel dumps during the early hours of the crisis. Some servers had entered maintenance mode and stopped responding due to unusually high CPU loads. Restart attempts failed because the machines were immediately flooded with waiting traffic. The Exchange servers boot over a network using the Preboot Execution Environment, so the surge of rebooting machines overwhelmed monitoring systems. This created a reboot loop where servers repeatedly tried and failed to come back online.

Outside speculation suggested a cyberattack or problematic AI-generated code might be to blame. Engineers investigated potential attack vectors and consulted DDoS specialists, but crash reports and logs ruled out an external attack. After rollbacks failed, the team examined the networking stack and discovered an unusual bug that had remained unnoticed on Microsoft 365 networking gateway servers since July.

"A latent defect caused servers to become overwhelmed and unresponsive under certain load conditions," Charles Lamanna, head of Microsoft's Copilot, Agents, and Platform team, wrote on X. The company's preliminary post-incident report describes a flaw affecting select Windows servers due to lock contention inside an internal Windows process. The bug did not affect regular versions of Windows because it stemmed from a fix built specifically for the gateway servers.

Lamanna acknowledged testing gaps, noting that the contention issue worsened on machines with more cores and newer hardware. He explained that load testing tended to focus on weaker hardware with fewer cores. Three factors combined to awaken the dormant defect. Fifteen hours before the outage, Microsoft Teams failed over from an alternative networking gateway to the main gateway supporting Exchange Online. Lamanna said this increased the load on the networking gateway and changed its traffic patterns.

At the same time, roughly 14 percent of server capacity for that gateway was out of service due to an unrelated issue from the previous day. The combination of the bug, the failover, and the reduced capacity triggered the collapse. Restoring service proved difficult because returning servers were immediately overwhelmed by waiting traffic and became unresponsive again. Lamanna added that automated recovery processes were not designed for such a broadly unresponsive state, and the latent bug meant normal rollback tools could not quickly revert the change.

A running bridge call for engineers reached its maximum of 1,000 participants at one point. Overlapping interventions from multiple teams sometimes complicated coordination. It took nearly 24 hours to stabilize the Exchange servers. Microsoft plans to publish a final post-incident review later this week.

More Tech · National news · Report a business · Got a Story?

Get Newz Spotlight in your inboxReporting on the stories people talk about. Free, a few times a week, unsubscribe any time.

Related stories

Get Newz Spotlight in your inboxReporting on the stories people talk about. Free, a few times a week, unsubscribe any time.