<?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>Tue, 29 Sep 2026 20:05:28 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-72343 — net/mlx5e: Fix HV VHCA stats zero-sized buffer allocation</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-72343</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;net/mlx5e: Fix HV VHCA stats zero-sized buffer allocation&lt;/p&gt;
&lt;p&gt;mlx5e_hv_vhca_stats_create() is called from mlx5e_nic_enable(),
before mlx5e_open(). At that point priv-&amp;gt;stats_nch is still zero,
because it is only ever incremented in mlx5e_channel_stats_alloc(),
which is reached only from mlx5e_open_channel().&lt;/p&gt;
&lt;p&gt;mlx5e_hv_vhca_stats_buf_size() therefore returns 0, and
kvzalloc(0, GFP_KERNEL) returns ZERO_SIZE_PTR ((void *)16) rather
than NULL. The &amp;#34;if (!buf)&amp;#34; guard does not catch this, and
mlx5e_hv_vhca_stats_create() completes &amp;#34;successfully&amp;#34; with
priv-&amp;gt;stats_agent.buf set to ZERO_SIZE_PTR.&lt;/p&gt;
&lt;p&gt;Once channels are opened (priv-&amp;gt;stats_nch &amp;gt; 0) and the hypervisor
enables stats reporting, mlx5e_hv_vhca_stats_work() recomputes
buf_len using the new non-zero stats_nch and calls
memset(buf, 0, buf_len) on ZERO_SIZE_PTR, faulting at address 0x10.&lt;/p&gt;
&lt;p&gt;Allocate the buffer based on priv-&amp;gt;max_nch, which is set in
mlx5e_priv_init() and is the upper bound on stats_nch:&lt;/p&gt;
&lt;p&gt;- Add a separate helper mlx5e_hv_vhca_stats_buf_max_size() that
    returns sizeof(per_ring_stats) * max(max_nch, stats_nch), and
    use it for the kvzalloc() in mlx5e_hv_vhca_stats_create().
  - Keep mlx5e_hv_vhca_stats_buf_size() (which returns based on
    stats_nch) for the worker&amp;#39;s active payload size, so the wire
    format (block-&amp;gt;rings = stats_nch) and the amount of data filled
    by mlx5e_hv_vhca_fill_stats() are unchanged.&lt;/p&gt;
&lt;p&gt;The max(max_nch, stats_nch) guar…&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;net/mlx5e: Fix HV VHCA stats zero-sized buffer allocation&lt;/p&gt;
&lt;p&gt;mlx5e_hv_vhca_stats_create() is called from mlx5e_nic_enable(),
before mlx5e_open(). At that point priv-&amp;gt;stats_nch is still zero,
because it is only ever incremented in mlx5e_channel_stats_alloc(),
which is reached only from mlx5e_open_channel().&lt;/p&gt;
&lt;p&gt;mlx5e_hv_vhca_stats_buf_size() therefore returns 0, and
kvzalloc(0, GFP_KERNEL) returns ZERO_SIZE_PTR ((void *)16) rather
than NULL. The &amp;#34;if (!buf)&amp;#34; guard does not catch this, and
mlx5e_hv_vhca_stats_create() completes &amp;#34;successfully&amp;#34; with
priv-&amp;gt;stats_agent.buf set to ZERO_SIZE_PTR.&lt;/p&gt;
&lt;p&gt;Once channels are opened (priv-&amp;gt;stats_nch &amp;gt; 0) and the hypervisor
enables stats reporting, mlx5e_hv_vhca_stats_work() recomputes
buf_len using the new non-zero stats_nch and calls
memset(buf, 0, buf_len) on ZERO_SIZE_PTR, faulting at address 0x10.&lt;/p&gt;
&lt;p&gt;Allocate the buffer based on priv-&amp;gt;max_nch, which is set in
mlx5e_priv_init() and is the upper bound on stats_nch:&lt;/p&gt;
&lt;p&gt;- Add a separate helper mlx5e_hv_vhca_stats_buf_max_size() that
    returns sizeof(per_ring_stats) * max(max_nch, stats_nch), and
    use it for the kvzalloc() in mlx5e_hv_vhca_stats_create().
  - Keep mlx5e_hv_vhca_stats_buf_size() (which returns based on
    stats_nch) for the worker&amp;#39;s active payload size, so the wire
    format (block-&amp;gt;rings = stats_nch) and the amount of data filled
    by mlx5e_hv_vhca_fill_stats() are unchanged.&lt;/p&gt;
&lt;p&gt;The max(max_nch, stats_nch) guar…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-72343</guid>
    </item>
  </channel>
</rss>
