Skip to content
OpenAdvisories

Weakness (CWE)

CWE-765: Multiple Unlocks of a Critical Resource

Base Incomplete

The product unlocks a critical resource more times than intended, leading to an unexpected state in the system.

How to prevent it (1 mitigation)
  1. Implementation

    When locking and unlocking a resource, try to be sure that all control paths through the code in which the resource is locked one or more times correspond to exactly as many unlocks. If the product acquires a lock and then determines it is not able to perform its intended behavior, be sure to release the lock(s) before waiting for conditions to improve. Reacquire the lock(s) before trying again.

Source: MITRE CWE-765

1 result · Feed

  • Medium 6.5

    Dell PowerScale OneFS Versions 8.2.2.x through 9.8.0.x contain an improper resource unlocking vulnerability. A remote l…