Anurag’s Read

Post mortem on Linear security incident on March 24th, 2026.

A frank postmortem where a variable shadowing bug in a gated optimization skipped permission filters for about an hour. It shows why tests must cover the path where a gated change is off.
Score
8.2
Verdict
Worth reading
Blog and date
Linear,
Original length and level
5 min, intermediate
Topics
incident response, access control, testing, postmortem
Read the original

Context

Linear filters data so each member sees only their own teams. On March 24, 2026 a permission optimization shipped, enabled for one internal workspace only. A bug in its disable path exposed private team data for about one hour.

Tests covered the enabled path but not the disabled path.

Architecture

Requests from web, mobile, and API reach the sync group mechanism. A sync group adds resolvers that filter data to the teams of the user. The optimization skips resolvers that can never match a user.

In the bug, the disable path dropped all user resolvers, and the downstream permission check was skipped without any error.

Mechanisms

M1

Root cause

A variable shadowing bug in the disable path chose a resolver list with no user resolvers. Nothing failed, so the missing check stayed silent.

M2

Exposure paths

Clients ran about 7,000 full bootstraps, so data reached local databases. Notification emails showed inflated counts, and some members got a digest of the whole workspace. Notification pruning archived items per workspace, and a feed summary generator wrote cross-team posts.

Design decisions

No.ChoseInstead ofWhy
D1Clear caches, raise the database version, and end sessionsThis removed leaked data from client databases.

Key numbers

  • The window ran from 00:07 to 01:10 UTC.
  • About 7,000 full bootstraps happened.
  • The status page went up at 04:02.

Failures and limits

  • Most exposure statements say may have, so real exposure is unquantified.
  • Access logs showed no abuse in sensitive changes.

Lessons you can use

  • Test the off path of every flag, including for tenants outside the target.
  • Make permission code fail loudly when a check is missing.

Glossary

BootstrapA full download of data into a client database.