CWE-368: Context Switching Race Condition, published in 2021
Filter
A product performs a series of non-atomic actions to switch between contexts that cross privilege or other security boundaries, but a race condition allows an attacker to modify or misrepresent the product's behavior during the switch.
What the weakness is: CWE-368 at MITRE. All weaknesses
Related attack patterns (CAPEC): 2
- CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
- CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High
The attack patterns MITRE's CAPEC relates to CWE-368, as MITRE names them. Credits.
Ask an AI about CWE-368
Show the prompt
Explain CWE-368: Context Switching Race Condition and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/368.html and https://cve.bz/cve/cwe/368?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
By year: all 2026 2025 2024 2023 2022 2021
- 9.0CVE-2021-21941anker eufy homebase 2 firmwareEPSS 1.7%
A use-after-free vulnerability exists in the pushMuxer CreatePushThread functionality of Anker Eufy Homebase 2 2.1.6.9h. A specially-crafted set of network packets can lead to remote code execution.