Skip to content
OpenAdvisories

Weakness (CWE)

CWE-663: Use of a Non-reentrant Function in a Concurrent Context

Base Draft

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.

How to prevent it (3 mitigations)
  1. Implementation

    Use reentrant functions if available.

  2. Implementation

    Add synchronization to your non-reentrant function.

  3. Implementation

    In Java, use the ReentrantLock Class.

Source: MITRE CWE-663

0 results · Clear filters · Feed

Nothing found.