<?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 02:35:27 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-23206 — dpaa2-switch: prevent ZERO_SIZE_PTR dereference when num_ifs is zero</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-23206</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;dpaa2-switch: prevent ZERO_SIZE_PTR dereference when num_ifs is zero&lt;/p&gt;
&lt;p&gt;The driver allocates arrays for ports, FDBs, and filter blocks using
kcalloc() with ethsw-&amp;gt;sw_attr.num_ifs as the element count. When the
device reports zero interfaces (either due to hardware configuration
or firmware issues), kcalloc(0, ...) returns ZERO_SIZE_PTR (0x10)
instead of NULL.&lt;/p&gt;
&lt;p&gt;Later in dpaa2_switch_probe(), the NAPI initialization unconditionally
accesses ethsw-&amp;gt;ports[0]-&amp;gt;netdev, which attempts to dereference
ZERO_SIZE_PTR (address 0x10), resulting in a kernel panic.&lt;/p&gt;
&lt;p&gt;Add a check to ensure num_ifs is greater than zero after retrieving
device attributes. This prevents the zero-sized allocations and
subsequent invalid pointer dereference.&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;dpaa2-switch: prevent ZERO_SIZE_PTR dereference when num_ifs is zero&lt;/p&gt;
&lt;p&gt;The driver allocates arrays for ports, FDBs, and filter blocks using
kcalloc() with ethsw-&amp;gt;sw_attr.num_ifs as the element count. When the
device reports zero interfaces (either due to hardware configuration
or firmware issues), kcalloc(0, ...) returns ZERO_SIZE_PTR (0x10)
instead of NULL.&lt;/p&gt;
&lt;p&gt;Later in dpaa2_switch_probe(), the NAPI initialization unconditionally
accesses ethsw-&amp;gt;ports[0]-&amp;gt;netdev, which attempts to dereference
ZERO_SIZE_PTR (address 0x10), resulting in a kernel panic.&lt;/p&gt;
&lt;p&gt;Add a check to ensure num_ifs is greater than zero after retrieving
device attributes. This prevents the zero-sized allocations and
subsequent invalid pointer dereference.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-23206</guid>
    </item>
  </channel>
</rss>
