CWE-663
Use of a Non-reentrant Function in a Concurrent Context
AI Translation Available
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.
Status
draft
Abstraction
base
Affected Platforms
C
Not Language-Specific
Technical Details
AI Translation
Common Consequences
integrity
confidentiality
other
Impacts
modify memory
read memory
modify application data
read application data
alter execution logic
Detection Methods
automated static analysis
Potential Mitigations
Phases:
implementation
Descriptions:
•
Add synchronization to your non-reentrant function.
•
Use reentrant functions if available.
•
In Java, use the ReentrantLock Class.