Name Forced Deadlock
Summary This attack attempts to trigger and exploit a deadlock condition in the target software to cause a denial of service. A deadlock can occur when two or more competing actions are waiting for each other to finish, and thus neither ever does. Deadlock condition are not easy to detect.
Prerequisites The target host has a deadlock condition. There are four conditions for a deadlock to occur, known as the Coffman conditions. [R.25.3][REF-6] The target host exposes an API to the user.
Solutions Use known algorithm to avoid deadlock condition (for instance non-blocking synchronization algorithms). For competing actions use well-known libraries which implement synchronization.
Related Weaknesses
CWE ID Description
CWE-412 Unrestricted Externally Accessible Lock
CWE-567 Unsynchronized Access to Shared Data in a Multithreaded Context
CWE-662 Improper Synchronization
Back to Top