CVE-2026-138900

mm/mempolicy: take a cpuset cookie for the interleave node count

No CVSS score yet EPSS 0.22%

Published 30 Nov 2026 Updated 30 Nov 2026 CNA: Linux

Check your servers for CVE-2026-138900

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-138900 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: take a cpuset cookie for the interleave node count

alloc_pages_bulk_interleave() counts pol->nodes without a cpuset cookie:

nodes = nodes_weight(pol->nodes); nr_pages_per_node = nr_pages / nodes;

nodemask_t spans several words once MAX_NUMNODES exceeds BITS_PER_LONG, so a concurrent cpuset rebind can tear that read and yield an empty mask even though neither version of it was empty. The call then allocates nothing and returns 0.

Some compilers will hoist the loop entry test above the division, because nr_pages_per_node is dead when the loop does not run.

682e: call ... <- nodes_weight() 6838: test %eax,%eax 683a: jle 692d <- nodes <= 0 skips the loop 684a: div %rcx

So in most deployments, this div/0 is unreachable - but nothing in the source guarantees that, it's just not easily exercised.

Take the cookie around the count and bail if the mask really is empty. Only the count needs it, interleave_nodes() takes the cookie itself so so a torn read there is already retried.

A rebind landing mid-loop can still leave the count disagreeing with the mask, so the loop may revisit a node or skip one - but a rebind where nodes change causes migration, so a handful of misplaced pages isn't catastrophic in any sense.

Measured on a 72 node VM (NODES_SHIFT=10) with a cgroup v2 cpuset flipping cpuset.mems between a word 0 and a word 1 node set, and the two word read artificially widened: 330 zero counts in 130414 calls without the cookie, and 401 retries with it.

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 12.7% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from c00b6b9610991c042ff4c3153daaa3ea8522c210, before 07acce0a02ccc67e7702d9be610b729ef449874a
affected from c00b6b9610991c042ff4c3153daaa3ea8522c210, before 9c74c3161dd6217aae0941b83e7ac7a4b77a7901
affected from c00b6b9610991c042ff4c3153daaa3ea8522c210, before ad7b8f3cfdf63a9a0d74850ff7c9b035d93968ba
affected from c00b6b9610991c042ff4c3153daaa3ea8522c210, before 1140b3a60d9d8a4ad32381077a8e3d3fa8f4d0bf
affected from c00b6b9610991c042ff4c3153daaa3ea8522c210, before 8645813dad5bb05e2ef57eda0f195f2a2072b831
affected from c00b6b9610991c042ff4c3153daaa3ea8522c210, before bbeeb4a29dc4ca6ac18ab3bafa3728bc984a4cde
Other versions: unaffected
Linux
affected 5.16
unaffected before 5.16
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.117 up to and including 6.12.*
unaffected from 6.18.63 up to and including 6.18.*
unaffected from 7.3.4 up to and including 7.3.*
unaffected 7.4-rc1 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-138900 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-138900

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

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