# CVE-2026-99742: mm/mempolicy: charge shared policy nodes

Status: published. Published: 2026-11-20. Updated: 2026-11-23.

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 ]

## Remediation

No remediation reported in collected sources

## Affected products and versions

- Linux / Linux: ≥ 5d097056c9a017a3b720849efb5432f37acabbac; < 6b2e45efaaf4bca9cf8a6a7b908b0f6a53b95729 (affected, git); ≥ 5d097056c9a017a3b720849efb5432f37acabbac; < 310236e5a186f096b3c440632b9e96dd5ec05857 (affected, git); ≥ 5d097056c9a017a3b720849efb5432f37acabbac; < 817af14f870d905d2aa3086b2b4d7fab1e447446 (affected, git); ≥ 5d097056c9a017a3b720849efb5432f37acabbac; < 580e7e86e13092e381aec566ae16fd65c78d59fd (affected, git); ≥ 5d097056c9a017a3b720849efb5432f37acabbac; < d500c37437cce47e492c561757ece2596e21446a (affected, git); ≥ 5d097056c9a017a3b720849efb5432f37acabbac; < 40e340bab4d07958b2077c16650c3da5c76d5820 (affected, git); ≥ 5d097056c9a017a3b720849efb5432f37acabbac; < 0109fa404651e20493ca35a9a7d4f87861148064 (affected, git); ≥ 5d097056c9a017a3b720849efb5432f37acabbac; < 68b2aa37afa390f08de13bc0bac61a9ded3318bc (affected, git). Source: CNA: Linux
- Linux / Linux: 4.5 (affected); ≥ 0; < 4.5 (unaffected, semver); ≥ 5.10.275; ≤ 5.10.* (unaffected, semver); ≥ 5.15.226; ≤ 5.15.* (unaffected, semver); ≥ 6.1.193; ≤ 6.1.* (unaffected, semver); ≥ 6.6.163; ≤ 6.6.* (unaffected, semver); ≥ 6.12.118; ≤ 6.12.* (unaffected, semver); ≥ 6.18.64; ≤ 6.18.* (unaffected, semver); ≥ 7.3.5; ≤ 7.3.* (unaffected, semver); ≥ 7.4-rc2; ≤ * (unaffected, original_commit_for_fix). Source: CNA: Linux

## Severity and prioritization

- CISA KEV: No listing in collected sources

- EPSS: 0.17% as of 2026-11-22; percentile 6.28%

- SSVC: Not available

- Weaknesses: Not reported

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://git.kernel.org/stable/c/6b2e45efaaf4bca9cf8a6a7b908b0f6a53b95729 (CNA: Linux)

- https://git.kernel.org/stable/c/310236e5a186f096b3c440632b9e96dd5ec05857 (CNA: Linux)

- https://git.kernel.org/stable/c/817af14f870d905d2aa3086b2b4d7fab1e447446 (CNA: Linux)

- https://git.kernel.org/stable/c/580e7e86e13092e381aec566ae16fd65c78d59fd (CNA: Linux)

- https://git.kernel.org/stable/c/d500c37437cce47e492c561757ece2596e21446a (CNA: Linux)

- https://git.kernel.org/stable/c/40e340bab4d07958b2077c16650c3da5c76d5820 (CNA: Linux)

- https://git.kernel.org/stable/c/0109fa404651e20493ca35a9a7d4f87861148064 (CNA: Linux)

- https://git.kernel.org/stable/c/68b2aa37afa390f08de13bc0bac61a9ded3318bc (CNA: Linux)

- https://git.kernel.org/stable/c/0109fa404651e20493ca35a9a7d4f87861148064 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/40e340bab4d07958b2077c16650c3da5c76d5820 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/68b2aa37afa390f08de13bc0bac61a9ded3318bc (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/d500c37437cce47e492c561757ece2596e21446a (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

## Provenance

- CNA: Linux: https://www.cve.org/CVERecord?id=CVE-2026-99742; retrieved 2026-11-23; source updated 2026-11-23

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-99742; retrieved 2026-11-20; source updated 2026-11-20

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-99742; retrieved 2026-11-23; source updated Not reported

Revision: bce5ca966ad94d3188703af987765ebb8b0610842096bcc2c9f6143edec070d4

Canonical: https://y2.dev/cve/CVE-2026-99742

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.