Katalog CWE

CWE-667 · Słabość

Improper Locking

Abstrakcja
Klasa
Status
Szkic
Dodano
11 kwietnia 2008
Ostatnia zmiana
11 grudnia 2025

Podatności CVE z tą słabościąPełny wpis na cwe.mitre.org ↗

Opis

The product does not properly acquire or release a lock on a resource, leading to unexpected resource state changes and behaviors.

Locking is a type of synchronization behavior that ensures that multiple independently-operating processes or threads do not interfere with each other when accessing the same resource. All processes/threads are expected to follow the same steps for locking. If these steps are not followed precisely - or if no locking is done at all - then another process/thread could modify the shared resource in a way that is not visible or predictable to the original process. This can lead to data or memory corruption, denial of service, etc.

Skutki

  • Availability

    DoS: Resource Consumption (CPU)

    Inconsistent locking discipline can lead to deadlock.

Zapobieganie

  • Implementation · Libraries or Frameworks

    Use industry standard APIs to implement locking mechanism.

Przykłady podatności

Słabość nadrzędna

Słabości podrzędne

Kiedy powstaje

Dotyczy

Not Language-Specific, Not Technology-Specific

Uwagi

Deeper research is necessary for synchronization and related mechanisms, including locks, mutexes, semaphores, and other mechanisms. Multiple entries are dependent on this research, which includes relationships to concurrency, race conditions, reentrant functions, etc. CWE-662 and its children - including CWE-667, CWE-820, CWE-821, and others - may need to be modified significantly, along with their relationships.

Źródła

  1. Automated Source Code Security Measure (ASCSM) — Object Management Group (OMG), ASCSM-CWE-667, 2016

Wpis z katalogu CWE 4.20.