CWE一覧に戻る
CWE-666

ライフタイムの誤ったフェーズにおけるリソースへの操作

Operation on Resource in Wrong Phase of Lifetime
脆弱性 レビュー中
JA

この製品は、リソースのライフサイクルの誤った段階でリソースに対して操作を実行するため、予期しない動作につながる可能性がある。

リソースのライフサイクルには、初期化、使用、リリースといういくつかのフェーズがあります。各フェーズでは、リソースの操作方法について概説された仕様に従い、リソースが期待されるフェーズにあることを確認することが重要です。そうでないと、リソースがあるフェーズにあるにもかかわらず、その操作がそのフェーズでは有効でない(つまり、リソースのライフタイムのフェーズが正しくない)場合、結果として弱点が生じる可能性があります。た と えば、 リ ソ ース が完全に初期化 さ れ る 前に リ ソ ース を使用す る と 、 破損や不正なデー タ が使用 さ れ る 可能性があ り ます。

EN

The product performs an operation on a resource at the wrong phase of the resource's lifecycle, which can lead to unexpected behaviors.

A resource's lifecycle includes several phases: initialization, use, and release. For each phase, it is important to follow the specifications outlined for how to operate on the resource and to ensure that the resource is in the expected phase. Otherwise, if a resource is in one phase but the operation is not valid for that phase (i.e., an incorrect phase of the resource's lifetime), then this can produce resultant weaknesses. For example, using a resource before it has been fully initialized could cause corruption or incorrect data to be used.

Scope: Other / Impact: Other
Follow the resource's lifecycle from creation to release.
MITRE公式ページ — CWE-666