<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-12-04T19:52:14.926163+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/cve-2026-138900</id>
    <title>CVE-2026-138900 — mm/mempolicy: take a cpuset cookie for the interleave node count</title>
    <updated>2026-12-04T19:52:14.928309+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Linux</p>
<p>In the Linux kernel, the following vulnerability has been resolved:</p>
<p>mm/mempolicy: take a cpuset cookie for the interleave node count</p>
<p>alloc_pages_bulk_interleave() counts pol-&gt;nodes without a cpuset cookie:</p>
<p>nodes = nodes_weight(pol-&gt;nodes);
	nr_pages_per_node = nr_pages / nodes;</p>
<p>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.</p>
<p>Some compilers will hoist the loop entry test above the division,
because nr_pages_per_node is dead when the loop does not run.</p>
<p>682e:	call	...		&lt;- nodes_weight()
	6838:	test	%eax,%eax
	683a:	jle	692d		&lt;- nodes &lt;= 0 skips the loop
	684a:	div	%rcx</p>
<p>So in most deployments, this div/0 is unreachable - but nothing in the
source guarantees that, it's just not easily exercised.</p>
<p>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.</p>
<p>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.</p>
<p>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…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-138900"/>
  </entry>
</feed>
