CWE-413 · Słabość
Improper Resource Locking
- Abstrakcja
- Bazowa
- Status
- Szkic
- Dodano
- 19 lipca 2006
- Ostatnia zmiana
- 11 grudnia 2025
Opis
The product does not lock or does not correctly lock a resource when the product must have exclusive access to the resource.
When a resource is not properly locked, an attacker could modify the resource while it is being operated on by the product. This might violate the product's assumption that the resource will not change, potentially leading to unexpected behaviors.
Skutki
Integrity, Availability
Modify Application Data; DoS: Instability; DoS: Crash, Exit, or Restart
Zapobieganie
Architecture and Design
Use a non-conflicting privilege scheme.
Architecture and Design, Implementation
Use synchronization when locking a resource.
Przykłady podatności
- CVE-2022-20141 Chain: an operating system kernel has insufficent resource locking (CWE-413) leading to a use after free (CWE-416).
Słabość nadrzędna
Słabości podrzędne
Kiedy powstaje
- Architecture and Design
- Implementation
Dotyczy
Not Language-Specific
Wpis z katalogu CWE 4.20.