CVE-2026-99742

mm/mempolicy: charge shared policy nodes

No CVSS score yet EPSS 0.18%

Published 20 Nov 2026 Updated 23 Nov 2026 CNA: Linux

Check your servers for CVE-2026-99742

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-99742 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.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

mm/mempolicy: charge shared policy nodes

Any local user can bypass memory.max with mbind() on a tmpfs file, and allocate unbounded kernel memory.

mbind() sets a NUMA memory policy for a range of a mapping. If the mapping is of a shmem and friends, the kernel also stores the policy on the inode, in a tree with one entry per range of the file.

Each mbind() on a single page of a mapping can add one shared policy node (struct sp_node) and one struct mempolicy to that tree. They outlive the mapping and stay around until the inode is destroyed. The tree is not bounded by the file size, so the file can be empty.

Memory that user space can allocate must be charged to a memory cgroup. A slab cache does that for all of its objects if it is created with SLAB_ACCOUNT. numa_policy_init() creates the slab caches for both structs without SLAB_ACCOUNT, so they are not charged to any cgroup.

Reproduced with mbind() on single pages of an empty tmpfs file, from a cgroup with memory.max=8M: the global OOM killer killed tasks owned by root, and the machine panicked.

Fix this by creating both caches with SLAB_ACCOUNT. This change implies that mbind() can now fail when running into memcg limits. Further, the policy_cache also serves task and VMA policies, so they are similarly accounted now.

Note that per-file limits are not really helpful, as the user could simply use many files; having limits per user is tricky as well.

Fix generated by an LLM and submitted by Chris Mason in private.

[ david: smaller description tweaks ]

Exploitation

EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.69% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 5d097056c9a017a3b720849efb5432f37acabbac, before 6b2e45efaaf4bca9cf8a6a7b908b0f6a53b95729
affected from 5d097056c9a017a3b720849efb5432f37acabbac, before 310236e5a186f096b3c440632b9e96dd5ec05857
affected from 5d097056c9a017a3b720849efb5432f37acabbac, before 817af14f870d905d2aa3086b2b4d7fab1e447446
affected from 5d097056c9a017a3b720849efb5432f37acabbac, before 580e7e86e13092e381aec566ae16fd65c78d59fd
affected from 5d097056c9a017a3b720849efb5432f37acabbac, before d500c37437cce47e492c561757ece2596e21446a
affected from 5d097056c9a017a3b720849efb5432f37acabbac, before 40e340bab4d07958b2077c16650c3da5c76d5820
affected from 5d097056c9a017a3b720849efb5432f37acabbac, before 0109fa404651e20493ca35a9a7d4f87861148064
affected from 5d097056c9a017a3b720849efb5432f37acabbac, before 68b2aa37afa390f08de13bc0bac61a9ded3318bc
Other versions: unaffected
Linux
affected 4.5
unaffected before 4.5
unaffected from 5.10.275 up to and including 5.10.*
unaffected from 5.15.226 up to and including 5.15.*
unaffected from 6.1.193 up to and including 6.1.*
unaffected from 6.6.163 up to and including 6.6.*
unaffected from 6.12.118 up to and including 6.12.*
unaffected from 6.18.64 up to and including 6.18.*
unaffected from 7.3.5 up to and including 7.3.*
unaffected 7.4-rc2 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-99742 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99742

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-99742
trivy image --scanners vuln IMAGE | grep CVE-2026-99742

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

Source: the record CVE-2026-99742 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.