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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | patch: 7.3.4 | — |
| Linux | Linux | patch: 6.12.117 | — |
| Linux | Linux | patch: 0 | — |
| Linux | Linux | c00b6b9610991c042ff4c3153daaa3ea8522c210 <ad7b8f3cfdf63a9a0d74850ff7c9b035d93968ba | — |
| Linux | Linux | patch: 6.18.63 | — |
| Linux | Linux | 5.16 | — |
| Linux | Linux | c00b6b9610991c042ff4c3153daaa3ea8522c210 <1140b3a60d9d8a4ad32381077a8e3d3fa8f4d0bf | — |
| Linux | Linux | c00b6b9610991c042ff4c3153daaa3ea8522c210 <8645813dad5bb05e2ef57eda0f195f2a2072b831 | — |
| Linux | Linux | patch: 6.1.193 | — |
| Linux | Linux | c00b6b9610991c042ff4c3153daaa3ea8522c210 <9c74c3161dd6217aae0941b83e7ac7a4b77a7901 | — |
| Linux | Linux | c00b6b9610991c042ff4c3153daaa3ea8522c210 <07acce0a02ccc67e7702d9be610b729ef449874a | — |
| Linux | Linux | c00b6b9610991c042ff4c3153daaa3ea8522c210 <bbeeb4a29dc4ca6ac18ab3bafa3728bc984a4cde | — |
| Linux | Linux | patch: 6.6.163 | — |
| Linux | Linux | patch: 7.4-rc1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 7.3.4-1 | — |
| Debian 13 | linux | 6.12.117-1 | — |
| Debian 12 | linux | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Nvidia-BlueField 24.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu Nvidia-BlueField 22.04 LTS | linux-bluefield | No fix yet | — |
| Ubuntu 26.10 | linux +8 | No fix yet | — |
| Ubuntu 26.04 LTS | linux +14 | No fix yet | — |
| Ubuntu 24.04 LTS | linux +52 | No fix yet | — |
Show 19 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | linux +59 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-gke +28 | No fix yet | — |
| Ubuntu 18.04 LTS | linux-gcp +14 | No fix yet | — |
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
| Ubuntu Pro Realtime 24.04 LTS | linux-realtime +3 | No fix yet | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-realtime +2 | No fix yet | — |
| Ubuntu Pro FIPS 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-updates 24.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 16.04 LTS | linux-fips | No fix yet | — |
| Ubuntu Pro FIPS-preview 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro 20.04 LTS | linux +21 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | linux +12 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | linux +7 | No fix yet | — |
| Ubuntu Pro 14.04 LTS | linux +3 | No fix yet | — |
Advisories 1
- WID-SEC-2026-4889 Linux Kernel: Mehrere Schwachstellen ermöglichen nicht spezifizierten Angriff BSI CERT-Bund (WID) · Nov 30, 2026
References
- https://git.kernel.org/stable/c/07acce0a02ccc67e7702d9be610b729ef449874a
- https://git.kernel.org/stable/c/9c74c3161dd6217aae0941b83e7ac7a4b77a7901
- https://git.kernel.org/stable/c/ad7b8f3cfdf63a9a0d74850ff7c9b035d93968ba
- https://git.kernel.org/stable/c/1140b3a60d9d8a4ad32381077a8e3d3fa8f4d0bf
- https://git.kernel.org/stable/c/8645813dad5bb05e2ef57eda0f195f2a2072b831
- https://git.kernel.org/stable/c/bbeeb4a29dc4ca6ac18ab3bafa3728bc984a4cde