Common Weakness Enumeration
Back to CWE stats page
CWE-591
Sensitive Data Storage in Improperly Locked Memory
The product stores sensitive data in memory that is not locked, or that has been incorrectly locked, which might cause the memory to be written to swap files on disk by the virtual memory manager. This can make the data more accessible to external actors.
Mitigation
Phase: Architecture and Design
Description:
- Identify data that needs to be protected from swapping and choose platform-appropriate protection mechanisms.
Mitigation
Phase: Implementation
Description:
- Check return values to ensure locking operations are successful.
No CAPEC attack patterns related to this CWE.