Cyber Resilience

CWE · MITRE source

CWE-591Sensitive Data Storage in Improperly Locked Memory

Abstraction: Variant · CVEs in our corpus: 77

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.

On Windows systems the VirtualLock function can lock a page of memory to ensure that it will remain present in memory and not be swapped to disk. However, on older versions of Windows, such as 95, 98, or Me, the VirtualLock() function is only a stub and provides no protection. On POSIX systems the mlock() call ensures that a page will stay resident in memory but does not guarantee that the page will not appear in the swap. Therefore, it is unsuitable for use as a protection mechanism for sensitive data. Some platforms, in particular Linux, do make the guarantee that the page will not be swapped, but this is non-standard and is not portable. Calls to mlock() also require supervisor privilege. Return values for both of these calls must be checked to ensure that the lock operation was actually successful.

Last updated: 20 August 2026 13:14 UTC

Cumulative inbound coverage

How completely the frameworks we cross-walk collectively cover this — the verdict is the strongest single mapping (overlapping partials are not summed); breadth shows the corroboration behind it.

Collective: partial · 2 mapping(s) from 2 framework(s): CSF 2.0 1 (partial) · STIG oracle linux 8 1 (partial)

See the full cumulative-coverage rollup →

Control responseHuman-reviewed

Answering this weakness across the control lifecycle, from our framework cross-walks.

Prevent
Stop it (NIST 800-53 / CSF Protect)
  • PR.DS-01
Detect
Catch it (CSF Detect / Respond)

Harden
Shrink the surface (DISA STIG)
  • 1 hardening rule · 1 OS baseline
Validate
Prove the fix (OWASP ASVS)

NIST 800-53 r5 controls that address this weakness (0)AI-assisted

Control Title Family Why it addresses this CWE
No NIST controls proposed yet.

Top CVEs of this weakness type, ranked by Risk Priority

CVE Risk CVSS EPSS Published
CVE-2023-28229 KEV 7.97.00.01772023-04-11
CVE-2024-38106 KEV 7.97.00.06342024-08-13
CVE-2023-28219 7.28.10.14982023-04-11
CVE-2023-28220 7.28.10.14982023-04-11
CVE-2025-21309 7.28.10.14982025-01-14
CVE-2023-36005 7.17.50.23862023-12-12
CVE-2024-38131 6.88.80.01322024-08-13
CVE-2025-21224 6.58.10.01912025-01-14
CVE-2025-24035 6.58.10.01822025-03-11
CVE-2025-27482 6.58.10.01732025-04-08
CVE-2024-49106 6.48.10.01192024-12-12
CVE-2024-49108 6.48.10.01192024-12-12
CVE-2024-49126 6.48.10.01272024-12-12
CVE-2025-21294 6.48.10.01212025-01-14
CVE-2025-24045 6.48.10.01422025-03-11
CVE-2025-26671 6.48.10.01222025-04-08
CVE-2023-21535 6.38.10.01082023-01-10
CVE-2023-21546 6.38.10.01102023-01-10
CVE-2023-21548 6.38.10.01082023-01-10
CVE-2023-28283 6.38.10.00972023-05-09
CVE-2024-49115 6.38.10.01102024-12-12
CVE-2024-49123 6.38.10.01092024-12-12
CVE-2024-49128 6.38.10.01152024-12-12
CVE-2024-49132 6.38.10.01092024-12-12
CVE-2025-30394 6.25.90.30492025-05-13