<?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://cve.radiocsirt.org</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>Wed, 07 Oct 2026 00:38:03 +0000</lastBuildDate>
    <item>
      <title>CVE-2021-47044 — sched/fair: Fix shift-out-of-bounds in load_balance()</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2021-47044</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;sched/fair: Fix shift-out-of-bounds in load_balance()&lt;/p&gt;
&lt;p&gt;Syzbot reported a handful of occurrences where an sd-&amp;gt;nr_balance_failed can
grow to much higher values than one would expect.&lt;/p&gt;
&lt;p&gt;A successful load_balance() resets it to 0; a failed one increments
it. Once it gets to sd-&amp;gt;cache_nice_tries + 3, this *should* trigger an
active balance, which will either set it to sd-&amp;gt;cache_nice_tries+1 or reset
it to 0. However, in case the to-be-active-balanced task is not allowed to
run on env-&amp;gt;dst_cpu, then the increment is done without any further
modification.&lt;/p&gt;
&lt;p&gt;This could then be repeated ad nauseam, and would explain the absurdly high
values reported by syzbot (86, 149). VincentG noted there is value in
letting sd-&amp;gt;cache_nice_tries grow, so the shift itself should be
fixed. That means preventing:&lt;/p&gt;
&lt;p&gt;&amp;#34;&amp;#34;&amp;#34;
  If the value of the right operand is negative or is greater than or equal
  to the width of the promoted left operand, the behavior is undefined.
  &amp;#34;&amp;#34;&amp;#34;&lt;/p&gt;
&lt;p&gt;Thus we need to cap the shift exponent to
  BITS_PER_TYPE(typeof(lefthand)) - 1.&lt;/p&gt;
&lt;p&gt;I had a look around for other similar cases via coccinelle:&lt;/p&gt;
&lt;p&gt;@expr@
  position pos;
  expression E1;
  expression E2;
  @@
  (
  E1 &amp;gt;&amp;gt; E2@pos
  |
  E1 &amp;gt;&amp;gt; E2@pos
  )&lt;/p&gt;
&lt;p&gt;@cst depends on expr@
  position pos;
  expression expr.E1;
  constant cst;
  @@
  (
  E1 &amp;gt;&amp;gt; cst@pos
  |
  E1 &amp;lt;&amp;lt; cst@pos
  )&lt;/p&gt;
&lt;p&gt;@script:python depends on !cst@
  pos &amp;lt;&amp;lt; expr.pos;
  exp &amp;lt;&amp;lt; expr.E2;
  @@
  # Dirty hack to…&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;sched/fair: Fix shift-out-of-bounds in load_balance()&lt;/p&gt;
&lt;p&gt;Syzbot reported a handful of occurrences where an sd-&amp;gt;nr_balance_failed can
grow to much higher values than one would expect.&lt;/p&gt;
&lt;p&gt;A successful load_balance() resets it to 0; a failed one increments
it. Once it gets to sd-&amp;gt;cache_nice_tries + 3, this *should* trigger an
active balance, which will either set it to sd-&amp;gt;cache_nice_tries+1 or reset
it to 0. However, in case the to-be-active-balanced task is not allowed to
run on env-&amp;gt;dst_cpu, then the increment is done without any further
modification.&lt;/p&gt;
&lt;p&gt;This could then be repeated ad nauseam, and would explain the absurdly high
values reported by syzbot (86, 149). VincentG noted there is value in
letting sd-&amp;gt;cache_nice_tries grow, so the shift itself should be
fixed. That means preventing:&lt;/p&gt;
&lt;p&gt;&amp;#34;&amp;#34;&amp;#34;
  If the value of the right operand is negative or is greater than or equal
  to the width of the promoted left operand, the behavior is undefined.
  &amp;#34;&amp;#34;&amp;#34;&lt;/p&gt;
&lt;p&gt;Thus we need to cap the shift exponent to
  BITS_PER_TYPE(typeof(lefthand)) - 1.&lt;/p&gt;
&lt;p&gt;I had a look around for other similar cases via coccinelle:&lt;/p&gt;
&lt;p&gt;@expr@
  position pos;
  expression E1;
  expression E2;
  @@
  (
  E1 &amp;gt;&amp;gt; E2@pos
  |
  E1 &amp;gt;&amp;gt; E2@pos
  )&lt;/p&gt;
&lt;p&gt;@cst depends on expr@
  position pos;
  expression expr.E1;
  constant cst;
  @@
  (
  E1 &amp;gt;&amp;gt; cst@pos
  |
  E1 &amp;lt;&amp;lt; cst@pos
  )&lt;/p&gt;
&lt;p&gt;@script:python depends on !cst@
  pos &amp;lt;&amp;lt; expr.pos;
  exp &amp;lt;&amp;lt; expr.E2;
  @@
  # Dirty hack to…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2021-47044</guid>
    </item>
  </channel>
</rss>
