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: 04 July 2026 08:17 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 · 4 mapping(s) from 3 framework(s): ATT&CK 2 (partial) · CSF 2.0 1 (partial) · STIG oracle linux 8 1 (partial)

See the full cumulative-coverage rollup →

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

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

MITRE ATT&CK techniques this weakness enables

Our own two-way CWE↔ATT&CK cross-walk — a direct mapping with no public source (the CWE→CAPEC→ATT&CK chain leaves most top weaknesses, incl. XSS and SQLi, mapped to nothing). Drafted by Grok and spot-checked by Claude Opus 4.8.

Direction: other covers this; this covers other (F/M/P = full / mostly / partial).

Top CVEs of this weakness type, ranked by Risk Priority

CVE Risk CVSS EPSS Published
CVE-2023-28229 KEV10.07.00.01872023-04-11
CVE-2024-38106 KEV10.07.00.06342024-08-13
CVE-2023-282196.08.10.14982023-04-11
CVE-2023-282206.08.10.14982023-04-11
CVE-2023-360056.07.50.23862023-12-12
CVE-2025-213096.08.10.14982025-01-14
CVE-2025-30394 UPD6.05.90.20632025-05-13
CVE-2023-215355.58.10.01082023-01-10
CVE-2023-215465.58.10.01102023-01-10
CVE-2023-215485.58.10.01082023-01-10
CVE-2023-217395.57.00.00562023-01-10
CVE-2023-217715.57.00.00402023-01-10
CVE-2023-233935.57.00.00252023-03-14
CVE-2023-234075.57.10.00392023-03-14
CVE-2023-234145.57.10.00392023-03-14
CVE-2023-282245.57.10.00392023-04-11
CVE-2023-282365.57.80.00292023-04-11
CVE-2023-282385.57.50.00882023-04-11
CVE-2023-282735.57.00.00252023-04-11
CVE-2023-248995.57.00.00342023-05-09
CVE-2023-249465.57.80.00442023-05-09
CVE-2023-282835.58.10.00972023-05-09
CVE-2023-320105.57.00.00282023-06-14
CVE-2023-331635.57.50.00362023-07-11
CVE-2023-353095.57.50.00692023-07-11