<?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 17:30:18 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-37850 — pwm: mediatek: Prevent divide-by-zero in pwm_mediatek_config()</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2025-37850</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;pwm: mediatek: Prevent divide-by-zero in pwm_mediatek_config()&lt;/p&gt;
&lt;p&gt;With CONFIG_COMPILE_TEST &amp;amp;&amp;amp; !CONFIG_HAVE_CLK, pwm_mediatek_config() has a
divide-by-zero in the following line:&lt;/p&gt;
&lt;p&gt;do_div(resolution, clk_get_rate(pc-&amp;gt;clk_pwms[pwm-&amp;gt;hwpwm]));&lt;/p&gt;
&lt;p&gt;due to the fact that the !CONFIG_HAVE_CLK version of clk_get_rate()
returns zero.&lt;/p&gt;
&lt;p&gt;This is presumably just a theoretical problem: COMPILE_TEST overrides
the dependency on RALINK which would select COMMON_CLK.  Regardless it&amp;#39;s
a good idea to check for the error explicitly to avoid divide-by-zero.&lt;/p&gt;
&lt;p&gt;Fixes the following warning:&lt;/p&gt;
&lt;p&gt;drivers/pwm/pwm-mediatek.o: warning: objtool: .text: unexpected end of section&lt;/p&gt;
&lt;p&gt;[ukleinek: s/CONFIG_CLK/CONFIG_HAVE_CLK/]&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;pwm: mediatek: Prevent divide-by-zero in pwm_mediatek_config()&lt;/p&gt;
&lt;p&gt;With CONFIG_COMPILE_TEST &amp;amp;&amp;amp; !CONFIG_HAVE_CLK, pwm_mediatek_config() has a
divide-by-zero in the following line:&lt;/p&gt;
&lt;p&gt;do_div(resolution, clk_get_rate(pc-&amp;gt;clk_pwms[pwm-&amp;gt;hwpwm]));&lt;/p&gt;
&lt;p&gt;due to the fact that the !CONFIG_HAVE_CLK version of clk_get_rate()
returns zero.&lt;/p&gt;
&lt;p&gt;This is presumably just a theoretical problem: COMPILE_TEST overrides
the dependency on RALINK which would select COMMON_CLK.  Regardless it&amp;#39;s
a good idea to check for the error explicitly to avoid divide-by-zero.&lt;/p&gt;
&lt;p&gt;Fixes the following warning:&lt;/p&gt;
&lt;p&gt;drivers/pwm/pwm-mediatek.o: warning: objtool: .text: unexpected end of section&lt;/p&gt;
&lt;p&gt;[ukleinek: s/CONFIG_CLK/CONFIG_HAVE_CLK/]&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2025-37850</guid>
    </item>
  </channel>
</rss>
