<?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>Wed, 30 Sep 2026 08:10:32 +0000</lastBuildDate>
    <item>
      <title>CVE-2021-47441 — mlxsw: thermal: Fix out-of-bounds memory accesses</title>
      <link>https://db.gcve.eu/vuln/cve-2021-47441</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux, linux_kernel&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;mlxsw: thermal: Fix out-of-bounds memory accesses&lt;/p&gt;
&lt;p&gt;Currently, mlxsw allows cooling states to be set above the maximum
cooling state supported by the driver:&lt;/p&gt;
&lt;p&gt;# cat /sys/class/thermal/thermal_zone2/cdev0/type
 mlxsw_fan
 # cat /sys/class/thermal/thermal_zone2/cdev0/max_state
 10
 # echo 18 &amp;gt; /sys/class/thermal/thermal_zone2/cdev0/cur_state
 # echo $?
 0&lt;/p&gt;
&lt;p&gt;This results in out-of-bounds memory accesses when thermal state
transition statistics are enabled (CONFIG_THERMAL_STATISTICS=y), as the
transition table is accessed with a too large index (state) [1].&lt;/p&gt;
&lt;p&gt;According to the thermal maintainer, it is the responsibility of the
driver to reject such operations [2].&lt;/p&gt;
&lt;p&gt;Therefore, return an error when the state to be set exceeds the maximum
cooling state supported by the driver.&lt;/p&gt;
&lt;p&gt;To avoid dead code, as suggested by the thermal maintainer [3],
partially revert commit a421ce088ac8 (&amp;#34;mlxsw: core: Extend cooling
device with cooling levels&amp;#34;) that tried to interpret these invalid
cooling states (above the maximum) in a special way. The cooling levels
array is not removed in order to prevent the fans going below 20% PWM,
which would cause them to get stuck at 0% PWM.&lt;/p&gt;
&lt;p&gt;[1]
BUG: KASAN: slab-out-of-bounds in thermal_cooling_device_stats_update+0x271/0x290
Read of size 4 at addr ffff8881052f7bf8 by task kworker/0:0/5&lt;/p&gt;
&lt;p&gt;CPU: 0 PID: 5 Comm: kworker/0:0 Not tainted 5.15.0-rc3-custom-45935-gce1adf704b14 #122
Hardware name: Mellanox T…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux, linux_kernel&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;mlxsw: thermal: Fix out-of-bounds memory accesses&lt;/p&gt;
&lt;p&gt;Currently, mlxsw allows cooling states to be set above the maximum
cooling state supported by the driver:&lt;/p&gt;
&lt;p&gt;# cat /sys/class/thermal/thermal_zone2/cdev0/type
 mlxsw_fan
 # cat /sys/class/thermal/thermal_zone2/cdev0/max_state
 10
 # echo 18 &amp;gt; /sys/class/thermal/thermal_zone2/cdev0/cur_state
 # echo $?
 0&lt;/p&gt;
&lt;p&gt;This results in out-of-bounds memory accesses when thermal state
transition statistics are enabled (CONFIG_THERMAL_STATISTICS=y), as the
transition table is accessed with a too large index (state) [1].&lt;/p&gt;
&lt;p&gt;According to the thermal maintainer, it is the responsibility of the
driver to reject such operations [2].&lt;/p&gt;
&lt;p&gt;Therefore, return an error when the state to be set exceeds the maximum
cooling state supported by the driver.&lt;/p&gt;
&lt;p&gt;To avoid dead code, as suggested by the thermal maintainer [3],
partially revert commit a421ce088ac8 (&amp;#34;mlxsw: core: Extend cooling
device with cooling levels&amp;#34;) that tried to interpret these invalid
cooling states (above the maximum) in a special way. The cooling levels
array is not removed in order to prevent the fans going below 20% PWM,
which would cause them to get stuck at 0% PWM.&lt;/p&gt;
&lt;p&gt;[1]
BUG: KASAN: slab-out-of-bounds in thermal_cooling_device_stats_update+0x271/0x290
Read of size 4 at addr ffff8881052f7bf8 by task kworker/0:0/5&lt;/p&gt;
&lt;p&gt;CPU: 0 PID: 5 Comm: kworker/0:0 Not tainted 5.15.0-rc3-custom-45935-gce1adf704b14 #122
Hardware name: Mellanox T…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2021-47441</guid>
    </item>
  </channel>
</rss>
