Skip to content

In-depth lesson · Race condition

Root causes

Every point the Race condition reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 1 to 50 of 50
  1. The limit check and the creation step were not atomic, so concurrent requests all passed the check

    Seen in 7 reports
  2. The code checked whether an entry was a symlink and then deleted or wrote it, allowing a swap between check and use

    Seen in 6 reports
  3. The check-and-record step was not atomic, so concurrent duplicate requests were all accepted

    Seen in 4 reports
  4. The vote endpoint did not use an atomic operation or lock, so concurrent requests bypassed the duplicate-vote check

    Seen in 3 reports
  5. The redemption process was not locked or serialised, so several requests validated and applied the same coupon or card before the balance updated

    Seen in 3 reports
  6. The join endpoint checked for existing membership and inserted without an atomic operation, creating duplicate records

    Seen in 3 reports
  7. The payment code did not lock or check payout state when two requests arrived close together

    Seen in 2 reports
  8. Email change and verification were not performed in a single transaction, so verification of one email applied to a different change

    Seen in 2 reports
  9. A global buffer shared between threads was accessed without a mutex while a signal-driven timeout path could run concurrently

    Seen in 2 reports
  10. Privileged file operations inside a container or cluster were not isolated from concurrent manipulation

    Seen in 2 reports
  11. Vote and entry counting was not atomic per account

    Seen in 2 reports
  12. Transaction handling in the node or faucet was not atomic

    Seen in 2 reports
  13. The server checked whether a claim was used and then applied the bonus as separate non-atomic steps

    Seen in 1 report
  14. The approval endpoint lacked locking or atomicity, so concurrent requests both passed the already-approved check

    Seen in 1 report
  15. Approval removal after a new commit was processed asynchronously, leaving a window where merge was still allowed

    Seen in 1 report
  16. The check for an already submitted flag and the point award were separate steps without atomicity

    Seen in 1 report
  17. Parallel reset requests were not treated as a single operation, so cancelling one did not invalidate the others

    Seen in 1 report
  18. The balance check and deduction were not locked or serialised during concurrent transfers

    Seen in 1 report
  19. The balance was queried and the transfer sent as separate non-atomic steps, so concurrent requests read the same pre-transfer balance

    Seen in 1 report
  20. Eligibility check and purchase were processed without an atomic lock, so parallel requests with different parameters each passed

    Seen in 1 report
  21. The subscriber count was checked without locking or atomic enforcement, so concurrent requests all passed

    Seen in 1 report
  22. No database-level constraint prevented cyclic parent-child relationships, and application-level validation could be bypassed by concurrent requests

    Seen in 1 report
  23. The daemon startup set the process umask to zero, making files and directories world-writable

    Seen in 1 report
  24. Reference counting for the COM object was not thread-safe, so a worker thread could trigger a second initialisation

    Seen in 1 report
  25. The code path for the IPv6 packet options socket option lacked proper locking, allowing a race between freeing and using the structure

    Seen in 1 report
  26. A shared path pointer was replaced with a stack buffer while another thread could still free it, with no locking or ownership check

    Seen in 1 report
  27. The autoscaler used a user-supplied job ID directly in a file path without sanitisation

    Seen in 1 report
  28. Connection reuse was decided before certificate validation completed, creating a check-then-use gap

    Seen in 1 report
  29. Negative DNS cache entries were added to a shared cache without proper synchronisation

    Seen in 1 report
  30. The agent queued responses without ensuring they matched the request that triggered them

    Seen in 1 report
  31. Timeout handling during allocation left buffers uninitialised

    Seen in 1 report
  32. UTF-8 decoding read a shared buffer while another thread could modify it

    Seen in 1 report
  33. Iterator state allowed previously executed writes to be replayed

    Seen in 1 report
  34. Teardown of a shared handle raced with list destruction, allowing a function pointer hijack

    Seen in 1 report
  35. A global GSS context was shared across threads without synchronisation

    Seen in 1 report
  36. The eventfd close path could run twice for the same descriptor

    Seen in 1 report
  37. The resume logic checked the remote file and then appended without an atomic step

    Seen in 1 report
  38. Signature verification and file use were separated in time, allowing a swap

    Seen in 1 report
  39. The lock screen state could be changed between check and use

    Seen in 1 report
  40. Logout did not invalidate all concurrent sessions for the account

    Seen in 1 report
  41. Ban and unban actions were not serialised, leaving inconsistent user state

    Seen in 1 report
  42. Membership changes were not atomic, allowing observation of conversations

    Seen in 1 report
  43. Recovery steps could be raced to complete a flow for another account

    Seen in 1 report
  44. The publish endpoint did not check purchase and accepted a publish request during installation

    Seen in 1 report
  45. Creation checks were not atomic, allowing duplicates or limit overruns

    Seen in 1 report
  46. The review submission check was not atomic per user

    Seen in 1 report
  47. Pipelined responses were not matched reliably to their requests

    Seen in 1 report
  48. Application-level validation was relied on where database constraints were needed

    Seen in 1 report
  49. A security feature check could be raced against its use

    Seen in 1 report
  50. Feature entitlement was checked without synchronisation across parallel requests

    Seen in 1 report