Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-93243 Overview
CVE-2026-93243 is a Linux kernel vulnerability in the mm/secretmem subsystem. The flaw stems from improper accounting of locked pages when userspace maps and unmaps secretmem file descriptors. A local user can bypass the RLIMIT_MEMLOCK limit by repeatedly mapping and unmapping (or forking) a secretmem region. Because secretmem folios are unevictable and are not counted in process RSS, the Out-Of-Memory (OOM) killer cannot select the offending process. Sustained abuse exhausts available system memory with unreclaimable pages and destabilizes the host.
Critical Impact
Unprivileged local users can exhaust system memory with unevictable kernel folios, triggering denial of service and system instability without being targetable by the OOM killer.
Affected Products
- Linux kernel versions that include the mm/secretmem subsystem prior to the fixing commits
- Distributions shipping affected upstream kernels (consult vendor advisories for exact ranges)
- Systems where memfd_secret() is enabled at boot
Discovery Timeline
- 2026-09-24 - CVE CVE-2026-93243 published to NVD
- 2026-09-24 - Last updated in NVD database
Technical Details for CVE-2026-93243
Vulnerability Analysis
The secretmem subsystem exposes memory via memfd_secret() that is intended to be inaccessible to the kernel direct map and to other processes. To bound resource consumption, secretmem accounts folios as if they were mlock()'d and enforces the RLIMIT_MEMLOCK ceiling.
The accounting model does not match the actual folio lifecycle. Secretmem folios are unevictable based on AS_UNEVICTABLE on the address space, not on PG_mlocked on the page. Unmapping the region clears VmLck accounting but leaves the folios pinned in memory until the inode is destroyed. The folios are also absent from the process RSS, which prevents the OOM killer from attributing memory pressure to the responsible task.
Because a secretmem file descriptor can be inherited across fork() and sent across processes via SCM_RIGHTS, a per-process limit is semantically incorrect. The vulnerability class is resource exhaustion driven by incorrect kernel memory accounting [CWE-400 / CWE-401 context].
Root Cause
The root cause is a mismatch between the lifecycle of secretmem folios and the mlock()-based accounting used to limit them. RLIMIT_MEMLOCK is checked at mmap() time against VmLck, but VmLck is decremented on munmap() while the folios remain pinned. The CAP_IPC_LOCK bypass further allowed privileged users to skip the check entirely, even though the inode-scoped lifetime makes a per-process check inappropriate.
Attack Vector
A local unprivileged attacker opens a secretmem file descriptor using memfd_secret(), faults in pages up to the current limit, then calls munmap(). The kernel releases the VmLck accounting but keeps the unevictable folios alive. Repeating the map/unmap cycle, or passing the descriptor across fork(), allows the attacker to accumulate pinned memory far beyond RLIMIT_MEMLOCK. The attacker continues until physical memory and swap are depleted, causing allocation failures, process stalls, and kernel-level instability. No remote vector exists; exploitation requires local code execution and the ability to call memfd_secret().
The upstream fix tracks locked pages in user_struct->locked_vm, following the precedent set by io_uring, perf, skbuff, iommufd, and xdp. Accounting is performed on fault and reversed on inode destruction. The patch adds __secretmem_account_pages(), removes the CAP_IPC_LOCK bypass, and stops marking the mapping as mlock()'d.
Refer to the upstream commits for the exact changes: Kernel Git Commit 3b4f72b, Kernel Git Commit 853043c, and Kernel Git Commit 97d34aa.
Detection Methods for CVE-2026-93243
Indicators of Compromise
- Processes repeatedly invoking memfd_secret() followed by rapid mmap()/munmap() cycles against the returned descriptor.
- Growing MemUnevictable in /proc/meminfo without a corresponding increase in process RSS totals.
- Rising kernel-held memory while per-process VmLck values remain near zero.
- OOM conditions where the OOM killer cannot identify a responsible task despite low available memory.
Detection Strategies
- Audit memfd_secret syscall usage via auditd or eBPF probes to baseline legitimate consumers.
- Correlate MemUnevictable growth with syscall telemetry to flag unaccounted memory pinning.
- Alert on local users triggering memory pressure events absent from standard RSS-based monitoring.
Monitoring Recommendations
- Collect /proc/meminfo and /proc/<pid>/status metrics into a centralized log pipeline for drift analysis.
- Monitor kernel ring buffer messages for OOM activity and secretmem allocation failures.
- Track user_struct->locked_vm growth per UID on patched kernels to validate accounting integrity.
How to Mitigate CVE-2026-93243
Immediate Actions Required
- Identify kernels with CONFIG_SECRETMEM=y and determine whether secretmem is enabled via the secretmem.enable boot parameter on affected distributions.
- Apply vendor-provided kernel updates that incorporate upstream commits 3b4f72b, 853043c, and 97d34aa.
- Restrict local shell access on multi-tenant systems until patches are deployed.
- Review workloads that legitimately use memfd_secret() and validate that per-user RLIMIT_MEMLOCK limits remain appropriate under the new per-user accounting model.
Patch Information
The fix is available in the upstream Linux kernel through three stable-tree commits: Kernel Git Commit 3b4f72b, Kernel Git Commit 853043c, and Kernel Git Commit 97d34aa. The patches introduce __secretmem_account_pages(), move accounting into user_struct->locked_vm, remove the CAP_IPC_LOCK bypass, and stop marking secretmem mappings as mlock()'d. Consult your distribution's security tracker for backported package versions.
Workarounds
- Disable secretmem at boot by setting secretmem.enable=0 on the kernel command line where the feature is not required.
- Rebuild kernels without CONFIG_SECRETMEM on systems that have no legitimate use case.
- Lower the per-user RLIMIT_MEMLOCK via /etc/security/limits.conf to reduce the maximum achievable abuse window on unpatched hosts.
# Configuration example
# Disable secretmem via kernel command line (GRUB)
# Edit /etc/default/grub and append to GRUB_CMDLINE_LINUX:
GRUB_CMDLINE_LINUX="... secretmem.enable=0"
# Apply and reboot
sudo update-grub
sudo reboot
# Verify secretmem status after reboot
dmesg | grep -i secretmem
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

