CAPEC-25
Forced Deadlock
The adversary triggers and exploits 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 conditions can be difficult to detect.
On this page
Ask an AI about this attack pattern
Show the prompt
Explain the attack pattern CAPEC-25: Forced Deadlock: how it unfolds, what it needs and how to prevent and detect it in my systems. Use https://capec.mitre.org/data/definitions/25.html and https://cve.bz/cve/capec/25?via=ask-ai-copy, which lists recent CVEs with the weaknesses it exploits. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this attack pattern's id and public links.
How the attack unfolds
Explore
The attacker looks for a way in.
The adversary initiates an exploratory phase to get familiar with the system.
The adversary triggers a first action (such as holding a resource) and initiates a second action which will wait for the first one to finish.
If the target program has a deadlock condition, the program waits indefinitely resulting in a denial of service.
Prerequisites
The target host has a deadlock condition. There are four conditions for a deadlock to occur, known as the Coffman conditions. [REF-101]
The target host exposes an API to the user.
Skills required
- Medium skill
This type of attack may be sophisticated and require knowledge about the system's resources and APIs.
Consequences
| Impact | Affects | Note |
|---|---|---|
| Resource Consumption | Availability | A successful forced deadlock attack compromises the availability of the system by exhausting its available resources. |
Mitigations
Use known algorithm to avoid deadlock condition (for instance non-blocking synchronization algorithms).
For competing actions, use well-known libraries which implement synchronization.
Weaknesses it exploits
- CWE-412 Unrestricted Externally Accessible Lock
- CWE-567 Unsynchronized Access to Shared Data in a Multithreaded Context
- CWE-662 Improper Synchronization
- CWE-667 Improper Locking
- CWE-833 Deadlock
- CWE-1322 Use of Blocking Code in Single-threaded, Non-blocking Context
Recent CVEs with these weaknesses
- 5.3CVE-2026-119011
DoS vulnerability in the DSoftBus module. Impact: Successful exploitation of this vulnerability will affect availability.
- 5.7CVE-2026-140039
A flaw was found in libproxy. When Proxy Auto-Configuration (PAC) or Web Proxy Auto-Discovery (WPAD) is enabled, libproxy holds an internal lock while synchronously downloading and executing PAC scripts. An attacker able to influence the p…
- –CVE-2026-124305
Net::Server::PreFork versions through 2.018 for Perl let local users stop the server accepting connections by locking a lock_file that other users can read. With lock_file set, each PreFork and PreForkSimple child opens the file for writi…
- 6.5CVE-2026-132271
AutoGPT is a workflow automation platform for creating, deploying, and managing continuous artificial intelligence agents. Prior to 0.11.0, template rendering is not bounded in size or time. Any signed-up user who can reach a block that ta…
- 9.2CVE-2026-126714
Partially overwritten session files can lead to remote code execution. The files session save handler, which is the default, writes updated session data into the existing session file without first clearing it. If a write is interrupted, …
- 6.5CVE-2026-93668
The Bluetooth Classic SDP server in subsys/bluetooth/host/classic/sdp.c allocated every response PDU through bt_sdp_create_pdu(), which expands to bt_l2cap_create_pdu() and therefore uses a K_FOREVER timeout. The allocation is made from sd…
- 5.3CVE-2026-93666
The Bluetooth Classic SDP client built its outgoing request PDUs with bt_sdp_create_pdu(), which allocates from the sdp_pool net-buf pool with a K_FOREVER timeout and no failure handling, in sdp_client_ss_search(), sdp_client_sa_search() a…
- 6.2CVE-2026-128886
A flaw was found in dbus when configured with the nonce-tcp transport. An unauthenticated attacker able to connect to an exposed listener can cause a Denial of Service (DoS) by opening a connection and withholding the expected authenticati…
The newest records naming one of them. Each weakness's page lists them all.
Examples
An example of a deadlock which may occur in database products is the following. Client applications using the…
An example of a deadlock which may occur in database products is the following. Client applications using the database may require exclusive access to a table, and in order to gain exclusive access they ask for a lock. If one client application holds a lock on a table and attempts to obtain the lock on a second table that is already held by a second client application, this may lead to deadlock if the second application then attempts to obtain the lock that is held by the first application (Source: Wikipedia, http://en.wikipedia.org/wiki/Deadlock)
MITRE's words, unchanged: CAPEC-25 at MITRE. CAPEC is Copyright © 2007–2026, The MITRE Corporation, used under the CAPEC terms of use: “The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use Common Attack Pattern Enumeration and Classification (CAPEC™) for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE’s copyright designation and this license in any such copy.” CAPEC and the CAPEC logo are trademarks of The MITRE Corporation. Credits. All attack patterns.