Inside Microsoft's Massive Outlook Outage Caused by a Dormant Bug

Inside Microsoft's Massive Outlook Outage Caused by a Dormant Bug
Share

Last Thursday at 9 AM, Microsoft employees arrived on campus anticipating a routine workday filled with meetings and emails. Just over an hour later, however, one of the most severe outages in the company's history began to unfold, cutting off access to Outlook emails for businesses, governments, and individual users worldwide for nearly 24 hours.

According to sources familiar with the incident, the failure originated in Switzerland as Exchange Online servers powering Outlook started dropping offline. The problem quickly cascaded to Mexico and subsequently to other countries as Microsoft's automated failover systems attempted to divert traffic. Within a couple of hours, more than 80 percent of Exchange servers became completely unresponsive, prompting Microsoft to classify the disruption as a sev0 incident, the highest level in its internal tracking system denoting catastrophic failure.

Key takeaways

  • A latent networking bug on Microsoft 365 gateway servers caused the massive outage.
  • The incident began in Switzerland and spread globally, affecting over 80 percent of Exchange servers.
  • MicrosoftTeams failing over and reduced server capacity exacerbated the dormant bug.
  • Recovery took nearly 24 hours due to cascading server reboots and overwhelming traffic.

Tracing the Cascading Failure

As hundreds of engineers scrambled to diagnose the issue, they initially investigated potential cyberattack vectors or DDoS activity alongside specialists, quickly ruling out external malicious interference through crash reports and trace logs. Engineers found that some servers had entered maintenance mode due to unusually high CPU loads. When support staff attempted to bring them back online, a deluge of waiting traffic immediately overwhelmed the monitoring systems, locking the infrastructure into a continuous reboot loop.

Charles Lamanna, leader of Microsoft's Copilot, Agents, and Platform team, explained in a post on X that a latent defect caused servers to become overwhelmed and unresponsive under specific load conditions. The bug affected select Windows servers due to lock contention inside an internal Windows process. Because the defect originated from a fix prepared specifically for Microsoft 365 networking gateway servers back in July, standard rollbacks, flighting, and feature flags were ineffective.

Testing Labs and Remediation

Microsoft admitted that the bug remained hidden during testing because its labs relied on weaker hardware with fewer cores. The contention issue was significantly worsened on machines featuring newer hardware and a higher core count. Furthermore, the latent bug remained dormant until it collided with two concurrent compounding factors.

Just fifteen hours prior to the Outlook disruption, Microsoft Teams failed over from an alternative gateway to the main gateway supporting Exchange Online, shifting traffic patterns and boosting load. Compounding this issue, approximately 14 percent of server capacity for that specific gateway was already out of service due to an unrelated incident from the previous day. This trifecta of events triggered the gateway defect.

At its peak, an internal bridge call utilized by Microsoft engineers hit the maximum limit of 1,000 participants to coordinate recovery efforts. Lamanna noted that automated recovery processes were not originally designed to restore service from such a broad unresponsive state, complicating the restoration timeline. Microsoft is currently preparing a final post-incident review and faces pressure to revamp its internal testing methodologies to catch similar cascading vulnerabilities before they hit production environments.

Source: theverge.com — reported and rewritten by the TechToday team.

Found this helpful? Share it.

Related Stories

Comments

No comments yet. Be the first to comment!