CWE一覧に戻る
CWE-663

非再入可能機能の同時使用

Use of a Non-reentrant Function in a Concurrent Context
脆弱性 レビュー中
JA

競合するコード・シーケンス(スレッドやシグナル・ハンドラなど)が同じ関数を呼び出したり、その状態に影響を与えたりする可能性がある並行コンテキストで、製品が再入可能でない関数を呼び出す。

EN

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.

Scope: Integrity, Confidentiality, Other / Impact: Modify Memory; Read Memory; Modify Application Data; Read Application Data; Alter Execution Logic
Use reentrant functions if available.
Add synchronization to your non-reentrant function.
In Java, use the ReentrantLock Class.
MITRE公式ページ — CWE-663