<?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://vulnerability.circl.lu</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 06:54:28 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-31770 — hwmon: (occ) Fix division by zero in occ_show_power_1()</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-31770</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;hwmon: (occ) Fix division by zero in occ_show_power_1()&lt;/p&gt;
&lt;p&gt;In occ_show_power_1() case 1, the accumulator is divided by
update_tag without checking for zero. If no samples have been
collected yet (e.g. during early boot when the sensor block is
included but hasn&amp;#39;t been updated), update_tag is zero, causing
a kernel divide-by-zero crash.&lt;/p&gt;
&lt;p&gt;The 2019 fix in commit 211186cae14d (&amp;#34;hwmon: (occ) Fix division by
zero issue&amp;#34;) only addressed occ_get_powr_avg() used by
occ_show_power_2() and occ_show_power_a0(). This separate code
path in occ_show_power_1() was missed.&lt;/p&gt;
&lt;p&gt;Fix this by reusing the existing occ_get_powr_avg() helper, which
already handles the zero-sample case and uses mul_u64_u32_div()
to multiply before dividing for better precision. Move the helper
above occ_show_power_1() so it is visible at the call site.&lt;/p&gt;
&lt;p&gt;[groeck: Fix alignment problems reported by checkpatch]&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;hwmon: (occ) Fix division by zero in occ_show_power_1()&lt;/p&gt;
&lt;p&gt;In occ_show_power_1() case 1, the accumulator is divided by
update_tag without checking for zero. If no samples have been
collected yet (e.g. during early boot when the sensor block is
included but hasn&amp;#39;t been updated), update_tag is zero, causing
a kernel divide-by-zero crash.&lt;/p&gt;
&lt;p&gt;The 2019 fix in commit 211186cae14d (&amp;#34;hwmon: (occ) Fix division by
zero issue&amp;#34;) only addressed occ_get_powr_avg() used by
occ_show_power_2() and occ_show_power_a0(). This separate code
path in occ_show_power_1() was missed.&lt;/p&gt;
&lt;p&gt;Fix this by reusing the existing occ_get_powr_avg() helper, which
already handles the zero-sample case and uses mul_u64_u32_div()
to multiply before dividing for better precision. Move the helper
above occ_show_power_1() so it is visible at the call site.&lt;/p&gt;
&lt;p&gt;[groeck: Fix alignment problems reported by checkpatch]&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-31770</guid>
    </item>
  </channel>
</rss>
