<?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>Thu, 01 Oct 2026 20:01:02 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-49998 — net: dsa: improve shutdown sequence</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-49998</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux, Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP, Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP, Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;net: dsa: improve shutdown sequence&lt;/p&gt;
&lt;p&gt;Alexander Sverdlin presents 2 problems during shutdown with the
lan9303 driver. One is specific to lan9303 and the other just happens
to reproduce there.&lt;/p&gt;
&lt;p&gt;The first problem is that lan9303 is unique among DSA drivers in that it
calls dev_get_drvdata() at &amp;#34;arbitrary runtime&amp;#34; (not probe, not shutdown,
not remove):&lt;/p&gt;
&lt;p&gt;phy_state_machine()
-&amp;gt; ...
   -&amp;gt; dsa_user_phy_read()
      -&amp;gt; ds-&amp;gt;ops-&amp;gt;phy_read()
         -&amp;gt; lan9303_phy_read()
            -&amp;gt; chip-&amp;gt;ops-&amp;gt;phy_read()
               -&amp;gt; lan9303_mdio_phy_read()
                  -&amp;gt; dev_get_drvdata()&lt;/p&gt;
&lt;p&gt;But we never stop the phy_state_machine(), so it may continue to run
after dsa_switch_shutdown(). Our common pattern in all DSA drivers is
to set drvdata to NULL to suppress the remove() method that may come
afterwards. But in this case it will result in an NPD.&lt;/p&gt;
&lt;p&gt;The second problem is that the way in which we set
dp-&amp;gt;conduit-&amp;gt;dsa_ptr = NULL; is concurrent with receive packet
processing. dsa_switch_rcv() checks once whether dev-&amp;gt;dsa_ptr is NULL,
but afterwards, rather than continuing to use that non-NULL value,
dev-&amp;gt;dsa_ptr is dereferenced again and again without NULL checks:
dsa_conduit_find_user() and many other places. In between dereferences,
there is no locking to ensure that what was valid once continues to be
valid.&lt;/p&gt;
&lt;p&gt;Both problems have the common aspect that closing the conduit interface
solves them.&lt;/p&gt;
&lt;p&gt;In the first case, dev_clos…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux, Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP, Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP, Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;net: dsa: improve shutdown sequence&lt;/p&gt;
&lt;p&gt;Alexander Sverdlin presents 2 problems during shutdown with the
lan9303 driver. One is specific to lan9303 and the other just happens
to reproduce there.&lt;/p&gt;
&lt;p&gt;The first problem is that lan9303 is unique among DSA drivers in that it
calls dev_get_drvdata() at &amp;#34;arbitrary runtime&amp;#34; (not probe, not shutdown,
not remove):&lt;/p&gt;
&lt;p&gt;phy_state_machine()
-&amp;gt; ...
   -&amp;gt; dsa_user_phy_read()
      -&amp;gt; ds-&amp;gt;ops-&amp;gt;phy_read()
         -&amp;gt; lan9303_phy_read()
            -&amp;gt; chip-&amp;gt;ops-&amp;gt;phy_read()
               -&amp;gt; lan9303_mdio_phy_read()
                  -&amp;gt; dev_get_drvdata()&lt;/p&gt;
&lt;p&gt;But we never stop the phy_state_machine(), so it may continue to run
after dsa_switch_shutdown(). Our common pattern in all DSA drivers is
to set drvdata to NULL to suppress the remove() method that may come
afterwards. But in this case it will result in an NPD.&lt;/p&gt;
&lt;p&gt;The second problem is that the way in which we set
dp-&amp;gt;conduit-&amp;gt;dsa_ptr = NULL; is concurrent with receive packet
processing. dsa_switch_rcv() checks once whether dev-&amp;gt;dsa_ptr is NULL,
but afterwards, rather than continuing to use that non-NULL value,
dev-&amp;gt;dsa_ptr is dereferenced again and again without NULL checks:
dsa_conduit_find_user() and many other places. In between dereferences,
there is no locking to ensure that what was valid once continues to be
valid.&lt;/p&gt;
&lt;p&gt;Both problems have the common aspect that closing the conduit interface
solves them.&lt;/p&gt;
&lt;p&gt;In the first case, dev_clos…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-49998</guid>
    </item>
  </channel>
</rss>
