BaseDraft
CWE-663Use of a Non-reentrant Function in a Concurrent Context
Category: other
Description
The product calls a non-reentrant function in a concurrent context in which a competing code sequence (e.g. thread or signal handler) may have an opportunity to call the same function or otherwise influence its state.
Common consequences· 1
- Integrity / Confidentiality / Other — Modify Memory, Read Memory, Modify Application Data, Read Application Data, Alter Execution Logic
Potential mitigations· 3
- [Implementation]Use reentrant functions if available.
- [Implementation]Add synchronization to your non-reentrant function.
- [Implementation]In Java, use the ReentrantLock Class.
Related CAPEC attack patterns· 1
References
Exploits (incoming)1
| Type | Target | Confidence | Tier |
|---|---|---|---|
| AttackPattern | Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditionscapec-29 | 100% | live |
Related by meaning· 6
Nearest entities by semantic similarity across the cs-graph corpus.