CVE-2026-99742Linux
NVD
Vulnerability Summary
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 ]
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 ]
Affected & Patched Versions
- Linux >= 5d097056c9a017a3b720849efb5432f37acabbac and < 6b2e45efaaf4bca9cf8a6a7b908b0f6a53b95729
- Linux >= 5d097056c9a017a3b720849efb5432f37acabbac and < 310236e5a186f096b3c440632b9e96dd5ec05857
- Linux >= 5d097056c9a017a3b720849efb5432f37acabbac and < 817af14f870d905d2aa3086b2b4d7fab1e447446
- Linux >= 5d097056c9a017a3b720849efb5432f37acabbac and < 580e7e86e13092e381aec566ae16fd65c78d59fd
- Linux >= 5d097056c9a017a3b720849efb5432f37acabbac and < d500c37437cce47e492c561757ece2596e21446a
- Linux >= 5d097056c9a017a3b720849efb5432f37acabbac and < 40e340bab4d07958b2077c16650c3da5c76d5820
- Linux >= 5d097056c9a017a3b720849efb5432f37acabbac and < 0109fa404651e20493ca35a9a7d4f87861148064
- Linux >= 5d097056c9a017a3b720849efb5432f37acabbac and < 68b2aa37afa390f08de13bc0bac61a9ded3318bc
- Linux 4.5
- Linux 6b2e45efaaf4bca9cf8a6a7b908b0f6a53b95729
- Linux 310236e5a186f096b3c440632b9e96dd5ec05857
- Linux 817af14f870d905d2aa3086b2b4d7fab1e447446
- Linux 580e7e86e13092e381aec566ae16fd65c78d59fd
- Linux d500c37437cce47e492c561757ece2596e21446a
- Linux 40e340bab4d07958b2077c16650c3da5c76d5820
- Linux 0109fa404651e20493ca35a9a7d4f87861148064
- Linux 68b2aa37afa390f08de13bc0bac61a9ded3318bc
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run Linux and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 20, 2026Published
- Nov 23, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Linux CVEsYou are reading CVE-2026-99742. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Referencehttps://git.kernel.org/stable/c/0109fa404651e20493ca35a9a7d4f87861148064
- Referencehttps://git.kernel.org/stable/c/310236e5a186f096b3c440632b9e96dd5ec05857
- Referencehttps://git.kernel.org/stable/c/40e340bab4d07958b2077c16650c3da5c76d5820
- Referencehttps://git.kernel.org/stable/c/580e7e86e13092e381aec566ae16fd65c78d59fd
- Referencehttps://git.kernel.org/stable/c/68b2aa37afa390f08de13bc0bac61a9ded3318bc
- Referencehttps://git.kernel.org/stable/c/6b2e45efaaf4bca9cf8a6a7b908b0f6a53b95729
- Referencehttps://git.kernel.org/stable/c/817af14f870d905d2aa3086b2b4d7fab1e447446
- Referencehttps://git.kernel.org/stable/c/d500c37437cce47e492c561757ece2596e21446a
Data last checked: Nov 24, 2026 07:07 UTC