An exceptional condition can circumvent the release of a lock, leading to deadlock. According to the Java API \ [[API 2006|AA. References#API 06]\] Wiki Markup
A
ReentrantLock
is owned by the thread last successfully locking, but not yet unlocking it. A thread invokinglock
will return, successfully acquiring the lock, when the lock is not owned by another thread.
...
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
LCK08-J | low | likely | low | P9 | L2 |
Related Vulnerabilities
The GERONIMO-2234 issue report describes a vulnerability in the Geronimo application server. If the user single-clicks the keystore portlet, the user will lock the default keystore without warning. This causes a crash and stack trace to be produced. Futhermore, the server cannot be restarted because the lock is never cleared.
...
Bibliography
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="6421fdab-85aa-42ec-8321-ff4533175949"><ac:plain-text-body><! [CDATA[ [[API 2006AA. References#API 06]] | Class |
...