<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Fri, 04 Dec 2026 19:47:59 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-138900 — mm/mempolicy: take a cpuset cookie for the interleave node count</title>
      <link>https://db.gcve.eu/vuln/cve-2026-138900</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;mm/mempolicy: take a cpuset cookie for the interleave node count&lt;/p&gt;
&lt;p&gt;alloc_pages_bulk_interleave() counts pol-&amp;gt;nodes without a cpuset cookie:&lt;/p&gt;
&lt;p&gt;nodes = nodes_weight(pol-&amp;gt;nodes);
	nr_pages_per_node = nr_pages / nodes;&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Some compilers will hoist the loop entry test above the division,
because nr_pages_per_node is dead when the loop does not run.&lt;/p&gt;
&lt;p&gt;682e:	call	...		&amp;lt;- nodes_weight()
	6838:	test	%eax,%eax
	683a:	jle	692d		&amp;lt;- nodes &amp;lt;= 0 skips the loop
	684a:	div	%rcx&lt;/p&gt;
&lt;p&gt;So in most deployments, this div/0 is unreachable - but nothing in the
source guarantees that, it&amp;#39;s just not easily exercised.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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&amp;#39;t
catastrophic in any sense.&lt;/p&gt;
&lt;p&gt;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…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;mm/mempolicy: take a cpuset cookie for the interleave node count&lt;/p&gt;
&lt;p&gt;alloc_pages_bulk_interleave() counts pol-&amp;gt;nodes without a cpuset cookie:&lt;/p&gt;
&lt;p&gt;nodes = nodes_weight(pol-&amp;gt;nodes);
	nr_pages_per_node = nr_pages / nodes;&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;Some compilers will hoist the loop entry test above the division,
because nr_pages_per_node is dead when the loop does not run.&lt;/p&gt;
&lt;p&gt;682e:	call	...		&amp;lt;- nodes_weight()
	6838:	test	%eax,%eax
	683a:	jle	692d		&amp;lt;- nodes &amp;lt;= 0 skips the loop
	684a:	div	%rcx&lt;/p&gt;
&lt;p&gt;So in most deployments, this div/0 is unreachable - but nothing in the
source guarantees that, it&amp;#39;s just not easily exercised.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;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&amp;#39;t
catastrophic in any sense.&lt;/p&gt;
&lt;p&gt;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…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-138900</guid>
    </item>
  </channel>
</rss>
