CWE · MITRE source
CWE-591Sensitive 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.
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)
Control responseHuman-reviewed
Answering this weakness across the control lifecycle, from our framework cross-walks.
PR.DS-01
—
- 1 hardening rule · 1 OS baseline
—
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 UPD | 7.9 | 7.0 | 0.0177 | 2023-04-11 |
CVE-2024-38106 KEV UPD | 7.9 | 7.0 | 0.0634 | 2024-08-13 |
CVE-2023-28219 UPD | 7.2 | 8.1 | 0.1498 | 2023-04-11 |
CVE-2023-28220 UPD | 7.2 | 8.1 | 0.1498 | 2023-04-11 |
CVE-2025-21309 UPD | 7.2 | 8.1 | 0.1498 | 2025-01-14 |
CVE-2023-36005 UPD | 7.1 | 7.5 | 0.2386 | 2023-12-12 |
CVE-2024-38131 UPD | 6.8 | 8.8 | 0.0132 | 2024-08-13 |
CVE-2025-21224 UPD | 6.5 | 8.1 | 0.0191 | 2025-01-14 |
CVE-2025-24035 UPD | 6.5 | 8.1 | 0.0182 | 2025-03-11 |
CVE-2025-27482 UPD | 6.5 | 8.1 | 0.0173 | 2025-04-08 |
CVE-2024-49106 UPD | 6.4 | 8.1 | 0.0119 | 2024-12-12 |
CVE-2024-49108 UPD | 6.4 | 8.1 | 0.0119 | 2024-12-12 |
CVE-2024-49126 UPD | 6.4 | 8.1 | 0.0127 | 2024-12-12 |
CVE-2025-21294 UPD | 6.4 | 8.1 | 0.0121 | 2025-01-14 |
CVE-2025-24045 UPD | 6.4 | 8.1 | 0.0142 | 2025-03-11 |
CVE-2025-26671 UPD | 6.4 | 8.1 | 0.0122 | 2025-04-08 |
CVE-2023-21535 UPD | 6.3 | 8.1 | 0.0108 | 2023-01-10 |
CVE-2023-21546 UPD | 6.3 | 8.1 | 0.0110 | 2023-01-10 |
CVE-2023-21548 UPD | 6.3 | 8.1 | 0.0108 | 2023-01-10 |
CVE-2023-28283 UPD | 6.3 | 8.1 | 0.0097 | 2023-05-09 |
CVE-2024-49115 UPD | 6.3 | 8.1 | 0.0110 | 2024-12-12 |
CVE-2024-49123 UPD | 6.3 | 8.1 | 0.0109 | 2024-12-12 |
CVE-2024-49128 UPD | 6.3 | 8.1 | 0.0115 | 2024-12-12 |
CVE-2024-49132 UPD | 6.3 | 8.1 | 0.0109 | 2024-12-12 |
CVE-2025-30394 UPD | 6.2 | 5.9 | 0.3049 | 2025-05-13 |