VDB

CVE-2026-93243

CVE-2026-93243 PUBLISHED

mm/secretmem: properly account locked pages

Reported by linux · Published September 24, 2026

In the Linux kernel, the following vulnerability has been resolved: mm/secretmem: properly account locked pages secretmem accounts folios by treating memory as if it were mlock()'d and thus limited by the RLIMIT_MEMLOCK limit. However the folios are unevictable and remain so until the inode is evicted, eliminating usual mlock() semantics - mapping folios then unmapping them does not clear their unevictable state, since it depends on AS_UNEVICTABLE, not PG_mlocked. A user can therefore easily work around the RLIMIT_MEMLOCK limit - simply map then unmap and VmLck no longer counts the secretmem range. Worse, folios are not accounted in the process's RSS, meaning the OOM killer won't know to kill the process. Repeatedly mapping/unmapping (or forking) can then result in the consumption of all available system memory with unevictable folios and cause system instability. A secretmem fd can be passed between processes and over fork so a per-process limit simply does not make sense, so follow the precedent set by io_uring, perf, skbuff, iommufd and xdp by tracking the number of locked pages in user_struct->locked_vm. Since the scope tracked is actually inode lifetime, the RLIMIT_MEMLOCK applies per-user not per-process, so it doesn't make sense to bypass for users with CAP_IPC_LOCK, therefore remove this bypass. There is simply no reason to carry on marking the mapping as mlock()'d since it's misleading and the lifecycle is now correctly handled, so remove this too. Note that secretmem does not support any form of truncation (including hole punching) and the folios are unreclaimable, so the folios need only be accounted on fault and unaccounted on inode destruction. __secretmem_account_pages() is more or less a duplicate of the code that io_uring etc. use, but since this is a bug fix that needs backporting, defer any de-duplication efforts to a follow-up. test_mlock_limit() asserts mlock_future_ok() on mmap(), however this has been removed, so remove the test altogether for the fix. A new test will be sent separately for upstream.

EPSS 0.25% · 16.7th percentile

Risk scores

EPSS Score
0.25%
16.7th percentile

Affected products

VendorProductVersions
LinuxLinux1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49
LinuxLinux5.14, 0, 6.1.191
linuxlinux_kernel5.14, 5.14, 5.14
LinuxLinux6.12.113, 6.1.191, 0
amazon:2023kernel6.12-devel0
amazon:2023python3-perf6.180
amazon:2023perf6.180
amazon:2023kernel6.12-tools0
amazon:2023kernel-livepatch-6.18.54-121.1660
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel6.120
amazon:2023kernel6.18-tools-devel0
amazon:2023microvm-kernel6.180
amazon:2023bpftool6.180
amazon:2023kernel6.18-headers0
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.180
amazon:2023python3-perf6.120
amazon:2023kernel-livepatch-6.12.113-138.2090
amazon:2023bpftool6.120

…and 7 more

Timeline

  • Sep 24, 2026 Coalition ESS Score
  • Sep 24, 2026 CVE Published
  • Sep 25, 2026 EPSS Score (12 in total, the first dated here)
  • Oct 30, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-93243
vulnetix vdb fixes CVE-2026-93243

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-93243/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›