<?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>Sat, 05 Dec 2026 12:26:37 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-142860 — clk: mstar: msc313-mpll: fix off-by-one in clock array allocation</title>
      <link>https://db.gcve.eu/vuln/cve-2026-142860</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;clk: mstar: msc313-mpll: fix off-by-one in clock array allocation&lt;/p&gt;
&lt;p&gt;The hws array of mpll-&amp;gt;clk_data is allocated with struct_size() using
ARRAY_SIZE(output_dividers) as the element count, giving it 7 elements.
But the probe function stores the MPLL clock at hws[0] and one
fixed-factor clock for each output divider at hws[i + 1] for i in
[0, ARRAY_SIZE(output_dividers)), writing 8 elements in total.  The
final write to hws[7] is past the end of the allocation.&lt;/p&gt;
&lt;p&gt;clk_data-&amp;gt;num is also set to NUMOUTPUTS (8), so the clock framework
reads hws[0..7], again accessing hws[7] out of bounds.&lt;/p&gt;
&lt;p&gt;Use NUMOUTPUTS as the element count so the allocation matches the
number of clocks actually stored and exposed.&lt;/p&gt;
&lt;p&gt;Found by smatch:
  drivers/clk/mstar/clk-msc313-mpll.c:134 msc313_mpll_probe()
  error: buffer overflow &amp;#39;mpll-&amp;gt;clk_data-&amp;gt;hws&amp;#39; 7 &amp;lt;= 7&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;clk: mstar: msc313-mpll: fix off-by-one in clock array allocation&lt;/p&gt;
&lt;p&gt;The hws array of mpll-&amp;gt;clk_data is allocated with struct_size() using
ARRAY_SIZE(output_dividers) as the element count, giving it 7 elements.
But the probe function stores the MPLL clock at hws[0] and one
fixed-factor clock for each output divider at hws[i + 1] for i in
[0, ARRAY_SIZE(output_dividers)), writing 8 elements in total.  The
final write to hws[7] is past the end of the allocation.&lt;/p&gt;
&lt;p&gt;clk_data-&amp;gt;num is also set to NUMOUTPUTS (8), so the clock framework
reads hws[0..7], again accessing hws[7] out of bounds.&lt;/p&gt;
&lt;p&gt;Use NUMOUTPUTS as the element count so the allocation matches the
number of clocks actually stored and exposed.&lt;/p&gt;
&lt;p&gt;Found by smatch:
  drivers/clk/mstar/clk-msc313-mpll.c:134 msc313_mpll_probe()
  error: buffer overflow &amp;#39;mpll-&amp;gt;clk_data-&amp;gt;hws&amp;#39; 7 &amp;lt;= 7&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-142860</guid>
    </item>
  </channel>
</rss>
