CVE-2026-93243
mm/secretmem: properly account locked pages
Check your servers for CVE-2026-93243
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-93243 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.83% of all scored CVEs. Scores of 29 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, before 37fd10e3d079bccf348180ff0bdac074d84ff31f affected from 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, before 51fba083e454f901947d6a335eeff671171d4714 affected from 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, before a41c95ac90f285cbe473b9606428b14518896ea4 affected from 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, before 853043cb129473ff2fa0090602be944d96b9d5c9 affected from 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, before 3b4f72bdddff69819d665395376329ef21f37a06 affected from 1507f51255c9ff07d75909a84e7c0d7f3c4b2f49, before 97d34aa65c29cca85e3e9050f4c936389b38a054
Other versions: unaffected
|
| Linux |
affected 5.14 unaffected before 5.14 unaffected from 6.1.191 up to and including 6.1.* unaffected from 6.6.160 up to and including 6.6.* unaffected from 6.12.113 up to and including 6.12.* unaffected from 6.18.52 up to and including 6.18.* unaffected from 7.2.5 up to and including 7.2.* unaffected 7.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-93243 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-93243
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-93243
trivy image --scanners vuln IMAGE | grep CVE-2026-93243
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/37fd10e3d079bccf348180ff0bdac074d84ff31f git.kernel.org
- https://git.kernel.org/stable/c/51fba083e454f901947d6a335eeff671171d4714 git.kernel.org
- https://git.kernel.org/stable/c/a41c95ac90f285cbe473b9606428b14518896ea4 git.kernel.org
- https://git.kernel.org/stable/c/853043cb129473ff2fa0090602be944d96b9d5c9 git.kernel.org
- https://git.kernel.org/stable/c/3b4f72bdddff69819d665395376329ef21f37a06 git.kernel.org
- https://git.kernel.org/stable/c/97d34aa65c29cca85e3e9050f4c936389b38a054 git.kernel.org
Source: the record CVE-2026-93243 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse