race condition

term

programmingsecurity

A bug where the outcome depends on the unpredictable timing of concurrent operations.

When two things touch shared state at once, order decides the result, and the wrong order corrupts data or opens a security hole (the TOCTOU class: time-of-check to time-of-use). Because timing is involved, race conditions often behave as heisenbugs.

Also known as: race-condition, TOCTOU, data race

All glossary entries