macOS TCP Networking Bug: A Ticking Time Bomb That Detonates After Exactly 49 Days

Available in: 中文
2026-04-06T21:52:15.475Z·2 min read
Researchers at Photon have discovered a critical bug in macOS networking: TCP connections stop working entirely after the system has been running for exactly 49.7 days — a classic integer overflow ...

Researchers at Photon have discovered a critical bug in macOS networking: TCP connections stop working entirely after the system has been running for exactly 49.7 days — a classic integer overflow that turns any long-running Mac into an isolated island with no network access.

The Bug

The discovery reveals a fundamental flaw in macOS's TCP implementation:

Why 49.7 Days?

This is a classic computer science problem:

Who Is Affected?

Any Mac running for extended periods:

The Impact

For different use cases, the impact varies:

The Research

The team at Photon discovered the bug while investigating network issues with their own long-running Mac servers:

What Apple Should Do

The fix is straightforward:

  1. Use 64-bit counters instead of 32-bit for time calculations
  2. Add monitoring for uptime-based issues in the networking stack
  3. Implement automatic recovery when overflow is detected

Broader Implications

This bug highlights persistent challenges in software engineering:

↗ Original source · 2026-04-06T00:00:00.000Z
← Previous: AI Has Flooded All the Weather Apps: Machine Learning Transforms Forecasting From Data to ConversationsNext: Trump Proposes Massive 55% Cut to NSF Budget, Dissolves Social Sciences Division in 2027 Budget Plan →
Comments0