CVE-2026-138900

Not scored yetLast modified Nov 30, 2026

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

VendorProductVersions
LinuxLinux>= c00b6b9610991c042ff4c3153daaa3ea8522c210, < 07acce0a02ccc67e7702d9be610b729ef449874a; >= c00b6b9610991c042ff4c3153daaa3ea8522c210, < 9c74c3161dd6217aae0941b83e7ac7a4b77a7901; >= c00b6b9610991c042ff4c3153daaa3ea8522c210, < ad7b8f3cfdf63a9a0d74850ff7c9b035d93968ba; >= c00b6b9610991c042ff4c3153daaa3ea8522c210, < 1140b3a60d9d8a4ad32381077a8e3d3fa8f4d0bf; >= c00b6b9610991c042ff4c3153daaa3ea8522c210, < 8645813dad5bb05e2ef57eda0f195f2a2072b831; >= c00b6b9610991c042ff4c3153daaa3ea8522c210, < bbeeb4a29dc4ca6ac18ab3bafa3728bc984a4cde
LinuxLinux5.16

References

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-138901In the Linux kernel, the following vulnerability has been resolved: PCI/DOE: Fix double free of a duplicate feature's sysfs name When a DOCVE-2026-138902In the Linux kernel, the following vulnerability has been resolved: ASoC: codecs: rt5682s: disable jack detection work on shutdown The jacCVE-2026-138903In the Linux kernel, the following vulnerability has been resolved: spi: atmel-quadspi: balance runtime PM and pclk across system sleep OnCVE-2026-138904In the Linux kernel, the following vulnerability has been resolved: media: hantro: disable runtime PM before hardware teardown Removing thCVE-2026-1389057.8In the Linux kernel, the following vulnerability has been resolved: media: vicodec: fix NULL deref on oversized frame job_ready() only honCVE-2026-138906In the Linux kernel, the following vulnerability has been resolved: media: verisilicon: rockchip: Fix leaks in init If one of the dma_alloCVE-2026-1389077.0In the Linux kernel, the following vulnerability has been resolved: media: mediatek: jpeg: Avoid context access after job finish v4l2_m2m_CVE-2026-138908In the Linux kernel, the following vulnerability has been resolved: media: mediatek: vcodec: destroy core workqueue on remove The decoder CVE-2026-138909In the Linux kernel, the following vulnerability has been resolved: media: rkvdec: do not destroy borrowed SRAM pool rkvdec_probe() obtainCVE-2026-138917.5Insufficient validation of untrusted input in Extensions in Google Chrome prior to 150.0.7871.47 allowed a remote attacker who had compromisCVE-2026-138910In the Linux kernel, the following vulnerability has been resolved: media: mtk-jpeg: Fix runtime PM leak in mtk_jpegdec_worker() pm_runtimCVE-2026-138911In the Linux kernel, the following vulnerability has been resolved: media: mediatek: vpu: free IRQ before destroying watchdog workqueue mt
CVE-2026-138900: Unscored | Vulnix