CWE一覧に戻る
CWE-366

スレッド内の競合状態

Race Condition within a Thread
脆弱性 レビュー中
JA

2つの実行スレッドが同時にリソースを使用する場合、無効な状態でリソースが使用される可能性があり、実行状態が不定になる。

EN

If two threads of execution use a resource simultaneously, there exists the possibility that resources may be used while invalid, in turn making the state of execution undefined.

Scope: Integrity, Other / Impact: Alter Execution Logic; Unexpected State
Use locking functionality. This is the recommended solution. Implement some form of locking mechanism around code which alters or reads persistent data in a multithreaded environment.
Create resource-locking validation checks. If no inherent locking mechanisms exist, use flags and signals to enforce your own blocking scheme when resources are being used by other threads of execution.
MITRE公式ページ — CWE-366